LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you check disk space? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-check-disk-space-497000/)

tim1348 10-30-2006 02:09 PM

How do you check disk space?
 
How do you check your disk space from the command line on slack 11? I keep getting the error, 'no space left on device' when I try to make a pine mail folder.

pixellany 10-30-2006 02:11 PM

In general: "df"
I doubt if Slackware is different

dougp23 10-30-2006 02:25 PM

Yup, and

df -m

for how many megs of space left.
That error sounds not pleasant!

tim1348 10-30-2006 03:03 PM

Quote:

Originally Posted by dougp23
Yup, and

df -m

for how many megs of space left.
That error sounds not pleasant!

your right about that doug, it's un pleasant for sure. df showed I had zero space left, so I have been in the pkgtool thing trying to remove uneeded programs. When I installed slackware I had it load 'everything' and now I regret it. I hope this rig reboots when Im done removing things. So far I got 35 M space back.

:confused: :newbie:

acid_kewpie 10-30-2006 03:06 PM

my way to track down wasted space is to go to the root directory of whatever partition is full and run "du -hx --max-depth=1" this will give you the size of each subdirectory from where you currently are. if you think one of them is disproportianately (SP!!?!) big, cd to that directory and run the command again. this should help you track down any massive log files or something. if you simply have a very small partition you've put far too much stuff in, that's a different sort of problem though, and one that may well need major surgery.

tim1348 10-30-2006 03:55 PM

I installed on a 4 gig drive, with some of it for swap space. I removed some things and now Im going to re-boot and hope it still works. If I dont make it back, it was nice knowing you guys.

syg00 10-30-2006 04:02 PM

I run Ubuntu (full Gnome) in under 4 Gig - including swap.
If you can't get Slack shoe-horned in, something's wrong. When I tried Slack I used swaret, and it was a pig re disk space - I would have thought pgktool should be better in that regard.

tim1348 10-30-2006 05:21 PM

Yaaaay, I made it back and it's semi honed in. I have over 750 M free space, but I lost a couple things. When I type 'mail' at the command prompt it says bash cant find it. I'll fix it as soon as I figure out how. Firefox is gone too, so I gotta fix that. Im sure I'll find other things missing. For every problem I fix, I create 5 more.

ph3ar 10-30-2006 07:39 PM

df -h give you the space in MB, but general df commands, type in df --help to get a list of the commands

tim1348 10-31-2006 09:15 AM

Just for interests sake, the command 'mail' from the command line in slackware 11 comes from the package mailx. mail is cool, I set up fetchmail's daemon to fetch my mail and I just type 'mail' to see if I got any letters. Firefox and seamonky need the pang deal with libpangoxft to run.

RanDrake10 10-31-2006 09:39 AM

Also try running/installing "localepurge" to remove any unused man pages.


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