Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Move /home to a lvm partition after install failes [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
[nordis]
n00b
n00b


Joined: 22 Oct 2003
Posts: 37
Location: Sandviken, Sweden

PostPosted: Mon Dec 26, 2005 9:19 am    Post subject: Move /home to a lvm partition after install failes [Solved] Reply with quote

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
View user's profile Send private message
mmbrothers
Apprentice
Apprentice


Joined: 24 Dec 2005
Posts: 224
Location: Boston

PostPosted: Mon Dec 26, 2005 3:30 pm    Post subject: Reply with quote

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.

Code:

cp -p

usually suffices
Back to top
View user's profile Send private message
[nordis]
n00b
n00b


Joined: 22 Oct 2003
Posts: 37
Location: Sandviken, Sweden

PostPosted: Mon Dec 26, 2005 4:20 pm    Post subject: Reply with quote

Ok thanks I'll try that
_________________
emerge the world
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum