LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 08-20-2004, 06:39 PM   #1
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
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?
 
Old 08-20-2004, 07:27 PM   #2
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
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.
 
Old 08-21-2004, 04:58 AM   #3
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 08-21-2004, 06:35 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

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

egag
 
Old 08-21-2004, 08:58 AM   #5
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 08-21-2004, 10:24 AM   #6
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
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 ...
 
Old 08-21-2004, 11:42 AM   #7
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 08-21-2004, 12:58 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 08-21-2004, 06:22 PM   #9
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.0 corrupted???? TheMajor Mandriva 14 01-02-2005 12:21 AM
inittab corrupted daya Red Hat 1 12-23-2004 08:26 AM
Corrupted struct? xconspirisist Programming 3 12-19-2004 08:58 AM
Corrupted boot - please HELP fastrac_tech Linux - General 3 09-08-2004 04:09 PM
Yet another corrupted /etc/fstab Dag Linux - General 2 06-08-2004 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration