Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
Thanks for reply. Sorry for not being clear. Here follows what you ask for, output of my fdisk-l hda.
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.
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?