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.
When I reinstall my distro (MEPIS, for the last 2.5 years), making my new user account preserve all the old account's settings has always been a difficult and very messy process, especially if I have installed a new copy on another partition. (I'm doing that soon, so I have this copy as a backup until I have everything the way I want it on the new copy.) Most of my stuff gets saved, but not everything. The biggest problem is that, even if I select "preserve data in /home" in the MEPIS installer, my keyboard shortcuts become unusable (not completely erased) under odd circumstances. They're still listed in file /home/josh/kde/share/config/khotkeysrc, but they still can't be used, and I have to open hhotkeysrc and manually delete them and then reenter them in the menu editor (the K menu, by the way, gets completely overwritten).
I can't just overwrite the entire new user account with the old one; I've tried, and something goes wrong so that the new account can't be opened (probably because some important files are inaccessible--I can't tell which ones or why they become inaccessible).
Anyway, is there a program that can preserve all the user account settings neatly for a new installation of the distro? I am supposing there is a program or at least a method, because I never hear others complaining about this problem. I probably don't know something I should know.
Last edited by newbiesforever; 07-30-2010 at 02:09 PM.
I had similar problems when I started using Linux ten years ago. After a couple of years of mistakes, I eventually had my problems worked out, and haven't had a repeat of them since then.
1) Always make a backup of /home before making a new installation.
2) Make a separate partition for /home.
3) Copy or move all /home subdirectories to the new partition. Then unmount the new partition.
4) During installation of Linux, ignore that new /home partition. Pretend it doesn't exist. Let the new installation create a /home directory with a new /<user> subdirectory under the root directory tree.
5) When installation is complete, and before rebooting, su to root and edit /etc/fstab to add the new /home partition with mount point /home: example: /dev/sda5 /home <mount options>
6) While still root, delete the <user> subdirectory under /home in the new installation. That will leave /home as as empty directory.
7) Now reboot. On reboot, the entry in /etc/fstab will cause the new /home partition (with all permissions, preferences, etc.) preserved, and mounted in /home.
No wonder I couldn't get a new installation to use the separate /home partition--I put the /home specification in the wrong place. I tried putting "home=/dev/sda6" at the end of the line in menu.lst for grub. That was just a guess.
Is this correct, then? Is /home in the correct spot?
No wonder I couldn't get a new installation to use the separate /home partition--I put the /home specification in the wrong place. I tried putting "home=/dev/sda6" at the end of the line in menu.lst for grub. That was just a guess.
Is this correct, then? Is /home in the correct spot?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.