You are not logged in.

#1 2008-06-07 17:43:03

bomaroast
Member
Registered: 2008-03-17
Posts: 9

Full partition size not showing up - Solved

I just pulled my main drive out of my system to use elsewhere.  I did a couple things before doing so.
1) gparted - shrunk the root partition down to 10Gb
2) partimage - created an image
3) gparted - created a 15Gb partition on another drive
4) partimage - restored image to the new partition

Now there are problems.  Gparted shows a 15.37Gb partition with 10Gb used and 4Gb free.  The total size is correct but the used size is wrong.

With df the used size is correct but the total size is wrong.

$ df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/sda1                10994      6115      4433  58% /
none                       506         0       506   0% /dev/shm
/dev/sda3               218982    134159     73787  65% /home/re/data

What in the world is wrong here?

Last edited by bomaroast (2008-06-09 16:25:02)

Offline

#2 2008-06-07 20:34:40

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Full partition size not showing up - Solved

Just out of curiousity, did you change your fstab?  That might be the problem.

Offline

#3 2008-06-07 21:43:36

bomaroast
Member
Registered: 2008-03-17
Posts: 9

Re: Full partition size not showing up - Solved

Yes, I did.

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


#/dev/cdrom /mnt/cdrom   iso9660   ro,user,noauto,unhide   0      0
#/dev/dvd /mnt/dvd   udf   ro,user,noauto,unhide   0      0
/dev/sda1 / ext3 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 /home/re/data ext3 defaults 0 0

The disk I removed used to be sda and the disk I'm using now used to be sdb.  I made very minor changes to reflect the three altered mount points. 

I don't have the old fstab available but if it would really be useful I can re-image the partition to retrieve it.

Offline

#4 2008-06-07 22:26:07

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Full partition size not showing up - Solved

bomaroast wrote:

I don't have the old fstab available but if it would really be useful I can re-image the partition to retrieve it.

I don't think that's necessary.  The only thing i can think of (other than you accidently put in the wrong disk) is that the partimage you made was of a 10G partition, so the restored image thinks that's still the size...

Edit:  spelling.

Last edited by tigrmesh (2008-06-07 22:26:37)

Offline

#5 2008-06-07 23:13:05

bomaroast
Member
Registered: 2008-03-17
Posts: 9

Re: Full partition size not showing up - Solved

Ya, it seems obvious that is the problem.  Why did it happen though?  Is there a file somewhere that specifies how large all the mounted discs are?  Is there some way to prompt the system to update all its hardware information?

Offline

#6 2008-06-09 16:26:15

bomaroast
Member
Registered: 2008-03-17
Posts: 9

Re: Full partition size not showing up - Solved

Using a licecd and gparted I shrunk the partition a few hundred megs and then grew it back to the original size.  Probably not the best solution but it worked for the most part.  I don't know quite know where the Gb of extra data came from but oh well.

df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/sda1                15489      7158      8017  48% /
none                       506         0       506   0% /dev/shm
/dev/sda3               218982    134294     73652  65% /home/re/data

Last edited by bomaroast (2008-06-09 16:29:11)

Offline

#7 2008-06-10 01:06:05

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Full partition size not showing up - Solved

I'm glad you got it fixed.  smile

Offline

Board footer

Powered by FluxBB