Visit Jeremy's Blog.
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 11-22-2003, 07:20 AM   #1
LQ Newbie
Registered: Oct 2003
Location: Netherlands
Distribution: Slackware
Posts: 22

Rep: Reputation: 15
moving /home partition


Currently my /home partition is on the same hda as my / partition. Problem is that the / partition is getting full so i want to move my /home partition to another hda (for example the /usr hda). Is this possible without doing a reinstall?
Old 11-22-2003, 07:36 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian 11
Posts: 6,130

Rep: Reputation: 419Reputation: 419Reputation: 419Reputation: 419Reputation: 419
Yes, you do not need to reinstall. I have never done this, but I think what you need to do is

Mount your new disk as /mnt/new

as root, and probably in single-user mode, you need to copy the whole contents of /home to /mnt/new, preserving ownership and timestamps of the files. I think the command would be

cp -pr /home /mnt/new

Then, in single-user mode, you need to rename /home as /home.old (in case you/I have made a mistake).

Then unmount the new disk from /mnt and then mount it as /home.

Restart multi-user mode. If everything is OK, you need to edit fstab to mount the new disk as /home at boot time.

Someone will probably make corrections for me here!

Good luck!
Old 11-22-2003, 07:57 AM   #3
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
A better copy command is cp -dpR. This way, if he has any UNIX sockets or special files like device nodes or named pipes in his /home directory, cp won't try to read them and will just copy the files themselves.

But other than that, your method is sound.


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
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
moving /home /root & /var to new partition CrashedAgain Linux - General 8 11-24-2005 10:44 AM
Moving /home xodeus Slackware 7 10-06-2003 03:33 PM
Moving /home today to a new partition... LinuxBAH Linux - General 1 06-24-2003 07:16 PM
Moving/using new /home partition concoran Linux - General 1 05-20-2002 09:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 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
Open Source Consulting | Domain Registration