LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-24-2003, 07:57 PM   #1
Registered: Jun 2003
Distribution: FreeBSD
Posts: 119

Rep: Reputation: 15
Moving /home today to a new partition...

Is there anything I need to know? I know I have to add a line in /etc/fstab to point to it and let the system know to mount it. But are there any precautions I should take or any other config files I have to edit? Oh yeah, as for the line I need to add in /etc/fstab, would the current line I have that points to / be suficient, say if I just copied that.. edited it to point to the right partition and changed it to /home ???
Old 06-24-2003, 08:16 PM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
yes, that should be ok as long as the filesystem and mount options are correct.

I guess the way you are doing it is format the partition..
mke2fs /dev/hd??
tune2fs -j /dev/hd??

then mount the partition somewhere..

mount /dev/hd?? /mnt/somewhere

then you are planning to copy all of /home to it..

cd /home
tar -cv . | (cd /mnt/somewhere; tar -x)

then I suppose you will check the new partition to see that all your files are ok, then unmount it..

umount /mnt/somewhere

and at some point delete everything in home...

rm -rf /home/*

then you would mount the device to /home..

mount /dev/hd?? /home

Sure that should be ok

Last edited by DavidPhillips; 06-24-2003 at 08:17 PM.


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 On
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 10:11 PM
moving /home /root & /var to new partition CrashedAgain Linux - General 8 11-24-2005 11:44 AM
Today Officially moving from Windows to Linux (Mandrake 10.1) thomsany Linux - Newbie 4 09-07-2005 09:44 PM
moving /home partition bhodi Linux - Newbie 2 11-22-2003 08:57 AM
Moving/using new /home partition concoran Linux - General 1 05-20-2002 10:32 PM

All times are GMT -5. The time now is 01:22 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