LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-26-2006, 05:01 AM   #1
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Rep: Reputation: 15
Unhappy 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

Last edited by Sammael; 08-26-2006 at 05:31 AM.
 
Old 08-26-2006, 09:49 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
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
/etc/logrotate.d?

Last edited by aus9; 08-26-2006 at 09:51 AM.
 
Old 08-26-2006, 10:46 AM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
It looks like your filesystem is just 9GB in size. You did format the partition properly right? And haven't changed anything since then.
 
Old 08-26-2006, 02:09 PM   #4
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
(b) copy and paste this command into a terminal with root powers ...
du -a / | sort -rn | less
i examined that list, no weird files, too long to post here, after running du -s -h / iu get:
6.0G /

Quote:
look into /var/log and see how big the syslog and messages are
/var/log/ $ du -s -h
24M .


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
 
Old 08-26-2006, 02:12 PM   #5
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by Matir
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 followed gentoo installation handbook word by word, created partition, formatted it, didn't change anything since then...
 
Old 08-26-2006, 06:53 PM   #6
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
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?
 
Old 08-27-2006, 02:16 PM   #7
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Original Poster
Rep: Reputation: 15
Arrow

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;(
 
Old 08-27-2006, 08:23 PM   #8
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
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?
 
Old 08-29-2006, 05:21 AM   #9
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9
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?
clean install is the way i would prefer not to take as my current install was supposed to be clean and it took me nearly week to compile everything i need. i surely didn't use partition magic, i made partitions with fdisk and formatted them with appropriate commands according to filesystems used. Everything by the Gentoo handbook. Also no LVM, raid etc...

Quote:
Originally Posted by aus9
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?
i was compiling everything from source (and personally, i would never think my coomputer can be that fast...) is there any problem with compiling gentoo from source?

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

Last edited by Sammael; 08-29-2006 at 05:24 AM.
 
Old 08-29-2006, 08:55 AM   #10
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
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?

http://www.gentoo.org/doc/en/gentoo-...ickinstall.xml
 
Old 08-29-2006, 08:58 AM   #11
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
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
 
Old 09-04-2006, 07:03 PM   #12
Sammael
Member
 
Registered: Jun 2006
Location: Slovakia, currently working in Liverpool UK
Distribution: Gentoo 2006.0
Posts: 97

Original Poster
Rep: Reputation: 15
SOLVED!!!

reboot to slax livecd

$ xfs_growfs /dev/hda3

reboot

and -

$ 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xfs and disk space and tar and squid and rc.local!!! Paul Reed Linux - Software 7 06-23-2006 02:28 PM
Samsung YP-MT6 weird space problem sub_acoustic Linux - Newbie 2 01-10-2006 04:40 AM
Weird problem with a Terratec Aureon Space kosmyn Linux - Hardware 0 01-12-2005 10:49 AM
kdebase not recognizing XFree86-xfs package as xfs mikeyt_333 Linux - Software 1 08-17-2004 01:50 PM
up2date weird out of disk space error whibble Linux - Software 3 10-02-2003 06:37 AM


All times are GMT -5. The time now is 11:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration