LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Combining EXT3 Partitions (https://www.linuxquestions.org/questions/linux-hardware-18/combining-ext3-partitions-300051/)

Mr_Munkey 03-10-2005 12:25 PM

Combining EXT3 Partitions
 
Is it possible to combine two EXT3 partitions in Linux? I need to combine my /home partition with my /var partition.

Thanks.

stealth_banana 03-11-2005 08:55 PM

I may be totally wrong but I would say no.

Partitions cannot be joined. However...

If you have the spare space on of the partitions, you could copy one to the other (or even create a new partition somewhere else ) and just change your fstab file in /etc to point to new layout of your drives.

nonzero 03-11-2005 09:35 PM

There are several ways you might go about this depending on your level of anxiety in doing this. The first question though is; In the Linux filesystem hierarchy, /var and /home are supposed to be apart. Do you have another drive you'd like to install? Would you like to make /var OR /home bigger?
I have not had great sucess with the only partition utility I know of for Linux, 'parted'. The interface is quite hard (for me) to understand, though it is supposed to be quite powerful. If you had access to the Windows tools 'Boot Commander' or 'Partition Magic' they could be helpful. The ext3 file system is ext2 with a journal, and the above utilities understand ext2 filesystems. If you had a CD-burner, you could back up your /home and /var partitions (in case you had databases or a web server running) and repartiton from a boot CD. If you had enough space on another partition (/usr) you could backup the files to a directory structure there, boot from a CD and repartition. In any case I have given you generalities and not knowing what your specific needs are that's about all I can do.
Just remember if you want to keep things, backup before you do ANYTHING!

nz

Mr_Munkey 03-14-2005 08:19 AM

Thanks for all the info. What was happening was we were running out of space in our /home partition (used for apache and PHP). Originally the /var partition was really big for the databases, but we've since moved the databases onto their own server, so the /var partition is just big without the need ;) We've decided to just get additional drives to cover it and use symbolic links.

Thanks again :)

bullium 03-14-2005 09:23 AM

You might want to try QTparted it is a graphical front end for parted. Just a thought.


All times are GMT -5. The time now is 07:42 PM.