LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   corrupted fs, please help (https://www.linuxquestions.org/questions/linux-newbie-8/corrupted-fs-please-help-220341/)

class_struggle 08-20-2004 06:39 PM

corrupted fs, please help
 
Hi,

Using cfdisk. I created two partitions out of my the second primary partition on my hard disk.

Automatically both became primary partitions, but the partition after them (orginally the third (and last) primary partition was demoted automatically to a logical partition.

Though it never lost it type setting (ext2), I cannot access nor see the files I had on it.

I ran fsck, but it says "bad superblock, try another one", which is pretty worrying, as it could mean I've lost those files (no backup). But then I think, "but I didn't touch it" and now it's corrupt? Noggins!

Any suggestions on how to find an alternative superblock for fsck or any other methods?

mikieboy 08-20-2004 07:27 PM

I don't understand why your last partition would be converted automatically to a logical partition as you can have four primary partitions on a hard drive. :scratch:

class_struggle 08-21-2004 04:58 AM

The fourth and last primary partition isn'y like the other three. It's usually blank and (roughly speaking) branches off into a series of logical drives.

So if hda is your harddrive, hda1, hda2, hda3 will be your three primary partitions.

hda4, won't be mentioned and hda5 will be the next drive to be mentioned,a nd it will be a logical one.

What I did, I split my hda2 into two, so it became hda2 and hda3. The original hda3 got "demoted" to hda5 automatically, and now I can't read or access it.

Can anyone help me? I've tried e2fsck and tune2fs -l, no luck.

egag 08-21-2004 06:35 AM

can you post the output of : #fdisk /dev/hda -l ,
that might make things a little more clear ?

egag

class_struggle 08-21-2004 08:58 AM

Thanks for reply. Sorry for not being clear. Here follows what you ask for, output of my fdisk-l hda.
Code:

Disco /dev/hda: 30.0 GB, 30005821440 bytes
255 cabezas, 63 sectores/pista, 3648 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Disposit. Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1        2093    16811991    7  HPFS/NTFS
/dev/hda2            2094        2421    2634660  83  Linux
/dev/hda3            2422        2555    1076355  83  Linux
/dev/hda4            2556        3648    8779522+  5  Extendida
/dev/hda5            2556        2701    1172713+  83  Linux
/dev/hda6            2702        2944    1951866  83  Linux
/dev/hda7            2945        3187    1951866  83  Linux
/dev/hda8            3188        3479    2345458+  83  Linux
/dev/hda9            3480        3552      586341  83  Linux
/dev/hda10          3553        3584      257008+  b  W95 FAT32
/dev/hda11          3585        3648      514048+  82  Linux swap

Sorry for the Spanish, that's the locale I use. To summarise, my corrupted filesys is the hda6. It *used* to be hda3, but as I mentioned, I took hda2 and split into two, so hda3 became hda5.
I actually repeated the process (for experimentation purposes) and split hda2 AGAIN, so that hda5 went to hda6. All the time using CFDISK.
Note that the later filesys like hda8 for example (previously hda6) were not affected by any of this and are in perfect shape.

The root of the problem seem to be the way CFDISK converts a primary partition into a logical one.

Any help appreciated.

class_struggle 08-21-2004 10:24 AM

No takers with this problem? 'm getting the impression that it's a complicated one. Maybe this forum isn't the right place for it ...

class_struggle 08-21-2004 11:42 AM

solved.
 
I have now solved this problem by way of experimentation.

With the small amount of interest I registered with this question - which actually was about a very serious problem, losing files - I don't think it's necessary to post how I actually solved it in the end, for the benefit of others, is it?

I will do it, if there are requests.

egag 08-21-2004 12:58 PM

well... i don't think many people have a lot of experience with deviding HD-part's in two, so...
not much support.....:(

though....it would be nice to post a solution to your prob. if you found it.
(hope you do so !)

egag

class_struggle 08-21-2004 06:22 PM

OK I posted this up as a success story, in the relevant forum, see http://www.linuxquestions.org/questi...hreadid=220673


All times are GMT -5. The time now is 11:47 PM.