Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Misc > Partitions suddenly gone

Forgot Password?
 Misc   Any questions or Linux discussion that does not fit in any of the other technical areas.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-27-2007   #1 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 9
Partitions suddenly gone

I installed PCLinuxOS earlier. It worked fine. I pressed the 'suspend' button on my laptop which suspended to RAM (I think it was RAM, because it shut down very quickly).

Later, I turned it on again and it booted up to the 'unlock' screen in PClinuxOS. I put in my password, then it crashed. I rebooted.

Upon reboot, the laptop could find nothing (no GRUB, no operating systems). I booted the PCLinuxOS liveCd, followed by ZenLive (for gparted). Both partition managers show there is nothing but a single large (whole hard disc) partition, formatted as ext3. What happened!

Previously, there was a 2.5gb ntfs partition (never used really), a 5gb linux partition (ext3) for root partition, a 768mb linux-swap partition, and a 20gb (approx.) ext3 partition for /home. These appear to all be gone.

I want to know what might have happened to my partitions and data, and how (if, but here's to hoping) I can get them back!
q4agbx is offline  



Reply With Quote
Old 07-27-2007   #2 (permalink)
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 13,094
You could try using TestDisk to get them back. It comes with the Parted Magic LiveCD:

Parted Magic
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 07-27-2007   #3 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 9
Just the sort of thing I wanted to hear - I read about testdisk but it wasnt clear how to get a livecd with it.

I also found something about 'gpart' running on knoppix (a LiveCD that I already have). Any ideas on whether this should work?
q4agbx is offline   Reply With Quote
Old 07-27-2007   #4 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 22,147
This is strange problem. There isn't any utility available that could merge all partitions automatically ( magically ) and Suspend can't do that at least.
Are you sure that Partitions are merged? Whats the output of fdisk -l command?
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 07-27-2007   #5 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 9
I just ran 'gpart /dev/hda' from knoppix, and it tells me what it thinks. Essentially, it has correctly identified the partitions that should be present! (well, it says ext2 when it should be ext3, but its a start).

The partitions must still be there, so I'll maybe download and run testdisk to try and recreate a partition table (since this should be possible, if the partitions are still technically present). My knowledge is limited, but it looks like the partition table and MBR are corrupted or something.

EDIT: It apparently guessed ext because it is older than ext3, so testdisk is definitely a better program to run, I think).
q4agbx is offline   Reply With Quote
Old 07-27-2007   #6 (permalink)
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 13,094
Quote:
Originally Posted by q4agbx View Post
Just the sort of thing I wanted to hear - I read about testdisk but it wasnt clear how to get a livecd with it.
You download the Parted Magic Livecd and TestDisk is included on it. The entire download is only about 35 MB, so it's quick and easy.
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 07-27-2007   #7 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 9
Sounds great! That should be just what I need to restore it - and hopefully find out somehow what on Earth caused the problem in the first place.
q4agbx is offline   Reply With Quote
Old 07-27-2007   #8 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 9
That must have done something right! The partition table seems to have been successfully recreated, but GRUB is still completely gone. Does anyone know if (the fantastic) parted magic can install GRUB again without doing anything else?
q4agbx is offline   Reply With Quote
Old 07-27-2007   #9 (permalink)
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 13,094
Yes, the livecd does have GRUB on it so you can use it to reinstall GRUB to the MBR, but I've never used that function so don't know exactly how it works.

Look around in the Help menu (icon on bottom-right) for info about it.
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 07-27-2007   #10 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 9
In case this helps anyone, I was able to install grub from the parted magic liveCD (though apparently just about any liveCD, including the pclinuxos one I had originally, would work).

I used:

su
grub
find /boot/grub/stage1 (cant actually remember the filepath, but it was pointing at the file 'stage1' in a grub folder).
root x (where 'x' is the output of the previous command. x = the partition with linux on it that grub can see, e.g. (hd0,4) in my case).
setup (hd0) To actually put GRUB on the MBR
quit
reboot


This worked perfectly, GRUB even found my original (slightly modified) menu.lst on the pclinuxos partition, so everything is fixed. I think I'll avoid the suspend button from now on though...

Thanks for the help with this. It made it really easy to fix, even though I hadnt a clue when I started!
q4agbx is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:25 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1