Ubuntu Reinstall with same /home partition, all seems lost but still 13gb disk space
Soo, I encountered a problem with Ubuntu 11.04 with Unity where the dock and the bar that runs along the top wouldn't come up with the rest of the desktop (I'd get wallpaper and an icon, but nothing else) SO I switched to a root session, and after only a few commands would work because apparently "/usr/bin/python" was missing (Or similar -- that may not be exactly what it said, but it was definitely a problem with python because sudo and various other commands wouldn't work. I figured a reinstall would solve the problem, and I had all of my important stuff on a separate /home partition. However, after the install, Ubuntu mounts the appropriate partition at /home, there's nothing there but the standard skeleton of directories. I payed special attention during the install to be sure it didn't format the partition, and gparted is saying that my 13gb of the partition is still used, so I'm quite sure it's still there.. Any suggestions are greatly appreciated..
I probably should of come here for the initial problem... |
Have you tried a liveCD to see if you could mount your home partition from there? knoppix is a good choice.
ciao, jdk |
I used a live cd and got the same thing Ubuntu says.
|
Please post the output of
Code:
sudo fdisk -l |
fdisk -l output:
Quote:
df -h: Quote:
Quote:
|
According to df your /home partition only contains 739MB, not 13GB. So it seems to me that this partition actually was formatted. So you have two options to get your data back:
1. Restore your backup (assuming you have one, if the data is important to you). 2. Unmount the /home partition immediately and use photorec (part of the testdisk package) to recover at least a part of your data. |
1 Attachment(s)
I noticed that it said only 739M was used. I also noticed that it said it was a total of 810GB with only 768G available.. Meaning that 42gb is used...?
Also, I attached a screenshot of Gparted's claim that there is 13g used. Would this be inaccurate? |
I would recommend to not run the system anymore with the /home partition mounted, every write to that partition can destroy more of your data.
Quote:
I don't know how GParted comes to that 13GB. |
A couple of (hopefully educated) guesses:
- the partition is ~822 GiB (as both gparted and fdisk indicate). - the journal occupies ~12-13 Gib - giving a usable filesystem size of ~810 GiB (as df says) - default 5% is reserved as TobiSGD suggest - say 40.5 GiB. Seems to be in the ballpark; doesn't allow for any data though ... Start looking at testdisk and/or photorec. Now, about that backup you took before you started all this ???. |
Alright, I'll take a peak into photorec...
Thanks for the help, I removed /dev/sdb4 from fstab and am going to use photorec as root. Thanks for the specification. Oh, you mean that nonexistent one...? :P *lesson learned..* |
All times are GMT -5. The time now is 05:21 PM. |