Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
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.
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???
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.