Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.