LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-08-2008, 06:02 PM   #1
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Rep: Reputation: 130Reputation: 130
Having problems moving home directory to second drive.


slackware 11.0

I have looked this up on the web and it seems straight forward but yet I can't log into any user accounts after I moved the home directory.

1) System with old home on hda1.
2) Made home directory on mounted /d (this is hdc2)
3) init 1 then cp -ax /old_home/* /d/home/.
4) ln -s /d/home home

hdc2 is already in fstab as /d and automounts.

Using KDM to login. The screen switches like is going to log in but then it just comes back to the KDM dialog box.

I compared the permission, owners and groups of old_home to /d/home and they look the same.

I'm stumped.
 
Old 02-08-2008, 06:15 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Can you switch to runlevel 3 (or maybe Ctrl-Alt-F6) and try to log in? Then you can see error messages.

Brian
 
Old 02-08-2008, 06:25 PM   #3
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 215

Rep: Reputation: 45
Does /etc/passwd reflect the correct home directory now that you've moved it?

Perhaps this was the purpose of your ln -s /d/home home command, but I wasn't sure since you didn't specify the target as /old_home/ which is presumably what was originally in /etc/passwd.
 
Old 02-08-2008, 07:04 PM   #4
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
If it's not a typo in the original post, we can't really be sure the command "ln -s /d/home home" has created an appropriate link. It would if that was run from the root directory. If not, it should read "ln -s /d/home /home", if I'm not mistaken.
 
Old 02-08-2008, 10:38 PM   #5
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 130Reputation: 130
Cool

I found it.

The symbolic link was good and so were the permissions but I had the mount options in fstab set to auto,users. I set the mount options to "defaults" and it now works. I believe it was the lack of the "exec" option that messed it up and exec is included in defaults.

Thanks for your replies.
--rick
 
  


Reply



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 out home directory during ftp session saeed_zarea Linux - Networking 8 07-12-2011 07:07 AM
Moving Home Directory FrodoTeeBagins Linux - General 14 07-25-2006 08:53 AM
Moving /home Directory? NovaBurst DamnSmallLinux 1 04-18-2005 10:59 PM
moving /home to a new drive? tardigrade Linux - Newbie 5 10-18-2004 05:56 PM
Moving my /home directory to another hd bumpert Linux - Newbie 6 07-26-2004 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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