Web Hosting Talk







View Full Version : /dev/hda1


Dim8
06-12-2001, 07:57 PM
What is that?

Looking at my server-info, it shows that /dev/hda1 is 73% full

What is it?

/dev/hda3 is 18%
/dev/hda4 is 7%

Any help is appreciated!

dektong
06-12-2001, 08:05 PM
in Unix/Linux environment, hda, hdb would be designated towards your IDE drives (the master IDE drive on the primary IDE controller would be hda, the slave on the primary IDE controller would be hdb, the master on secondary IDE controller would be hdc, and etc). SCSI drives would be designated by sca, scb, scc, etc ....

Now, the numbers that comes afterwards (e.g. hda1, hda2, etc) designates the partitions of the drives ... In your case, the master IDE drive attached to the primary IDE controller has several partitions in it, hda1 (the partition is 73% full), hda3 (18% full), and etc ...

Well, not the best explanation I think ... but hope this helps ...

cheers,
:beer:

Dim8
06-12-2001, 08:27 PM
Okay.. I understood that. lol but my question is.. how can I empty it out? 73% is A LOT!

lol

thanks!

dektong
06-12-2001, 08:38 PM
Originally posted by Dim8
Okay.. I understood that. lol but my question is..


Hm... I re-read your post which does not indicate that you even knew what /dev/hda1/ :)


how can I empty it out? 73% is A LOT!


Not necessarily ... I am not sure what is in your /dev/hda1/ and how big that partition is ... For example, /dev/hda1/ might be mounted as /boot with only 16 MB of partition and 73% of 16MB is nothing ... Try to type 'mount -l' (or just 'mount') to see what each of your hard drives partitions are being mounted as ...

cheers,
:beer:

Dim8
06-13-2001, 08:00 AM
Hey. After you explained it to me, I understood.

/dev/hda1 is mounted to / with 528.06mb used out of 726.04 MB

/dev/hda3 is mounted to /var with 33.70 MB used out of 193.95 MB

/dev/hda4 is mounted to /home with 548.39 MB out of 8.18 GB


Hda4 is where the sites are.. /home/sites so I wonder what hda1 and why it is so big and how do I empty it?

[!] Thanks a lot for your help!

Regards.

huck
06-13-2001, 08:53 AM
Raq's Idiotic Partitioning Scheme
The Raq is designed for out of the box use, which means you should not need to install too many programs. Well, we all know that in this simple does not work. As a result, we must install libraries, scripts, and other software. In my view, the Raq's partitioning scheme is not very friendly because as you add system files and features this quickly gets filled up -- causing you headaches.

Monitor before Tweaking
As long as you're below 90% and the usage is not growing, your safe. There should be very little variation in the / partition unless you install software, which puts things in one of the root directories. Another problem can be logging to that partition instead of /var. I would monitor usage and make sure it does not change dramatically (>2 %) over time -- unless you've added new components.

Moving Directories to Make Room
If you simply need more room in /, then you are going to have to relocate some of your directories. A good solution to the / space crunch is to relocate some directories to the /home partition. I would not do this with /etc, /bin or /sbin due to the critical nature of these files, but in principal you could move them as well and things should (stress should) continue to work.

For example, I moved the opt and tmp directories to the /home partition and then made a symbolic link from the orginal location to the new location, e.g.

#move the opt directory from / to /home
mv /opt /home/opt

#now make a link
ln -s /home/opt /opt

Now anytime I access /opt via the command line or through a program, I will actuall be in /home/opt, but this is transparent.

Note that symbolic links are one sided. Meaning that by deleting the link you do not delete the directory/file that it is linked to. Also, if you delete the target of the link, then the link will be broken. If you are using a color ANSI interface, then broken links will either flash or be highlighted.

Note: Making these major changes to an active server can cause havoce. While you are moving those files some programs may choke. You will probably want to get everybody off before doing this. Also, if you must move /bin /usr or one of the other biggies, you really need to be in single user mode, but this is impossible without a console. So, you will have to shutdown the ftp servers, web servers, etc....

:erm: This info is for education use only -- if you blow away your directories don't blame me. :argue:

Dim8
06-13-2001, 09:39 AM
Hey Thanks!

[?] I moved /tmp to /home/tmp and made a symbolic link but the /tmp folder is still there. Do I delete it or did I not do it correctly?

[?] I don't have an opt folder? I have a RaQ3.. should I have an opt folder? LOL. Thanks.

Regards.

huck
06-13-2001, 09:51 AM
When you made the sym link, you made a "shortcut" to use a Windows term. Run the following command:
ls -l
that's and letter "l" not a one
You should see an l next to the string for the permissions.

lrwxrwxrwx 1 root root 10 Feb 11 2001 tmp -> /home/tmp

If you cd to home and do a ls, you should see the home directory.

You may also try moving the /usr as well. You could be hitting space limits if you are using MySQL as I think the databases are stored on the root partition.