LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Merging partitions? (https://www.linuxquestions.org/questions/linux-newbie-8/merging-partitions-543652/)

Jorophose 04-05-2007 04:23 PM

Merging partitions?
 
Hi, I made an idiot's mistake; I left only 2GiB for my /home partition, and there's like 6.7GiB left in /.

Is there any way to merge the two partitions together?

Junior Hacker 04-05-2007 05:13 PM

I did this not too long ago when I changed my data partition from FAT32 to NTFS, because I had unlimited file size in the shared data partition, I did not need the separate shared /home partition for all my Linux systems.
I kind of followed the tutorial in the link below, made a directory called "/newhome" and used the command suggested in the tutorial to move all files and links from the old /home to the newhome in the / partition. Then remove the line in /etc/fstab for the /home partition and remove directory /home. Re-boot and re-name /newhome to /home after verifying my user settings are good, you can also log in as root and delete the old user if it is no good and create a new user. You can then use a partition utility to delete the home partition and expand your / partition to take up the space.

http://ubuntu.wordpress.com/2006/01/...own-partition/

Junior Hacker 04-05-2007 05:21 PM

Actually,
I think you have to remove the old /home directory and re-name /newhome to /home before the re-boot. Spend some time thinking!

jay73 04-05-2007 06:23 PM

Here you go:

http://www.gentoo.org/doc/en/article...tyle=printable

Worked fine for me.


All times are GMT -5. The time now is 05:21 PM.