Re: [CentOS] imaging a drive with dd

2017-03-03 Thread Robert Moskowitz
On 03/03/2017 12:31 PM, Styma, Robert (Nokia - US) wrote: On 3/3/2017 5:34 AM, Robert Moskowitz wrote: Well, I only wanted to copy the used part of the drive which I try to keep small so I can still copy the image to an mSD card if I wish. So I have to supply the amount of the drive to

Re: [CentOS] imaging a drive with dd

2017-03-03 Thread Robert Moskowitz
On 03/03/2017 12:31 PM, Styma, Robert (Nokia - US) wrote: On 3/3/2017 5:34 AM, Robert Moskowitz wrote: Well, I only wanted to copy the used part of the drive which I try to keep small so I can still copy the image to an mSD card if I wish. So I have to supply the amount of the drive to

Re: [CentOS] imaging a drive with dd

2017-03-03 Thread Robert Moskowitz
On 03/03/2017 12:23 PM, John R Pierce wrote: On 3/3/2017 5:34 AM, Robert Moskowitz wrote: Well, I only wanted to copy the used part of the drive which I try to keep small so I can still copy the image to an mSD card if I wish. So I have to supply the amount of the drive to copy. The bs=512

Re: [CentOS] imaging a drive with dd

2017-03-03 Thread Styma, Robert (Nokia - US)
On 3/3/2017 5:34 AM, Robert Moskowitz wrote: > Well, I only wanted to copy the used part of the drive which I try to > keep small so I can still copy the image to an mSD card if I wish. So > I have to supply the amount of the drive to copy. The bs=512 went > fast enough, but then I was only

Re: [CentOS] imaging a drive with dd

2017-03-03 Thread John R Pierce
On 3/3/2017 5:34 AM, Robert Moskowitz wrote: Well, I only wanted to copy the used part of the drive which I try to keep small so I can still copy the image to an mSD card if I wish. So I have to supply the amount of the drive to copy. The bs=512 went fast enough, but then I was only copying

Re: [CentOS] imaging a drive with dd

2017-03-03 Thread Robert Moskowitz
On 03/03/2017 07:50 AM, Fred Smith wrote: On Thu, Mar 02, 2017 at 10:57:51PM -0500, Robert Moskowitz wrote: On 03/02/2017 10:02 PM, Fred Smith wrote: On Thu, Mar 02, 2017 at 09:06:52PM -0500, fred roller wrote: On Thu, Mar 2, 2017 at 8:36 PM, Robert Moskowitz wrote:

Re: [CentOS] imaging a drive with dd

2017-03-03 Thread Fred Smith
On Thu, Mar 02, 2017 at 10:57:51PM -0500, Robert Moskowitz wrote: > > > On 03/02/2017 10:02 PM, Fred Smith wrote: > >On Thu, Mar 02, 2017 at 09:06:52PM -0500, fred roller wrote: > >>On Thu, Mar 2, 2017 at 8:36 PM, Robert Moskowitz > >>wrote: > >> > >>>dd if=/dev/sdb

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Robert Moskowitz
On 03/02/2017 10:02 PM, Fred Smith wrote: On Thu, Mar 02, 2017 at 09:06:52PM -0500, fred roller wrote: On Thu, Mar 2, 2017 at 8:36 PM, Robert Moskowitz wrote: dd if=/dev/sdb of=os.img bs=1M count=3210 I would recommend bs=512 to keep the block sizes the same though

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Fred Smith
On Thu, Mar 02, 2017 at 09:06:52PM -0500, fred roller wrote: > On Thu, Mar 2, 2017 at 8:36 PM, Robert Moskowitz > wrote: > > > dd if=/dev/sdb of=os.img bs=1M count=3210 > > > > I would recommend bs=512 to keep the block sizes the same though not a huge > diff just seems to

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Robert Moskowitz
On 03/02/2017 09:17 PM, Warren Young wrote: On Mar 2, 2017, at 7:04 PM, Robert Moskowitz wrote: On 03/02/2017 08:53 PM, Warren Young wrote: Why reinvent the wheel? This is Centos7-armv7. Not all the tools are there. btrfs and LVM2 appear to be built:

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Warren Young
On Mar 2, 2017, at 7:04 PM, Robert Moskowitz wrote: > > On 03/02/2017 08:53 PM, Warren Young wrote: >> Why reinvent the wheel? > > This is Centos7-armv7. Not all the tools are there. btrfs and LVM2 appear to be built:

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Robert Moskowitz
On 03/02/2017 09:06 PM, fred roller wrote: On Thu, Mar 2, 2017 at 8:36 PM, Robert Moskowitz wrote: dd if=/dev/sdb of=os.img bs=1M count=3210 I would recommend bs=512 to keep the block sizes the same though not a huge diff just seems to be happier for some reason and

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread fred roller
On Thu, Mar 2, 2017 at 8:36 PM, Robert Moskowitz wrote: > dd if=/dev/sdb of=os.img bs=1M count=3210 > I would recommend bs=512 to keep the block sizes the same though not a huge diff just seems to be happier for some reason and add status=progress if you would like to

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Robert Moskowitz
On 03/02/2017 08:53 PM, Warren Young wrote: On Mar 2, 2017, at 6:36 PM, Robert Moskowitz wrote: I want to image the drive at various 'checkpoints' so I can go back and redo from a particular point… what dd params work? dd if=/dev/sdb of=os.img bs=1M count=3210 That

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Warren Young
On Mar 2, 2017, at 6:53 PM, Warren Young wrote: > > Why reinvent the wheel? Oh, I forgot to say, LVM2, ZFS, and btrfs snapshots don’t image the *entire* drive including slack space. They set a copy-on-write point which is near-instantaneous, so that whenever one of the

Re: [CentOS] imaging a drive with dd

2017-03-02 Thread Warren Young
On Mar 2, 2017, at 6:36 PM, Robert Moskowitz wrote: > > I want to image the drive at various 'checkpoints' so I can go back and redo > from a particular point… > what dd params work? > > dd if=/dev/sdb of=os.img bs=1M count=3210 That looks plausible. (I haven’t verified

[CentOS] imaging a drive with dd

2017-03-02 Thread Robert Moskowitz
I am building a mailserver and with all the steps, I want to image the drive at various 'checkpoints' so I can go back and redo from a particular point. The image is currently only 4GB on a 120GB drive. Fdisk reports: Disk /dev/sdb: 111.8 GiB, 120034124288 bytes, 234441649 sectors Units: