View previous topic :: View next topic |
Author |
Message |
[nordis] n00b
Joined: 22 Oct 2003 Posts: 37 Location: Sandviken, Sweden
|
Posted: Mon Dec 26, 2005 9:19 am Post subject: Move /home to a lvm partition after install failes [Solved] |
|
|
Hi all!
Fist of all I hope you all have had a Marry Christams, and have a Happy New Year.
This is the problem, I installed gentoo-2005.1 and all went good.
After that I wanted to move the /home dir to a lvm2 partition e.g /dev/mapper/VG1-home, I've added the mount point to fstab but when i login as the user I get a message saying ther is no /home dir.
If I login as root there is no problem. If I umount the lvm partition I can login the user wihtout problem.
I've also got a /mnt/samba partition on lvm that works fine.
I think the /home errors is because there where files in that dir before mounting the partition on the lvm??
Any suggestions? _________________ emerge the world
Last edited by [nordis] on Tue Dec 27, 2005 10:48 pm; edited 1 time in total |
|
Back to top |
|
|
mmbrothers Apprentice
Joined: 24 Dec 2005 Posts: 224 Location: Boston
|
Posted: Mon Dec 26, 2005 3:30 pm Post subject: |
|
|
Well, the first thing that you might want to do it mount the new LVM partition in a place other than /home (such as /mnt/newhome or something similar). Then move over all of the data from /home to the new LVM partition. Because otherwise the data that is currently in /home will remain on the old disk. If you mount over a current directory that data remains, you just cannot access it.
Secondly, it seems that your login problem is related to not having copied over the home directories. Either that or it is a permissions problem. Make sure that when you copy over the data from the old /home that you use sane cp arguments so that permissions are preserved.
usually suffices |
|
Back to top |
|
|
[nordis] n00b
Joined: 22 Oct 2003 Posts: 37 Location: Sandviken, Sweden
|
Posted: Mon Dec 26, 2005 4:20 pm Post subject: |
|
|
Ok thanks I'll try that _________________ emerge the world |
|
Back to top |
|
|
|