LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 06-07-2005, 01:37 AM   #1
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 78

Rep: Reputation: 15
Install over Fedora w/out losing home folder?


The subject says it all. Can I install Suse Pro 9.3 over Fedora Core 2 without losing my home folder?

Thanks a bundle.

Nathan
 
Old 06-07-2005, 01:43 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
If your /home directory is on a seperate partition then you can save it by not formatting it when you install another distro. If its on the same partition as your root (/) partition then its not possile to save it.
 
Old 06-07-2005, 01:08 PM   #3
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 78

Original Poster
Rep: Reputation: 15
That's all I needed to know! Thanks!!
 
Old 06-08-2005, 08:50 AM   #4
rmasci
LQ Newbie
 
Registered: Jun 2005
Posts: 14

Rep: Reputation: 0
What I've done in the past when I have only one partition for my Linux insallation is to grab a bootable CD such as Knoppix or SuSE Live Demo. Once this is up, I delete everything but the home directory, then rename that directory to /home2 (Just to be sure). Durring the installation I opt to not format the drive. Once the system is installed I login as root and move the files from the /home2 directory, or just make the /home2 into the /home directory.

After the installation be sure to set the properties!! You would need to do this if you have a separate /home partition as well. Most distributions don't use the same UID / GID scheme so you will have to enter the /home directory and issue a command such as:

chown -R <username>:<groupname> <username>/

If this were my /home directory on SuSE 9.3 it would look like this:

chown -R rmasci:users /home/rmasci

Wait we're not done yet, you need to go into the /home/<username> directory and issue one more command. In each home directory there are hidden files and directories, these start with a period such as .kde. You'll need to issue the following command:

chown -R <username>:<groupname> .??*

You might ask, "Why not just do a .* instead of .??*" Well this is simple... if you issue a command 'cd ..' you will go back a directory, by issuing a .* the system would match '..' causing the command to go back into the home directory, and I've seen people change the entire home directory permissions with this command because they didn't include the question marks. The question mark represents a wild card for only one character, while the * represents a wild card for many characters. What we're saying with this command is to match every file that has a . with at least two characters after it. This way it doesn't match the .. FYI, most Linux installations the chown command is smart enough to stay within the directory if you did issue a .*, but if you were on a system like Solaris 8 it isn't so it's good practice to use the .??*.

Best of Luck -- Rich
 
  


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
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
losing permissions on /home folder johnnymo Linux - Software 1 01-25-2005 10:59 PM
losing ppp connection on home network justwantin Slackware 0 06-15-2004 04:48 PM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 07:44 AM


All times are GMT -5. The time now is 11: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration