LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2009, 02:08 PM   #1
marco.hahn
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu 14.04
Posts: 23

Rep: Reputation: 0
Backup with dd fails


Hi,

I have two identical hard disks (just differing by the serial number). One is my live disk, the other my backup disk. I backup by doing "dd if=/dev/sda of=/dev/sdb bs=1M" from a live distro (started from USB thumb drive).

To check whether the backup is workable, I remove the live disk and boot from the backup disk. The distro on it (SuSE10.3) uses the dev/by-id scheme in /etc/fstab, so this fails but I correct the ids on the backup disk to the correct serial number.

Thereafter, it still does not boot, but reports
Code:
fsck.ext3: No such file or directory while trying to open <dev...>
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), the the superblock is corrupt, and you might try runnung e2fsck with an alternate superblock
   e2fsck -b 8193 <dev>
error on stat() <dev>: No such file or directory
fsck.ext3 <dev> failed status (0x8). Run manually
for two of the four valid partitions on the drive.

However, none of the suggestions work.

I must note that all four partitions have type linux raid (fd), but I never got around to switch from my dd backup to a full raid solution.

What's wrong and how can I fix it. I seriously doubt that the drive is defective, as it has been used only several times and kept in safe storage otherwise.

Thanks,
Marco
 
Old 09-04-2009, 06:53 PM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Why not try a proper cloning tool like G4L or Clonezilla rather than plain old dd.
 
Old 09-04-2009, 11:17 PM   #3
marco.hahn
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu 14.04
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks ongte for the suggestion of these tools. However, after glancing at the home pages of these, I get the impression that under the hood they aren't taking care of the device IDs as well. The backup thus should have the same problems as my dd'ed copy.

Marco
 
Old 09-05-2009, 11:44 PM   #4
marco.hahn
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu 14.04
Posts: 23

Original Poster
Rep: Reputation: 0
Solution found

I changed the fstab to use the old /dev/sda-naming for the different partitions and then the backup disk comes up OK. I have no idea, why /dev/disk/by-id does not work. Any enlightenment would be very welcome.

Marco
 
Old 09-06-2009, 01:03 AM   #5
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
I have made many clones, and in the beginning I had problems with drive notations as well and used the 'old' /dev/sdx# notation to fix the problem. I have been using clonezilla with succes it works great. The last time i used it it did not have support ext4 yet but that may have changed by now.

here is a thread that I started a while ago that may give some insight with regards to the uuid's for hard drives. The title of the thread does not suggest the underlying problem straight away so bare with it as you read it.

good luck
Ron
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Automatic backup for sporadically connected clients with Box Backup LXer Syndicated Linux News 0 08-29-2008 08:40 PM
Backup Script Fails! richinsc Linux - Server 10 02-28-2008 11:51 AM
Webmin simple backup fails Tenover Linux - Software 3 12-16-2005 11:32 AM
Backup fails on specific files tcamp Linux - General 3 12-19-2004 05:56 AM
Yast2 Backup Fails Consistently wmeler Linux - General 0 06-18-2004 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration