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.
when I tried to restart my linux box just now I got a disk full message. A 'df' revealed that / was 100% full, but also showed that /home is only 80% full. I deleted files in /tmp, which didn't seem to help, but then when I deleted some file in my home directory, located in /home/guser, some space started freeing up in /.
Could someone please explain to me what is going on here? Since there is free space in /home why does / show 100% full in 'df' output? And why does deleting files in /home then free up space in /?
I'm sure I'm just missing something basic here. My understanding is that / represents the entire physical disk, of which /home is a partition. Is this correct?
It is possible to put files in /home BEFORE the filesystem is actually mounted on the directory. Such files would be part of the root filesystem rather than the /home filesystem.
In single user scenario (which sometimes occurs when you can't boot normally) other filesystems have to be mounted manually. It may be you were deleting files from /home directory rather than /home filesystem.
Once you've mounted /home filesystem it would mask the files in the underlying directory.
Since you did a df and saw /home mounted as filesystem it shouldn't have been possible to have deleted files from the underlying directory. (There are ways to access the underling the directory even if /home is mounted but they're a bit involved and not likely something that happened by accident.)
Depends on how you set up your system. If you haven't put /home in a separate partition, then deleting something there will free space on /, as it is just a subdirectory. But if df tells you something about /home as separate from /, then it is in its own partition. Then deleting something on /home should not free space on /.
In any case there isn't enough space for / on your system. What partitions do you have?
I just reread your question: / does not represent the physical disk but the root partition. It could reside in one partition on the HD, and /home could be in another.
Post the full output of df so we can see what's wrong.
here you can see / is mounted on hdb1, home is mounted on hda6 it means both are in different partations, likewise check your system whether / and home were mounted on different partations.(actually in here / is physically different harddisk)
In addition to the good answers regarding a possible separate /home partition that isn't mounted when you actually delete files on the mountpoint, I'd like to know if you have a Debian/Ubuntu type install. If so, look at /var/cache/apt/archives and 'rm *.deb' to get rid of the stored files there.
I'm very curious to see the answer to this if you do not in fact have a separate /home partition.
thanks for all the replies. As it turned out, a program I've been running was logging to /pro which was why there was no space left on /. I created a symbolic link from /pro to /data/pro so now it's saving the logs where there is plenty of space. Well caught SlowCoder!
My set up is that I have two internal disks (sda and sdb) and an external (sdc) drive. As far as I can tell from this, the first internal disk has 4 partitions: /, /home, /windows and /dev. So I'm still confused as to why deleting files from /home affects the space available in /.
BTW, it's an OpenSUSE installation, not Debian/Ubuntu.