[Cialug] dd only allocated space?
khamil8686 at gmail.com
khamil8686 at gmail.com
Fri Jul 28 16:55:31 UTC 2017
Dd the very beginning of the drive as well, uefi 1024 blocks, mbr 512 blocks
Dd if=/dev/sda count=1024 of=/home/you/sda_boot_backup
Then do sda1,2,3,4
Might want to concatenate all those files so you have one big .img that you can restore to the other drive. Otherwise, just do boot, 1,2,3,4,5
From: L. V. Lammert
Sent: Friday, July 28, 2017 11:43 AM
To: khamil8686 at gmail.com
Cc: Central Iowa Linux Users Group
Subject: RE: [Cialug] dd only allocated space?
On Fri, 28 Jul 2017 khamil8686 at gmail.com wrote:
> Just dd sda1,2,3,4,5 and it won’t get the extra space. If it is all
> zeroes you could use cp and add –sparse=always to not copy the zeroed
> space
>
That won't work as I also need the partition table & MBR, unfortunately.
Thanks!
Lee
More information about the Cialug
mailing list