LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices


Reply
  Search this Thread
Old 08-18-2011, 11:31 AM   #1
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Rep: Reputation: Disabled
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...
 
Old 08-18-2011, 11:48 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Have you tried a liveCD to see if you could mount your home partition from there? knoppix is a good choice.
ciao,
jdk
 
Old 08-18-2011, 06:27 PM   #3
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: Disabled
I used a live cd and got the same thing Ubuntu says.
 
Old 08-18-2011, 06:32 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please post the output of
Code:
sudo fdisk -l
df -h
mount
 
Old 08-18-2011, 07:05 PM   #5
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: Disabled
fdisk -l output:

Quote:
Disk /dev/sda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00060fb0

Device Boot Start End Blocks Id System

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfd6d7da1

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

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000680bd

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 6225 49998848 83 Linux
Note: Two SATA 1tb drives, one IDE 30 gb drive(which is presently empty). I experimented with LFS, hence all of the small partitions on sdb

df -h:

Quote:
Filesystem Size Used Avail Use% Mounted on
/dev/sdc1 47G 3.7G 41G 9% /
none 1.9G 708K 1.9G 1% /dev
none 2.0G 1.3M 2.0G 1% /dev/shm
none 2.0G 132K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
/dev/sdb4 810G 739M 768G 1% /home
... Yes, the /home partition is that large.... :P

Quote:
/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 07:07 PM. Reason: Sufficient details.
 
Old 08-18-2011, 07:34 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 08-18-2011, 07:45 PM   #7
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: Disabled
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?
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	23
Size:	120.0 KB
ID:	7826  
 
Old 08-18-2011, 07:51 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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 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.

I don't know how GParted comes to that 13GB.
 
Old 08-18-2011, 10:31 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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 ???.
 
Old 08-19-2011, 10:29 AM   #10
TwoGuesses
LQ Newbie
 
Registered: Jun 2011
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: Disabled
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..*
 
  


Reply

Tags
/home, desktop, partition, ubuntu 11.04



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
Ambiguity in free disk space in /home partition vharishankar Linux - General 15 02-22-2013 02:58 PM
Disk space lost in home on ext3 (roughly 66% disappeared) abdullin Linux - Newbie 8 07-28-2011 12:36 PM
Lost partition on ubuntu and vista dual boot on vista reinstall, Testdisk no succes pulkittomar Linux - Laptop and Netbook 9 11-24-2010 02:03 AM
Can I delete and reinstall Ubuntu 8.04 and keep a home partition? win_to_lin_migrant Ubuntu 4 01-18-2009 12:56 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration