LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 11-20-2002, 08:40 PM   #1
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Rep: Reputation: 30
Mandrake 8.1 disk space management issue


I have run out of space on /

I was installing an RPM and rpm told me the package needed 3Mb free on /.

df shows the following:

Filesystem Size Used Avail Use% Mounted on
/dev/hda1 235M 222M 1.3M 100% /


What is part of / ? In other words, what directories can I look in to find something to throw away?

Thanks!

Last edited by lhoff; 11-20-2002 at 08:41 PM.
 
Old 11-20-2002, 10:29 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
That all depends on how many other partitions you have setup. Everything is under your / directory if you didn't create any other partitions on their own separate partition.

What does your /etc/fstab file look like ?? That should give us an idea of what you could remove safely. You can go ahead and look in /tmp, anything there can go bye bye.. and might want to check your log files in /var/logs and see if they are taking massive amounts of space.
 
Old 11-20-2002, 11:06 PM   #3
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Original Poster
Rep: Reputation: 30
Here is the full output of df (which I had only given one line of before).


Filesystem Size Used Avail Use% Mounted on
/dev/hda1 235M 223M 706k 100% /
none 30M 0 30M 0% /dev/shm
/dev/hda7 2.9G 214M 2.4G 8% /home
/dev/hda6 7.2G 28M 6.8G 1% /root
/dev/hda8 4.0G 959M 2.8G 25% /usr
/dev/hda9 3.9G 3.1G 735M 81% /var/ftp



fstab:

/dev/hda1 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda7 /home ext2 defaults 1 2
/dev/hdc /mnt/cdrom auto user,iocharset=iso8859-1,umask=0,exec,codepage=850,ro,noauto 0 0
/dev/fd0 /mnt/floppy auto user,iocharset=iso8859-1,umask=0,sync,exec,codepage=850,noauto 0 0
none /proc proc defaults 0 0
/dev/hda6 /root ext2 defaults 1 2
/dev/hda8 /usr ext2 defaults 1 2
/dev/hda9 /var/ftp ext2 defaults 1 2
/dev/hda5 swap swap defaults 0 0


I do have big logfiles, but when I've deleted those before the logging processes didn't like it. (I deleted the large file, then wrote an empty file with the same name and owner in its place. Still, my log processes would touch the file. ) How can I remove these and still have logging work?

Thanks!
 
Old 11-20-2002, 11:32 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Usually when you clear your log files by deleting the file then recreating the file, you would need to restart the daemon, like the syslogd.
This is always one reason why I create my /var/log directory on its own partition along with /tmp as well.

Were there any files in /tmp ? You can always remove those with no problems. You could also look for any lost+found directories that might have been created after a fsck, usually during bootup. Those would be safe to clear out and remove. Maybe some /etc configuration files that your not using for services not running.. but those usually won't take up that much space..
But you really didn't start out with a very large / partition to begin with. 235 MB is kind of small. Did you make the partition or let Mandrake do it ?? I usually make my / directories around 800 MB or more usually.

Let us know..
 
Old 11-21-2002, 08:51 AM   #5
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Original Poster
Rep: Reputation: 30
When I installed Mandrake, at the partition screen I accepted the suggested size for / and increased the size of /root (taking some proposed space away from /home). I did that because I thought that /root was the root filesystem. I see I was in error.

I would happily take, oh, 3GB of the unused space away from /root and give it to /, if you can suggest a reasonably safe way for me to do it. (Also, let me know if you think that giving 3GB to / is overkill...)

Thanks for all the help!
 
Old 11-21-2002, 09:23 AM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Yeah the /root is root's home directory. Probably the one way to repartition would be to use FIPS without destroying or losing any data, but if you go that route, always backup anything you'll want to save if something goes haywire.

And 3GB shouldn't be any problem for /.

Here is how I usually setup my partitions for my workstations:

/boot = 32 MB
Swap = 125 MB
/ = 600 MB to 1 GB
/usr = Usually more than 2 GB depending on the hard drive size.
/tmp = 500 MB to 1 GB
/var = 500 MB to 1 GB
/home = rest of hard drive

And sometimes I'll have a /data partition with a few gigs as well but its not part of the standard Linux heirarchy.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Mandrake 10 Disk Space Requirements? mehdinh Mandriva 3 05-28-2004 07:41 AM
Disk Space Issue nbjayme Linux - General 5 02-21-2004 07:25 AM
Odd VMware issue. (disk space recognition) ferreter Linux - General 1 08-31-2003 06:45 AM
Disk Space Issue. jesterwhite Linux - General 3 03-08-2003 11:41 AM


All times are GMT -5. The time now is 05:26 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