LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 06-17-2012, 01:54 AM   #1
hamidhqs
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
prabampm
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
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,623
Blog Entries: 2

Rep: Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078
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
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
ham*;
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
 
  


Reply

Tags
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


All times are GMT -5. The time now is 05:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration