Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Maybe sdb is smaller? blockdev --getsz /dev/sda /dev/sdb Or volumes get mounted via /dev/disk/by-id/ which cannot work any more as the disk ID has changed. –  Hauke Laging Mar 4 '13 at 2:35
    
I can sure that the two disk space are same. /dev/sdb is a new fresh disk. Does it matter with gvfs ? –  user1070948 Mar 4 '13 at 3:05
    
What is the fstab entry for the volume with the failing fsck? –  Hauke Laging Mar 4 '13 at 3:12
    
the same as sda, i do not edit the fstab in sdb –  user1070948 Mar 4 '13 at 3:39
    
i boot the backup disk on another linux box, and then type fdisk -l i found this /dev/sdb1 ... Partion 1 does not start on physical sector boundary. –  user1070948 Mar 4 '13 at 3:50

1 Answer 1

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.

share|improve this answer
    
yes, i found that 'dd' doesn't copy superblock. I fixed this problem by two steps. 1) #fdisk /dev/sdb 2) w –  user1070948 Mar 4 '13 at 7: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 4 '13 at 7:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.