Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 06-17-2012, 01:54 AM   #1
LQ Newbie
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
losing grub made a partition unlocated!!!!

i had ubuntu 12.04, backtrack and windows7 installed on my netbook. then i installed win xp instead of 7 (first i delete 7 then installed xp) and now grub is gone and when i boot a live ubuntu cd,with gparted utility,my home file which were in a separate ext4 partition is gone and there is "unallocated partition" instead. it was so important for me. how do you think i can have it again???
Old 06-17-2012, 02:06 AM   #2
LQ Newbie
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
Try this,
ubuntu@ubuntu:~$ sudo apt-get update
ubuntu@ubuntu:~$ sudo apt-get install gpart
ubuntu@ubuntu:~$ sudo gpart /dev/sda
[you will have to verify if the detected partition data is correct before proceeding, this command is supposed to take some time]
ubuntu@ubuntu:~$ sudo gpart /dev/sda -W sudo gpart /dev/sda
[Restart if this command is completed successfully, This command may take considerable time
Old 06-17-2012, 02:26 AM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860
If your data was important for you you should have a backup of it (made regularly, but especially when doing system critical tasks, like installing an OS).

Anyways, if the above mentioned approach with gpart fails you can use photorec (part of the testdisk package) to try to recover your files.
Old 06-17-2012, 03:41 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
To maximize your chances of recovering data from that disk, be careful to not do anything that would cause a write to the disk. I am not familiar with "gpart", but it sounds like it might only write to the mbr (i.e. to fix the partition table). In principle, that won't affect any data, but think twice before doing **anything**

If the data is really important, then consider making a clone of the disk before trying any experiments.

some questions:
1. How did you delete win 7?
2. When installing XP, did you make any selections to tell the installer how to partition?
3. Post the complete output from GParted---i.e. the list of ALL partitions, types, and sizes


grub, partition recovery

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
Unlocated boot problem nnjond Linux - Newbie 1 09-20-2010 06:31 AM
losing DSL, losing GRUB controller andreas_skw Linux - Newbie 4 06-14-2008 02:36 AM
losing DSL, losing GRUB controller andreas_skw Linux - Newbie 1 06-10-2008 12:46 PM
Re-partition without losing data goodtogo Linux - Software 4 06-22-2007 09:20 AM
How do I install slackware on a partition made by partition magic in windows bling bling Slackware 4 06-29-2003 12:16 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:03 PM.

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