View previous topic :: View next topic |
Author |
Message |
suredeath Tux's lil' helper
Joined: 15 Aug 2006 Posts: 101 Location: Easterwood, N.Br., The Netherlands
|
Posted: Wed Aug 30, 2006 9:24 am Post subject: Messed up hd, parted Segfaulting [SOLVED] |
|
|
I did the stupidest thing.... I issued the mklabel command using parted (GNU Parted 1.6.25) on a (Samsung IDE/PATA 160Gb) disk with three full partitions on it. Especially the first, a 124 Gb data partition, is dearly missed.
Yes I was dumb here. What I wanted was changing a partition label. And I wasn't sharp that day. I know.
In the past I have had luck with the RESCUE option. However, if I start rescue, right after I enter the Start of the former partition I get a segfault and parted exits. No further info.
The first 140 Gb on the disk haven't been touched since, the remaining bit holds my new Gentoo setup.
Both the Minimal InstallCd version of parted and the newly built one on a FULLY FRESH stable Gentoo box demonstrate the same behaviour. For the record, all partitions had EXT3 filesystems on them, and I created a new msdos type label on the disk. System is an i686, Kernel 2.6.17-r7-gentoo, HyperThreading disabled, 1Gb RAM, 2 x IDE-PATA 160Gb, 1 x IDE-SATA 160Gb.
Any ideas on what's causing this, and -much more important now for me- any tips on how to retrieve the data from the lost partition(s)? (I know the 3rd one is lost anyway, since I have overwritten that part.)
Help much appreciated.
Last edited by suredeath on Fri Sep 01, 2006 2:40 pm; edited 1 time in total |
|
Back to top |
|
|
SirYes Apprentice
Joined: 15 Jan 2006 Posts: 282 Location: Lodz, Poland
|
|
Back to top |
|
|
suredeath Tux's lil' helper
Joined: 15 Aug 2006 Posts: 101 Location: Easterwood, N.Br., The Netherlands
|
Posted: Fri Sep 01, 2006 9:54 am Post subject: Testdisk |
|
|
Thanks for that tip!!! Keeping my fingers crossed!
Any idea if there is a lot of risk involved when this tool is working on the disk that also holds my working Gentoo Install (in another partition/area of the disk?)
I think I may make a dd copy of the partition first to be on the safe side.... |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Fri Sep 01, 2006 11:20 am Post subject: |
|
|
These programs scan the whole disk for partition start and end entries. They are just reading and therefore not damaging the disk any further (besides there are scratches on the disk anyway ). Before somthing is written to the disk, the program asks if the "guessed" partition table is correct.
At least this was the case as I last used one of these programs (Yes, you learn something from hurting your data really hard )
But if you have the space, a dd copy of the whole disk or just the hard to get data partitions does not hurt. _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
suredeath Tux's lil' helper
Joined: 15 Aug 2006 Posts: 101 Location: Easterwood, N.Br., The Netherlands
|
Posted: Fri Sep 01, 2006 1:05 pm Post subject: |
|
|
My backup turned out to be a GOOD thing. The program discovered two of the three former partitions. My mistake was I thought these were simply the partitions found that were lost, and that the new partition I created would still be there after writing the info back.
Worng assumption. Since the start of the newly created partition was BEFORE the end of the old second partition testdisk 'missed' the overlap situation. Only after a 'deep scan' on a second run (after I booted with a kernel panic of course) it rediscovered all (parts of) partitions still visible. Even my NTFS data partition from way back still existed in the table (its contents of course completely unusable).
As a backup method I chose tar, read another post on it if you care https://forums.gentoo.org/viewtopic-p-3547312.html#3547312
So now I DO have my important data back, and thanks to the backup I also have a working system, albeit from another root partition.
45gb of music, about 50Gb of films & clips, two years' worth of mail, and then some... All there!
Again, thanks a lot. REALLY! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|