Curt Carpenter
New Member
Hello!
Yesterday I used the "dd" command to copy my active hard drive (/dev/sda) to a usb-connected hard drive (/dev/sdb). My intent was to create a full-system backup of my PC in case I have a drive failure at some point.
After the dd command finished (about an hour and a half later), both drives appear to be identical according to fdisk -l, which generates the following output:
Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00032351
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 305307647 305305600 145.6G 83 Linux
/dev/sda2 305309694 312580095 7270402 3.5G 5 Extended
/dev/sda5 305309696 312580095 7270400 3.5G 82 Linux swap / Solaris
Disk /dev/sdb: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00032351
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 305307647 305305600 145.6G 83 Linux
/dev/sdb2 305309694 312580095 7270402 3.5G 5 Extended
/dev/sdb5 305309696 312580095 7270400 3.5G 82 Linux swap / Solaris
Can anyone tell me if there is a way to verify that I've created a usable backup, short of opening up my computer and physically replacing the hard drive there now with my "clone?" I tried booting from the USB-connected clone drive, but it doesn't work, I assume because the Ubuntu system on the USB drive isn't configured correctly.
Any suggestions appreciated. I'm paranoid about actually swapping out the hard drives unless it's absolutely necessary, and I only have one PC to work on.
Yesterday I used the "dd" command to copy my active hard drive (/dev/sda) to a usb-connected hard drive (/dev/sdb). My intent was to create a full-system backup of my PC in case I have a drive failure at some point.
After the dd command finished (about an hour and a half later), both drives appear to be identical according to fdisk -l, which generates the following output:
Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00032351
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 305307647 305305600 145.6G 83 Linux
/dev/sda2 305309694 312580095 7270402 3.5G 5 Extended
/dev/sda5 305309696 312580095 7270400 3.5G 82 Linux swap / Solaris
Disk /dev/sdb: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00032351
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 305307647 305305600 145.6G 83 Linux
/dev/sdb2 305309694 312580095 7270402 3.5G 5 Extended
/dev/sdb5 305309696 312580095 7270400 3.5G 82 Linux swap / Solaris
Can anyone tell me if there is a way to verify that I've created a usable backup, short of opening up my computer and physically replacing the hard drive there now with my "clone?" I tried booting from the USB-connected clone drive, but it doesn't work, I assume because the Ubuntu system on the USB drive isn't configured correctly.
Any suggestions appreciated. I'm paranoid about actually swapping out the hard drives unless it's absolutely necessary, and I only have one PC to work on.