LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 04:24 AM   #1
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Rep: Reputation: 32
reinstall and keep /home


is there a way i can reinstall my OS, but keep /home untouched?
i am using SuSE 9.1
 
Old 08-20-2004, 04:34 AM   #2
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
yes, move /home to a separate partition while you reformat your old one. or just install linux on top of your existing installation to overwrite all the binary files (not recommended)
 
Old 08-20-2004, 05:01 AM   #3
phase9
Member
 
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15
Hi!


Simply backup your home directory like:

Code:
cp -r --preserve /home/./ /source-directory/
Of course the source-directory should be, where it doesn't get deleted when you reinstall your OS (use another (linux)partition,...)

or use

Code:
tar -cjv --preserve -f "home.tar.bz2" /home
Now simply save "home.tar.bz2" to a CD,...
 
Old 08-20-2004, 05:10 AM   #4
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
Code:
or just install linux on top of your existing installation to overwrite all the binary files (not recommended)
why is it not recommended? i have like 50GB in my home, so it seems like the easiest solution...
 
Old 08-20-2004, 06:18 AM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
This is a reason I always have a separate /home partition.
 
Old 08-20-2004, 11:28 AM   #6
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
Quote:
Originally posted by ZaphyR
Code:
or just install linux on top of your existing installation to overwrite all the binary files (not recommended)
why is it not recommended? i have like 50GB in my home, so it seems like the easiest solution...
that's because you still keep anything that is not overwritten, like libraries and any custom software and some config files. While this method will potentially work, you still run a risk of having a misconfigured system.
 
Old 08-20-2004, 11:41 AM   #7
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
i have /home on a seperate hd in fact. could i just disconnect that disk and reconnect it when i finish reinstalling....or would i then end up with two home dirs?
 
Old 08-20-2004, 01:18 PM   #8
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
as long as you say to use the second harddrive as /home without reformatting it (so it updates /etc/fstab) you are all set. go ahead, you'll be fine.
 
Old 08-24-2004, 08:16 AM   #9
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
well, i told YaST to get info from the old fstab file, and mount it the same way. then i deleted all partitions on hda (swap, / and /usr), and told YaST to keep hdb as it was, mounting it as /home.

this worked like a charm. i formatted hda with ext3, and hdb still has reiserfs3...will this give me any problems?

Thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
want to ssh/ftp to home machine (Slack) from office through home router fincher69 Linux - Networking 2 09-21-2005 10:55 PM
To reinstall or not to reinstall...that's the question.. minike Slackware 3 09-17-2005 06:24 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Will Reinstall delete /home? crayiii Mandriva 1 01-03-2004 11:58 AM
upgrade/reinstall and /home BrianNJ Linux - Distributions 2 11-25-2003 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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