LinuxQuestions.org
Visit Jeremy's Blog.
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 06-11-2004, 03:51 AM   #1
G-wizz
LQ Newbie
 
Registered: Apr 2004
Location: Cheshire, UK
Distribution: Mandrake 10.0
Posts: 8

Rep: Reputation: 0
How do I copy home directories back?


I've just had to reinstall Mandrake 10.0, but I carefully copied off the two home directories to another disk first.

I rather hoped it would just be a matter of recreating my two userIDs and copying the home directories back in place, but I get a whole host of error messages when I try that - Evolution complains about broken config files, some programs (e.g. xmms) just refuse to run, and others complain about lack of permissions.

I've tried doing a "chown -R" to reset ownership of the copied home directory to the new account, but that didn't help much.

I guess I'll have to go through and reconfigure applications manually - i.e. set userIDs up from scratch with a new, blank home directory, then run Evolution for the first time, configure mail accounts, then try to import mail and contacts from the old config files, then do the same with Opera, and so on.

But if I need to reinstall Mandrake again, is there a simpler way of preserving home directories, application config files and so on?

Cheers,
G
 
Old 06-11-2004, 05:36 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Not sure, did you copy the entire contents of the directory including all the dot "." hidden files and directories?
 
Old 06-11-2004, 05:44 AM   #3
G-wizz
LQ Newbie
 
Registered: Apr 2004
Location: Cheshire, UK
Distribution: Mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
I ran 'cp -R' on the directory itself - yes, it did take the '.' files with it (e.g. .bashrc)
 
Old 06-11-2004, 05:51 AM   #4
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Rep: Reputation: 37
Are the UIDs and GIDs the same values between the two installations?
 
Old 06-11-2004, 05:58 AM   #5
G-wizz
LQ Newbie
 
Registered: Apr 2004
Location: Cheshire, UK
Distribution: Mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
I'm not sure... I can check what the UIDs & GIDs are for the new users I've just created, but not for the old ones of course!

Is there any way I can check what the old UIDs and GIDs were from just a copy of files that were assigned to those UID/GIDs?
 
Old 06-11-2004, 06:20 AM   #6
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Rep: Reputation: 37
ls -l might give you a clue or if you have the old copy of /etc/passwd. Seeing as you've done a chown it might have wiped out all the evidence.

If you can't work it out from the evidence start again, assuming you've still got the original copies of the home directories. This time recreate just one home user and get that working if it is a UID/GID problem it's a lot easier working with just one home user than two.

See http://www.linuxquestions.org/questi...hreadid=145615
 
  


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Copy files from different directories fiomba Linux - Software 3 02-11-2005 03:01 AM
K3B won't back up hidden directories racsw Linux - Software 3 11-21-2004 08:12 PM
Best way to back up directories? sdebiasio Linux - Newbie 5 07-30-2004 09:04 AM
copy directories and subdirectories Red Squirrel Linux - Newbie 2 03-06-2004 09:18 PM


All times are GMT -5. The time now is 11:59 PM.

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