Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-12-2007, 11:02 AM
|
#1
|
LQ Newbie
Registered: Nov 2004
Location: EU
Distribution: Gentoo - tarball 1 install :-)
Posts: 14
Rep:
|
gparted says no partitions
I messed around a bit too much with the win xp recovery console (fixboot, fixmbr) and corrupted my partition table. I reinstalled grub and now I can boot, but gparted refuses to see my partitions, but with fdisk I can still see them all though...
I really need to repartition... I have no way to backup the whole hard drive, so a clean setup is no option...
How can I fix my mbr or my partition table, or whatever is the cause of this?
Last edited by JohnyDRipper; 02-12-2007 at 11:04 AM.
|
|
|
02-12-2007, 11:12 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Warning: If your partition table was/is corrupted you may not be able to recover the partitioning. With that said, as a suggestion look at something like the SystemRescueCD and parted to possibly recover your partition table;
http://www.sysresccd.org/Main_Page
parted might be able to recover the partitioning if you know roughly the size and starting locations of the partitions. Hint start at the front (sector 0) and move forward one partition at a time.
|
|
|
02-12-2007, 11:35 AM
|
#3
|
LQ Newbie
Registered: Nov 2004
Location: EU
Distribution: Gentoo - tarball 1 install :-)
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by Lenard
Warning: If your partition table was/is corrupted you may not be able to recover the partitioning. With that said, as a suggestion look at something like the SystemRescueCD and parted to possibly recover your partition table;
http://www.sysresccd.org/Main_Page
parted might be able to recover the partitioning if you know roughly the size and starting locations of the partitions. Hint start at the front (sector 0) and move forward one partition at a time.
|
I actually don't know what is wrong... fdisk shows the partition table exactly as it was, but gparted seems unable to read it :? I guess it can't be the MBR, because the only thing that should reside in there is grub, right? So what is wrong with gparted? :?
I'm going to print the output of fdisk and use the tool you suggested to 'repair' the partition table... hope it helps...
anyway, thanks a lot in advance to help me out
|
|
|
02-12-2007, 11:46 AM
|
#4
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep:
|
Get a 2nd opinion and run cfdisk.
fdisk is the last line of defence as it can read corrupted partition tables while other partitioning tools have all given up.
Post the output of "fdisk-l" and all will be revealed. A record of it posted here may save your skin later on because your partition table can suffer damage or loss of information during the rescue attempts.
In general fdisk and cfdisk should be enough for rescuing the partitions.
A complete destruction of the partition table, which is just 64 bytes in the MBR, will not affect the partitions internal data. You can rebuild it and suffer no loss of data. I have done loads of them often to the maximum 63 partitions in a hard disk. The trick is always to keep a record of the partition table.
|
|
|
02-12-2007, 03:42 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
You can even create a copy of the partition table to save someplace;
# dd if=XYZ of=backup.bin bs=512 count=1
Replace XYZ with actual device name such as /dev/sda or /dev/hda.
Now to restore partition table to disk, all you need to do is use dd command:
# dd if=backup.bin of=XYZ bs=1 count=64 skip=446 seek=446
|
|
|
All times are GMT -5. The time now is 09:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|