Linux Mounting issues
HI
My file system is something like this: Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 497829 497828 0 100% / none 0 0 0 - /proc /dev/hda6 73535252 983152 72552100 2% /data none 0 0 0 - /dev/pts none 511396 0 511396 0% /dev/shm /dev/hda2 2522076 1400092 993868 59% /usr /dev/hda5 1004024 316380 636640 34% /var It seems my /usr and /var folder have been mounted on /dev/hda2(primary partition) and /dev/hda5(extended partition) resp. I want to store the contents of both /usr and /var in /dev/hda6 (extended partition) without loosing my current data on these folders For doing that I think i have to mount /dev/hda6 to these folders.. I hope I am clear Please help me doing that... |
hda5 and 6 are logical, not extended. hda4 should be the extended one.
Why you want to do this? What will be the benefit? |
usr and var are full
bcoz my mails and database are in usr and var folder only..
so they are getting full very quickly.. I am running out of disk space |
A partition is mounted in a directory, not vice-versa. If you are running out of disk space, it means that the partitions where data is stored are getting full. Mounting in another dir won't help you.
Besides, 59% and 34% don't look so full. |
Ok, so as I see it, you've allocated 73.5 gigs to hda6 (/data) and you've only got 2.5 gigs for hda2 (/usr) and 1 gig for hda5(/var). So basically you misjudged the amount of space you would need. ( No matter how much space I allocate I always seem to run out.) I don't know what distro your using but some have partitioning software that will allow you to resize partitions without harming the data on them. Since you have only one drive this would be a good option for you.
|
All times are GMT -5. The time now is 07:20 AM. |