Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-05-2007, 05:23 PM   #1
Registered: Oct 2006
Location: Ontario, Canada
Distribution: Xubuntu 6.06!! =D
Posts: 137

Rep: Reputation: 15
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?
Old 04-05-2007, 06:13 PM   #2
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.

Last edited by Junior Hacker; 04-05-2007 at 06:17 PM.
Old 04-05-2007, 06:21 PM   #3
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I think you have to remove the old /home directory and re-name /newhome to /home before the re-boot. Spend some time thinking!
Old 04-05-2007, 07:23 PM   #4
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Here you go:

Worked fine for me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging Harddrive Partitions josegata Linux - Software 2 05-12-2006 07:30 PM
Removing two Windows partitions under SuSE 9.2 and merging them with Linx partition. crozewski Linux - General 4 04-16-2005 11:57 AM
Merging Unalocated Partitions lramos85 Linux - Newbie 6 07-22-2004 03:29 PM
merging partitions question (RH9) LooseCanon Linux - General 2 10-02-2003 03:45 PM
Merging partitions Chrissi Linux - General 7 06-08-2003 09:36 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration