I have finally come to this happy moment where I get to run NetBSD on a desktop PC. Currently I have a 500gb kingston SSD with Fedora on it. I want to clone my current NetBSD 225gb disk to the 500gb Kingston.
Just wondering what the dd
command should look like. I know it'll take a while to clone the disk, but I just want to ask if there is any flags I should use.
dd if=/dev/wd0 of=/dev/sd0 bs=4M msgfmt=human
$ dmesg
[...]
[ 3.446207] wd0 at atabus0 drive 0
[ 3.446207] wd0: <WDC WDS240G2G0A-00JH30>
[ 3.446207] wd0: drive supports 1-sector PIO transfers, LBA48 addressing
[ 3.446207] wd0: 223 GB, 465141 cyl, 16 head, 63 sec, 512 bytes/sect x 468862128 sectors
[ 3.446207] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), NCQ (32 tags)
[ 3.446207] wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
[...]
[ 7535.199860] sd0 at scsibus0 target 0 lun 0: <KINGSTON, SA400S37480G, SBFK> disk fixed
[ 7535.209873] sd0: 447 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 937703088 sectors
[ 7535.219873] sd0: GPT GUID: 44a7abb9-2eea-4570-8eb2-f261f54a854f
[...]
EDIT: reminder to myself to send SIGINFO
with pkill -INFO dd
to get the status of dd