Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Well, it looks like your root dir ("/") is absolutely filled. Deffinately not a good thing, IMO, especially for a mail server. It looks like your logfiles ("/var") really isn't being used as much as you may have thought. Perhaps using a repartitioning utility to decrease that 6 GB partition for /var into perhaps 3 gigs. Put the rest into hda1 to help alieviate the problem.
You'll see some warning for the /proc directory and some others... don't worry about them.
The output of that command will tell you what subdirectories are eating the most space. It will also be listed with the largest directory first. For the sake of being thorough, don't pay any attention to the /var or /home entries because they have their own partition.
So, now that you can see which directory is using the most space, you can issue the command above again, but for that subdirectory. Let me give an example. Let's say after running the command, you got this output:
Originally posted by ann_tulip18 i revoked du- h ./tmp its only 44k.... (hu...hu..hu..) I dont know what eating up the space...
Is it posssible to swap the /var to /dev/hda1 coz it dont use lot of space.. and putting /var to /dev/hda5? How?
If I partition the HD will it destroy some file?
Help me Pls!
It's not the mount point that is running out of space, it's the device. You could swap them, but it'd be MUCH more difficult (require some backing up, and ensuring enough space exists for all info, quite a bit of work) than resizing your partitions. Parted can do this, and it has been noted by several people that it doesn't destroy info. However, you should ALWAYS backup before doing any work on devices such as resizing.
Try invoking du -h on / and see what you get as your most bit hungry piece. You'll be getting a whole lot of info, so I'd probably pipe it and examine your files with less:
du -h | less
Or to a file:
du -h > /home/hog
And then read /home/hog with:
Originally posted by ann_tulip18 hi! Im newbie in Linux 7.3, and Im encountering problem regarding our mail server.. we cannot receive mails. Ive check the disk space using df -h and here's the output:
What will I do?! Can u pls. help me? Should I delete files?! What files should i delete..
Can you backup, dump your current partitions together, and then resize them back out? If you are unable to use parted (which you probably will be since your / is full) this is going to be one of your best options. Have you got a CDR handy, could you borrow one, or do you have somewhere online that you could backup the info to? Look for an application called partimage (but again, you dont have any room on / ... man...) to do the backup with.
For now, because of the lack of space completely, I'd say find a large package, uninstall it. Something non-vital, and good luck. This should be able to be found from within the du -h pipe above.
You have X on there? On a mail-server box (assuming that's all you run on that) you should try to only run it from the console. That is, if you have limited room/resources. If you've got the INIAC in your room, feel free to host the www in it's entirety
If you are confortable enough to run linux (at least on this machine) without X, then I suggest taking off more than just KDE and Gnome (although, that will be a big help); take X out completely, and all related applications. However, if you are running this mail-server on a system where other tasks are being accomplished, such as web surfing (desktop use), then you will want to keep X on there, just get a much lighter environment, such as Fluxbox or Openbox.