Hard Drive Use in RH Linux 7.3

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
Hello all,

I am using RH 7.3 as my server. When I installed it, I let the installer choose the default number of HD partitions and their respective sizes.

I am running out of space on one of the partitions (the one that has the /root directory on it). I have been using Linux for a little while now and may be able to understand the partition structure a little more now than before, but I do not know how to find it.

Is there a way to display the number of HD partitions, along with their sizes and the percentage of each one that is used?

Thanks a lot.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
df -k will give you the percentages next to each partition. /etc/fstab contains the information on which drives get mounted at startup. Post it here, I want to see how RH 7.3 setup your partitions so I will better understand if I need to go into a "this is where things go" diatrib- er explanation ;)
 

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
This is exactly what I was looking for. Here is what the command returned:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hdd3 381121 98433 263009 28% /
/dev/hdc1 50723 8847 39257 19% /boot
/dev/hdd2 2071416 34296 1931896 2% /home
none 127952 0 127952 0% /dev/shm
/dev/hdc2 3051888 34920 2861940 2% /tmp
/dev/hdd1 5644996 2159784 3198456 41% /usr
/dev/hdd5 256667 68888 174527 29% /var

Please diatrib away.... :)

[EDIT] Tried to align it better, no luck :([/EDIT]
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Garet Jax
This is exactly what I was looking for. Here is what the command returned:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hdd3 381121 98433 263009 28% /
/dev/hdc1 50723 8847 39257 19% /boot
/dev/hdd2 2071416 34296 1931896 2% /home
none 127952 0 127952 0% /dev/shm
/dev/hdc2 3051888 34920 2861940 2% /tmp
/dev/hdd1 5644996 2159784 3198456 41% /usr
/dev/hdd5 256667 68888 174527 29% /var

Please diatrib away.... :)

[EDIT] Tried to align it better, no luck :([/EDIT]

Wasnt as bad as I expected, but I dont see any of them filling up....
 

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
Originally posted by: n0cmonkey
Originally posted by: Garet Jax
This is exactly what I was looking for. Here is what the command returned:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hdd3 381121 98433 263009 28% /
/dev/hdc1 50723 8847 39257 19% /boot
/dev/hdd2 2071416 34296 1931896 2% /home
none 127952 0 127952 0% /dev/shm
/dev/hdc2 3051888 34920 2861940 2% /tmp
/dev/hdd1 5644996 2159784 3198456 41% /usr
/dev/hdd5 256667 68888 174527 29% /var

Please diatrib away.... :)

[EDIT] Tried to align it better, no luck :([/EDIT]

Wasnt as bad as I expected, but I dont see any of them filling up....

Thats because it already filled up :)

I had the problem over the weekend and had to move my files. I was using "/root" as my directory for storing .tar.gz files and their uncompressed/untarred results. When I downloaded the JDK and tried to extract it, the partition filled up and killed the extraction.

I am now using /usr as my directory for these operations.

I wish I could say it was experience and knowledge that prompted me to choose /usr as the new directory. The fact that it has the largest partition was totally luck. :(

Thanks for your help.

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Garet Jax
Originally posted by: n0cmonkey
Originally posted by: Garet Jax
This is exactly what I was looking for. Here is what the command returned:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hdd3 381121 98433 263009 28% /
/dev/hdc1 50723 8847 39257 19% /boot
/dev/hdd2 2071416 34296 1931896 2% /home
none 127952 0 127952 0% /dev/shm
/dev/hdc2 3051888 34920 2861940 2% /tmp
/dev/hdd1 5644996 2159784 3198456 41% /usr
/dev/hdd5 256667 68888 174527 29% /var

Please diatrib away.... :)

[EDIT] Tried to align it better, no luck :([/EDIT]

Wasnt as bad as I expected, but I dont see any of them filling up....

Thats because it already filled up :)

I had the problem over the weekend and had to move my files. I was using "/root" as my directory for storing .tar.gz files and their uncompressed/untarred results. When I downloaded the JDK and tried to extract it, the partition filled up and killed the extraction.

I am now using /usr as my directory for these operations.

I wish I could say it was experience and knowledge that prompted me to choose /usr as the new directory. The fact that it has the largest partition was totally luck. :(

Thanks for your help.

Consider using your home directory for this.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I had the problem over the weekend and had to move my files. I was using "/root" as my directory for storing .tar.gz files and their uncompressed/untarred results. When I downloaded the JDK and tried to extract it, the partition filled up and killed the extraction.

I am now using /usr as my directory for these operations.

As n0c said, you realy should be using /home/username for this sort of thing. You're not running as root are you?
 

Garet Jax

Diamond Member
Feb 21, 2000
6,369
0
71
Originally posted by: Nothinman
I had the problem over the weekend and had to move my files. I was using "/root" as my directory for storing .tar.gz files and their uncompressed/untarred results. When I downloaded the JDK and tried to extract it, the partition filled up and killed the extraction.

I am now using /usr as my directory for these operations.

As n0c said, you realy should be using /home/username for this sort of thing. You're not running as root are you?

Well no not really :eek:

Ok maybe I am :D