0

I use dd command to backup a disk.

# dd if=/dev/sda of=/dev/sdb

but when I boot from the backup disk, I got a error message check filesystem failed!

I do not know how to settle this problem. I thought the sdb is a copy of sda, so it can be booted. Then why it turns out this error message?

Flup
  • 7,688
  • 1
  • 31
  • 43

2 Answers2

0

Partion 1 does not start on physical sector boundary.

Sounds like something that could potentially be fixed by directly editing the partition table. I'm know quite sure how to do than with Linux but should give you a good starting point.

LordOfTheRats
  • 103
  • 10
  • yes, i found that 'dd' doesn't copy superblock. I fixed this problem by two steps. 1) #fdisk /dev/sdb 2) w – user1070948 Mar 04 '13 at 07:48
  • I don't know why dd don't copy superblock even i use #dd if=/dev/sda of=/dev/sdb, If dd is byte-copy, why does it ingore superblock? – user1070948 Mar 04 '13 at 07:50
0

can you compare with fdisk or sfdisk the partition tables of the two disks. In case of any mismatch : try to restore the original partition table : 1) sfdisk -d /dev/sda >/root/partition.img 2) sfdisk /dev/sdb

Kwakou
  • 21
  • 2