LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-04-2013, 05:16 PM   #1
DavidDiepUSC
Member
 
Registered: Jan 2008
Posts: 58

Rep: Reputation: 0
Moving /home to another LV/VG


Hi,

I want to move /home from / to /NewDirectory, where / is under system_vg/root_lv and /NewDirectory is under newdirectory_vg/newdirectory_lv.

Is it just as simple as doing the following:

1. mkdir /NewDirectory/home
2. cp -r /home/* /NewDirectory/home
3. Edit fstab, add:

/dev/mapper/newdirectory_vg-newdirectory_lv /NewDirectory/home ext4 defaults 1 0

4. fsck /NewDirectory
5. reboot

I feel as if this is too easy and may not work? I'm kinda anxious to try it.

Any suggestions would be helpful!
 
Old 12-04-2013, 06:12 PM   #2
DavidDiepUSC
Member
 
Registered: Jan 2008
Posts: 58

Original Poster
Rep: Reputation: 0
When I display mount, it shows that /home is not mounted anywhere:

# mount
/dev/mapper/systems_vg-root_lv on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_ubject_r:tmpfs_t:s0")
/dev/mapper/systems_vg-boot_lv on /boot type ext4 (rw)
/dev/mapper/agencyapps_vg-agencyapps_lv on /AgencyApps type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)

I'm just wondering that if I add it to fstab, it'll be persistent across reboots.

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
Moving Home cthomas Linux - Hardware 2 02-17-2007 07:14 PM
Moving UT From /home? carlosinfl Linux - Games 2 04-24-2006 11:26 PM
moving /home drummerdan Slackware 8 03-16-2006 10:30 PM
need help moving home shaggystyle Linux - Hardware 15 09-01-2004 12:31 AM
Moving /home xodeus Slackware 7 10-06-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration