bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] ddrescue and partition table


From: andrew zajac
Subject: Re: [Bug-ddrescue] ddrescue and partition table
Date: Wed, 4 Nov 2009 09:46:34 -0800 (PST)

Well, you've made a backup of the partition so the partition table on sda is irrelevant.  Did the partition table on sbd point sdb1 to the wrong spot?  Unlikely.

Your superblock may be messed up.  Linux Ext filesystems keep backups of the superblock.  Just try to mount the filesystem with one of the backups:

sudo dumpe2fs /dev/sda7|grep superblock

This will list the superblocks.  You need to multiply the block size by four to translate from disk blocks (512 bytes) to filesystem blocks (4096 by default).  Something along the line also uses 1024 sized blocks so that's why 4 is appropriate.  for example:

Backup superblock at 32768, Group descriptors at 32769-32771

32768 * 4 = 131072, so,

address@hidden:~$ mkdir mnt

address@hidden:~$ sudo mount -r -o sb=131072 /dev/sda1 mnt

address@hidden:~$ ls mnt
bin    etc         initrd.img.old  mnt   sbin   tmp      vmlinuz.old
boot   home        lib             opt   srv    usr
cdrom  initrd      lost+found      proc  store  var
dev    initrd.img  media           root  sys    vmlinuz


Use sda7 in your case... I hope this helps.

Andrew Zajac



--- On Wed, 11/4/09, Trio3b <address@hidden> wrote:

From: Trio3b <address@hidden>
Subject: [Bug-ddrescue] ddrescue and partition table
To: address@hidden
Received: Wednesday, November 4, 2009, 1:06 AM


mandriva linux. 40gb hdb  (hdb1 34gb, hdb3 3gb) used for backup went bad.
error message "no permissions"., or wrong fs, bad superblock etc.

Moved to new PC with hda. partitioned

hda1 - /
hda6 - /home
hda7 - /resue  42gb specifically to hold hdb1

tried ddrescue -n /dev/hdb1 /dev/hda7 logfile

now hda7 won't mount with same error message  of "no permission" or wrong
fs, bad superblock

permissions are given

I believe partition table of hdb is corrupt. Is ddrescue copying bad
partition table from hdb to hda7 so it won't mount?

Any help appreciated
--
View this message in context: http://old.nabble.com/ddrescue-and-partition-table-tp26191466p26191466.html
Sent from the Gnu - ddrescue mailing list archive at Nabble.com.



_______________________________________________
Bug-ddrescue mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ddrescue


Looking for the perfect gift? Give the gift of Flickr!
reply via email to

[Prev in Thread] Current Thread [Next in Thread]