LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   need help expanding a partition (https://www.linuxquestions.org/questions/linux-general-1/need-help-expanding-a-partition-9467/)

linuxmaster 11-30-2001 08:23 PM

need help expanding a partition
 
My /var directory has almost run out of space, I don't know why there is not much in it. I guess I didnt' make it big enough when I installed linux.

is there anyway to make it bigger?


or mount another partition somewhere which will add space to this segment?


any help is appreciated. I need detailed instructions as I am new to this software.

thanks.

acid_kewpie 12-01-2001 04:33 AM

master?? ;-)

ok, if you want to expand the drve, do you have anywhere else to put the partition? you can only expand the partition if you have free space one side of the partition on the drive. if you do then you should ba ok using resize2fs to sort that out, back anythign important up first tho.

you can only add an extra device to the tree by making it it's own particular branch, e.g /var/mail. you can merge two partitions together but it's pretty nasty, and complicated. so make your new partition (cfdisk, fdisk, diskdruid, diskdrake), and decide what you want to put in it, the use 'dd' to copy that branch onto the new partition, adn then change the mountpoints in /ets/fstab. all there is to it really

zhenwu 12-01-2001 03:25 PM

I, too have a question along these lines.

I currently have a 3gb HD as hda. I have a 6 gb drive just sitting there, waiting for me to do something with it. Can I move some of the dir. tree (say, /home) to that 6gb drive?

I am running RH7.2, which uses the ext3 filesystem, so I'm not sure if the rules would be the same as for ext2.

Thanks for your help.


All times are GMT -5. The time now is 12:25 PM.