[SOLVED] Ubuntu Reinstall with same /home partition, all seems lost but still 13gb disk space
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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...
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 66 14035 112202753 5 Extended
/dev/sdb3 14035 14296 2097152 83 Linux
/dev/sdb4 14296 121602 861935616 83 Linux
/dev/sdb5 66 2677 20971520 83 Linux
/dev/sdb6 2677 5288 20971520 83 Linux
/dev/sdb7 5288 6593 10485760 83 Linux
/dev/sdb8 6593 7246 5242880 83 Linux
/dev/sdb9 7246 13773 52428800 83 Linux
/dev/sdb10 13774 14035 2097152 82 Linux swap / Solaris
/dev/sdc1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/sdb4 on /home type ext4 (rw,commit=0)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/user/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=user)
Thanks in advance for the help and time.
Last edited by TwoGuesses; 08-18-2011 at 08:07 PM.
Reason: Sufficient details.
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.
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.
I also noticed that it said it was a total of 810GB with only 768G available.. Meaning that 42gb is used...?
On a normal format without specifying any further options 5% of the space are reserved for the root user. That is the used space you can see there. On a data-only partition (like the /home partition) this doesn't make much sense, you can adjust that with the -m option of tune2fs. But recover your data first.
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 ???.