Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-22-2010, 09:07 PM   #1
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Relocate /home to seperate partiton.

I recently did a single partition installation of Slackware on a multiboot system. It was probably a silly choice because I already run Slackware on 2 other machines. Anyway, I have chosen to delete the other distros and I'm wanting to move /home to a new partition, but I've never done it before so I was wonering if it would be enough to:

Make a new partition
edit fstab
backup /home
mount -a
restore /home's contents.
Old 04-22-2010, 09:14 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
I'd probably do it more like:

-Configure new storage
-boot to single user
-mount new storage on a temporary mount point - /tmp/new_home ?
- 'cp -a /home/* /tmp/new_home/'
-edit /etc/fstab and change target for '/home' to new storage

Old 04-22-2010, 09:17 PM   #3
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint Debian "Betsy" Windows 10
Posts: 476

Rep: Reputation: 33
I think it should work, but to be on the safe side backup any /etc/*.conf files and home files on the new setup, at the very least. Gparted is very easy to use to repartition hard drive. You do need to reboot though for the new settings to be read by fstab. I can't remember but think gparted already edits fstab for you. The only problem I can see is you may need to decide which /home/.mozilla/ bookmarks and history, Desktop and so on you want to keep before you restore.

Sorry, need to add that you could use Ubuntu live CD (with gnome desktop) to do the gparted (commandline: gparted)

Last edited by mazinoz; 04-22-2010 at 09:19 PM.
Old 04-22-2010, 09:31 PM   #4
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Original Poster
Rep: Reputation: 201Reputation: 201Reputation: 201
Everything seemed to work, but some part of Gnome had mounted my new partiton as /media/disk-1 so I had simultaneous mounts of the same partition.
umount /media/disk-1
cleared up the dual mounts but I went ahead and rebooted just to clear up any confusion that might have persisted. Luckily I didn't bother creating any user accounts (other than root) prior to deciding to go full time with the install so really there were only a few dummy directories to copy.



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
cannot write $(HOME).dmrc file home is on a seperate partition Person_1873 Linux - Newbie 5 12-07-2008 01:41 PM
partiton ubuntu/xp home sound problem repainter Linux - Software 3 12-17-2007 02:58 PM
Boot partiton on seperate hard disk sandoz Linux - General 3 07-09-2004 05:50 AM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 AM.

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