LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-30-2010, 01:58 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Rep: Reputation: Disabled
saving user account settings when reinstalling


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.
 
Old 07-30-2010, 11:29 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 08-01-2010, 05:29 PM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
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?
Quote:
/dev/sda6 /home /mnt/sda6 ext3 auto,users,exec,relatime 0 0

Last edited by newbiesforever; 08-01-2010 at 05:35 PM.
 
Old 08-02-2010, 12:42 AM   #4
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Quote:
Originally Posted by newbiesforever View Post
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?
Quote:
/dev/sda6 /home /mnt/sda6 ext3 auto,users,exec,relatime 0 0
No, that is showing two mount points which is wrong. Only one mount point should be assigned:
Code:
/dev/sda6 /home ext3  auto,users,exec,relatime 0 0
Be awarw that the "users" is not needed and could allow other users to unmount that partition and make changes to it.

Tom
 
Old 08-02-2010, 01:50 PM   #5
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,375

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tommyttt View Post
Be awarw that the "users" is not needed and could allow other users to unmount that partition and make changes to it.
But I'm the only user.
 
  


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
Copying User accounts between two servers stuaz Linux - Newbie 5 01-09-2009 02:42 AM
Copying Files between accounts marensius Linux - Newbie 6 09-16-2008 07:25 AM
Copying ALL user settings? Nuvious Linux - General 2 07-15-2005 01:59 AM
making a backup of user / program settings Cinematography Linux - General 17 05-13-2005 11:42 PM
evolution - copying email accounts CRego3D Linux - Software 2 09-25-2004 10:42 PM

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

All times are GMT -5. The time now is 05:30 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