LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-22-2010, 10:07 PM   #1
damgar
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, 10:14 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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
-reboot

cheers
 
Old 04-22-2010, 10:17 PM   #3
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 359

Rep: Reputation: 32
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 10:19 PM.
 
Old 04-22-2010, 10:31 PM   #4
damgar
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.
Code:
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.

Thanks.
 
  


Reply


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 02:41 PM
partiton ubuntu/xp home sound problem repainter Linux - Software 3 12-17-2007 03:58 PM
Boot partiton on seperate hard disk sandoz Linux - General 3 07-09-2004 06:50 AM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 11:57 PM


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

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