imalc3142
asked on
Cloned drive using dd will not boot or mount
I cloned a drive using dd on a CentOS 6.2 box. Used the following commands to image then clone:
Image:
dd if=/dev/sdb of=/home/al/image.dd
Restore:
dd of=/home/al/image.dd if=/dev/sdb
I went from a 160 GB drive to a 320 GB drive
No errors reported with either creating the image or restoring the drive.
if I do a fdisk -l. I get partition info on the new drive:
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 286 2096482+ 82 Linux swap / Solaris
/dev/sdb3 287 19457 153991057+ 83 Linux
Disk /dev/mapper/vg_test-lv_roo t: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
However if I try to boot from the drive nothing happens, the drive light on the computer stays lit and the monitor displays a pre-boot screen.
If try to mount the drive:
mount /dev/sdb /media I get the following error:
mount: you must specify the filesystem type
I have tired to mount the drive as ext, ext2, ext3, ext4 and nothing works.
The original drive will mount as a slave in CentOS and will boot.
Any suggestions?
Al
Image:
dd if=/dev/sdb of=/home/al/image.dd
Restore:
dd of=/home/al/image.dd if=/dev/sdb
I went from a 160 GB drive to a 320 GB drive
No errors reported with either creating the image or restoring the drive.
if I do a fdisk -l. I get partition info on the new drive:
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 286 2096482+ 82 Linux swap / Solaris
/dev/sdb3 287 19457 153991057+ 83 Linux
Disk /dev/mapper/vg_test-lv_roo
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
However if I try to boot from the drive nothing happens, the drive light on the computer stays lit and the monitor displays a pre-boot screen.
If try to mount the drive:
mount /dev/sdb /media I get the following error:
mount: you must specify the filesystem type
I have tired to mount the drive as ext, ext2, ext3, ext4 and nothing works.
The original drive will mount as a slave in CentOS and will boot.
Any suggestions?
Al
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yeah, if the drives are both connected at the same time, using sdb for input and output won't actually move the info over to the new drive, but rather just copy info from which ever drive is sdb to the image, and then back to sdb.
ASKER
Thanks for your help.
Al
Al
1. 160G and 320G disks should be with /dev/sda and /dev/sdb in commands, you got both with /dev/sdb.
2. the image file should be on a third disk or partition.