Wrong major or minor number (was and still is:[/DEV/HDA] BIG EMERGENCY)
was... [/DEV/HDA] BIG BIG EMERGENCY! (was since 28092001) Christopher Mahmood schrieb:
* Oliver Ob (ob_ok@gmx.net) [020329 15:04]:
thanks christopher. But how can I repair this and get access back to the partitions?
with mknod...now that I think about it I doubt this is problem. You can check with 'ls -l /dev/hda*' though. What does fdisk -l /dev/hda say about the disk?
--
-ckm
Hi Christopher, now that I reinstalled my laptop after hd-crash I found this old mail in an old backup. Should I try mknod /dev/hda1? It is clear to me that the DOS-signature on /dev/hda1 is wiped, since I cleared the first xxxx bytes of hda1 to get any access at all. The partition table was gone due to physical errors. Now I ran gpart and it told me some values which I wrote on hda using fdisk, so to answer your above question: I cannot "ls" on hda1, reason as said. But fdisk shows a FAT partition, just according to what gpart told me. Now, I can cat /dev/hda1 and see (after tons of zeros, which I had to write to get back any access to hda at all) my autoexec bat and so forth. So all the files are there. My idea is now to somehow "fake" or "write" a DOS signature onto hda1 and then simply copy all files off the disk. While I am typing this, I managed to evacuate hda3 (linux) and hda4 (data) drives to a secure second harddrive. It is just copying the files off the hda2 right now. So how can I generate a DOS-signature and write it to hda1? man mknod, but that did not tell me much. Kind regards (this message is not being cross posted, I hope :-) ) -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<
Oliver Ob schrieb:
was... [/DEV/HDA] BIG BIG EMERGENCY! (was since 28092001)
Christopher Mahmood schrieb:
* Oliver Ob (ob_ok@gmx.net) [020329 15:04]:
thanks christopher. But how can I repair this and get access back to the partitions?
with mknod...now that I think about it I doubt this is problem. You can check with 'ls -l /dev/hda*' though. What does fdisk -l /dev/hda say about the disk?
--
-ckm
Hi Christopher, now that I reinstalled my laptop after hd-crash I found this old mail in an old backup.
Should I try mknod /dev/hda1?
It is clear to me that the DOS-signature on /dev/hda1 is wiped, since I cleared the first xxxx bytes of hda1 to get any access at all. The partition table was gone due to physical errors.
Now I ran gpart and it told me some values which I wrote on hda using fdisk, so to answer your above question: I cannot "ls" on hda1, reason as said. But fdisk shows a FAT partition, just according to what gpart told me.
Now, I can cat /dev/hda1 and see (after tons of zeros, which I had to write to get back any access to hda at all) my autoexec bat and so forth.
So all the files are there.
My idea is now to somehow "fake" or "write" a DOS signature onto hda1 and then simply copy all files off the disk.
While I am typing this, I managed to evacuate hda3 (linux) and hda4 (data) drives to a secure second harddrive. It is just copying the files off the hda2 right now.
So how can I generate a DOS-signature and write it to hda1? man mknod, but that did not tell me much.
Kind regards (this message is not being cross posted, I hope :-) )
Update:
So I went and edited the part. table and rewrote it with the data I got from gpart.
It just did not find hda1 (which seems to have lost its signature entirely). hda2-4 can be mounted and then copied. I think I can fix that.
I made it that hda4 is now rescued!
But: hda1 cannot be mounted. It says "wrong major or minor number" which appears to me like the partition START is gone. now how can I dd all contents of hda1 to an image to let it mount and copy all the files off then? (*)
Also, I dd'ed me an image of hda1, no errors on that except for the point that the first xxxx bytes are all zeroed. Now, how write the dos signature onto hda1? mknod? -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<
Wolly Wicyrek schrieb:
1) find filesystem start on /dev/hda1 2) save that filesystem using dd_rescue 3) check filesys size ( mount image /mnt -o loop,ro -t<fstype>; df /mnt ) 4) serch next filesystem start where you would expect it (that's the reason for calling df) 5) go on with 2 Remember to leave out swap. Filesystem start can be found by 1) finging filesystem magics (e.g. `ReIsEr2Fs') 2) trial and error assuming that it is 512-byte aligned (expect firs offset aroung 63*512 bytes)
If you have rescued the filesys on an image, mount image via loop dev and copy data. Maybe try an e2fsck on the image file...
HTH & have fun... Wolly
Dear Wolly, thanks for your efforts. BUT: I cannot mount a filesystem or its image when the signature is damaged. So how do I reconstruct the signature? Idea? -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<
Rafael wrote:
Replicate the dos partition on your backup drive, if the new disk has the same geometry, use the same boundaries, if not make it a little bigger. Use dd_rescue from the dd_rescue.rpm package.
dd_rescue /dev/hda1 /dev/hdb1
See if Partition Magic or other DOS partition recovery tool can recover your DOS partiton in the COPY, not the original. If you succeed, try in the original.
If you are successful, rebuild your system. Copy all the other partitions with dd_rescue to your new drive (keep in mind the size of the partitons). Then, restore the files to a third disk, since I would not trust your broken one.
A way of doing it is by means of tar:
hdb: New disk 1 hdc: New disk 2
boot in rescue mode
mount hdb2. Eg. mount /dev/hdb2 /disk1 mount hdc2. Eg. mount /dev/hdc2 /disk2
cd /disk1 tar cf - . | ( cd /disk2 ; tar xvpf - )
repeat procedure with other partitons.
-- Rafael
Good idea Rafael, but same to you: I cannot mount a partition or its image when the signature is gone. Any idea on how to reconstruct it or have I overseen anything? -- *º¤., ¸¸,.¤º*¨¨¨*¤ =Oliver@home= *º¤., ¸¸,.¤º*¨¨*¤ I http://www.bmw-roadster.de/Friends/Olli/olli.html I I http://www.bmw-roadster.de/Friends/friends.html I I http://groups.yahoo.com/group/VGAP-93 I I http://home.t-online.de/home/spacecraft.portal I
Telek0ma iBBMS - soon back online +49.4503.TRSi1/TRSi2 <<<
participants (1)
-
Oliver Ob