LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-25-2009, 11:16 PM   #1
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Rep: Reputation: 19
Question Home


I've often heard that the advantage of GNU/Linux is that the home partition can be separate and that if in the case the system crashes and must be reinstalled, the home partition can be reused. So if this happens, how do I re-attach the home users to their original folders?

Say someone screwed up their home account totally to the point where we don't know where to start, but their mozilla is okay, and they have important docs, music, so on and so forth, how do I reset that home user's or any users home account to default while keeping particulars?

Sorry, I haven't troubleshooted GNU/Linux in a very longtime.

thanks
 
Old 12-25-2009, 11:42 PM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Well it is always a good idea to keep a separate /home partition for the reasons you mentioned above.
When you re-install just use that /home partition and mount it as /home for the new installation and all your data should still remain intact and hence you can re-use your configs like mozilla for example.
If a particular user messed up their /home/$USER, then the administrator as root can copy over his data and backup in a seaparate loction and delete that user and re-create the user and copy back the data to the newly created /home/$USER.
 
1 members found this post helpful.
Old 12-25-2009, 11:56 PM   #3
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Original Poster
Rep: Reputation: 19
Quote:
When you re-install just use that /home partition and mount it as /home for the new installation and all your data should still remain intact and hence you can re-use your configs like mozilla for example.
How do I do this?

Just useradd and attach to folder?
 
Old 12-26-2009, 12:05 AM   #4
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Well, for example when the partition menu appears, and you need to choose which partitions you want for root, etc. Choose the previous /homepartition as the new installations /home, but make sure you don't select "Format".

You can use :
Quote:
useradd -d /home/username -s /bin/bash username
to specify that the older /home directory has to be used in case you get a warning"Home directory already exists."

Last edited by ~sHyLoCk~; 12-26-2009 at 12:32 AM.
 
1 members found this post helpful.
Old 12-26-2009, 01:06 AM   #5
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Original Poster
Rep: Reputation: 19
That is really helpful.

thank you
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Home, Sweet Home: Sweet Home 3D 2.1 Linux Version LXer Syndicated Linux News 0 10-06-2009 03:10 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
Put a 2nd kanotix at hdb 3/,-4/home. 1st is at hdb8/,-9/home.#2 is using 1st's /home sleekmason Linux - General 3 12-09-2006 09:21 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
want to ssh/ftp to home machine (Slack) from office through home router fincher69 Linux - Networking 2 09-21-2005 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:07 PM.

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