weird space problem with XFS
i have a 30GB XFS partition, on which is used ~5GB, but free space is only ~4.9 GB. in fdisk, cfdisk, qtparted, everywhere it shows that it is 30GB partition, but where are those 20GB?
i found out when i ran emerge openoffice, whichcomplained i do not have >5GB free space.
how can i fix this?
this is output of fdisk /dev/hda
Disk /dev/hda: 40.0 GB, 40007761920 bytes
240 heads, 63 sectors/track, 5168 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5 37768+ 83 Linux
/dev/hda2 6 72 506520 82 Linux swap / Solaris
/dev/hda3 73 5168 38525760 83 Linux
and this is output of df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 9764800 5098076 4666724 53% /
udev 322148 208 321940 1% /dev
/dev/hda1 36566 4806 29872 14% /boot
/dev/sda1 304085048 95166460 208918588 32% /mnt/stuff
none 322148 0 322148 0% /dev/shm
i do not know if any other logs would be of any help, if so, please let me know and i will post them
well I am stumped but here is what we can tell so far
5168 cylinders x 7741440 bytes per cylinder = 40007761920 bytes
divide by 1024 then again by 1024 = 40 G so far so good
2) df shows free is 53% so the opposite du should be 47%
3) Now lets try 2 ways of looking at whats using the space
assuming you have a file manager (ignoring the tiny amount on the same drive (/boot) what does that say is total used?
(b) copy and paste this command into a terminal with root powers ...
du -a / | sort -rn | less
read man du if you think I am trying nasties.
it will list the biggest files at the top and descend...do you recognise any of the biggies ?
most of my relate to my KDE Wm and my kernel
(3) forgot to add look into /var/log and see how big the syslog and messages are....maybe you forgot to force a rotation thru
It looks like your filesystem is just 9GB in size. You did format the partition properly right? And haven't changed anything since then.
i can't understand it. i tried to check it with xfs_check, but as it is root partition it is mounted... only thing i could think of (pretty stupid) was pluging my notebook off an on by pushing power button, so it would be forced to check it. after checking it, nothing changed
ok boot a live cd such as knoppix or kanotix and run QtParted and let it see what your size is.
just an idea.
(2) if you find a difference and have backed up any important data too cdr / usb etc let qtparted resize it?
i'm currently downloading knoppix live dvd, so maybe tomorrow i'll be able to try it. however, i do not know how to best backup my data. is it enough to copy whole root partition somewhere, fix it and then copy data back?
i really do not want to mess my system up to the point of re-installation...i didn't even compile all programs which i wanted to have in this installation;(
I do not use gentoo so have a look at the gentoo forum or the web site gentoo forum.
2) also if there is a problem with your system......a clean install will be the best in the long run.....but can you remember if you used any partition magic or other tool to change any part of your system? or do you use LVM, raid etc?
3) You should think about having a backup plan no matter what distro you are using but if you are not compiling but using ready made gentoo packages I am not sure what the issue is?
in the end, i might ending leaving things as they are...i'll lose 30 GB but i really do not have time nor energy to reinstall everything from scratch...
thanks for your time
yeah I wasn't sure how much you were compiling....hava read of this and see if there is a quicker way?
the gentoo forums may be your friend?
btw....there are distros like Mandriva that install and have all the software you need in 1 hour not 1 week.
I use a vanilla kernel so have to spend some time patching and re-compiling but as the speed of my new computer is fast.....I do not gain a huge lot in compiling from source versus those with old hardware.
well thats my aussie 2 cents worth
reboot to slax livecd
$ xfs_growfs /dev/hda3
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 37G 6.5G 31G 18% /
udev 315M 216K 315M 1% /dev
/dev/hda1 36M 12M 23M 33% /boot
/dev/sda1 290G 162G 129G 56% /mnt/stuff
/dev/sda2 1.8G 28K 1.7G 1% /tmp
/dev/sda3 6.1G 577M 5.3G 10% /var/tmp
none 315M 0 315M 0% /dev/shm
|All times are GMT -5. The time now is 10:32 AM.|