LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Closed Thread
  Search this Thread
Old 11-22-2007, 09:01 AM   #1
dmedhora
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
partition table broken ?


Hi , Please excuse this repost here,
I managed to overwrite the first 512 bytes of my
/dev/sda ( an ide hard disk connected to my laptop
via a usb adapter having only linux partitions )

I think gpart can't do much for logical partitions
SO I used testdisk which works well except I can't
mount my most important 50 G filesystem anymore.
The partition table shows a bit of an overlap
of the 11th and 12th partition ( I may be wrong )
But here is the output:
analyse disk gave me this output

Linux 0 1 1 20317 15 62 20480480 [/opt]
Linux 20318 0 1 30476 15 63 10240272 [/u01]
Linux 30477 0 1 40635 15 63 10240272 [/usr]
Linux 40636 1 1 44699 15 62 4096448 [/var]
Linux 44700 1 1 54387 15 62 9765440
Linux 54388 1 1 56325 15 62 1953440
Linux 56326 1 1 57294 15 62 976688
Linux Swap 57295 1 1 61169 15 46 3905920
Linux 61170 1 1 80545 15 62 19530944
Linux 80546 1 1 99921 15 62 19530944 (Note this ends at 99921)
Linux 99921 15 63 196802 15 54 97656040 (Note this starts at 99921)
Linux 196803 1 1 238215 15 62 41744240 (These 3 lines are the
Linux 196812 1 1 238224 15 62 41744240 same partition really)
Linux 196877 1 1 238289 15 62 41744240

Now, Why does partition 11 start at the SAME place
where partition 10 ends. How do I fix that?
Is that the reason why the filesystem on 12
is "corrupt?" - I get a bad magic number in
superblock when I try to mount it.

Thanks!
 
Old 11-23-2007, 08:00 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
I've only done something like this to myself once. I hope I never do that again. I was resizing some partitions and ended up with overlaps and a system that wouldn't reboot. I did the resizing, and, instead of rebooting to load the new partition table into the running kernel, I started moving some files. That's when the errors about overlapping partitions came up.

Fortunately, I made backups of the partitions I intended to resize before I bagan. So, I was able to delete the partitions, make new ones, boot a livecd, and restore the backups.

I don't know if this will work, but here is my suggestion.

If the first of these is the 50 gig partition
Quote:
Linux 80546 1 1 99921 15 62 19530944 (Note this ends at 99921)
Linux 99921 15 63 196802 15 54 97656040 (Note this starts at 99921)
then edit the second to move the beginning from 99921 to 99922, then boot a livecd and run fsck on the unmounted partitions.

If the second is the 50gig partition, move the end of the first one from 99921 to 99920. Then boot a livecd and run fsck on the unmounted partitions.

Hopefully, you will be able to boot normally after that.

If that doesn't work, I hope you have backups of the two partitions that you can restore after making the corrections to the partition boundaries.

If gparted doesn't work with logical partitions, try cfdisk.

Last edited by bigrigdriver; 11-23-2007 at 08:02 PM.
 
Old 11-26-2007, 06:57 AM   #3
dmedhora
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Hi you wrote
If the second is the 50gig partition, move the end of the first one from 99921 to 99920. Then boot a livecd and run fsck on the unmounted partitions.
I tried that but fsck then doesn't work saying bad magic number,
I have the same posting here as well with more details, Please see:
http://www.linuxquestions.org/questi...-table-601637/
Thanks!
 
Old 11-26-2007, 05:28 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Please continue here
 
  


Closed Thread


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
Broken DSDT table lebabyg Linux - Hardware 6 12-18-2006 07:35 PM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 12:26 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
Can't talk to router--broken routing table? (MDK10) Entropius Linux - Networking 3 06-23-2004 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:57 AM.

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