LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-27-2007, 10:55 PM   #1
shjrgray
LQ Newbie
 
Registered: Aug 2006
Distribution: centos 5
Posts: 6

Rep: Reputation: 0
CentOS 5: how to keep /home during new install?


hi all,

this is my first post, and I am fairly new to linux admin.

I have an existing rhel / centos 5 install, with a 650G partition for /home, which I'd like to leave untouched while I re-install the OS in / (to avoid having to copy /home from backups, which I can do if needed). /home is its own partition in the same logical volume group as /, not sure if the vol group matters.

I read the RH docs about partitions and installing, but it did not seem to address my situation, of reinstalling. I'd rather do a new install rather than upgrade (and am not sure if you could "upgrade" it to the same OS). I went through the install process up to the partition section, but could not discern with any confidence that my current /home would not be over written, and would be used as /home on the new OS. I only found one post in linux questions that was related, but it was for slackware in 2004 ("/home seperate partition from previous install, make it new /home in new install").

any advice much appreciated.
 
Old 05-27-2007, 11:29 PM   #2
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Hi,

While you're manually partitioning, the system will want to know if you want to reformat the partition or not. If you explicitly state for it to not format the partition, it will leave your data intact, no matter what else it does. Further, you can tell it how to mount the partition. Just like when making a new partition, specify that you want it to be the /home partition for the new install.

Hope that helps
Sam
 
Old 05-28-2007, 11:03 AM   #3
shjrgray
LQ Newbie
 
Registered: Aug 2006
Distribution: centos 5
Posts: 6

Original Poster
Rep: Reputation: 0
thanks Sam--I'm not sure yet if it helps. I thought there should be options to do as you suggest, but did not see them. hence my confusion. but I did not try to do a completely custom install (you say "manually partitioning"). I went with the suggested partition scheme and then manually edited what it suggested. let me poke around with the completely custom option. I see from the manual that there should be a --noformat option that can be passed somehow.

basically, I want to erase / (15G) and put a new system there, but leave the old /home untouched except for being mounted at the new /home.

more later.
 
Old 05-28-2007, 12:55 PM   #4
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Yeah, if you know just what you want to do, then go ahead and run a manual partitioning. Automatic partitioning is just for those who are less familiar with how partitions should be set up. Sometimes automatic partitioning won't know to save your data. If you've already installed a linux system on your computer, then you probably already know what partitions you need.

Sam
 
Old 05-29-2007, 11:11 AM   #5
shjrgray
LQ Newbie
 
Registered: Aug 2006
Distribution: centos 5
Posts: 6

Original Poster
Rep: Reputation: 0
yes, manual is the way to go, looks good. thanks Sam.
 
  


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
[SOLVED] which one to install centOS 4 or centOS 5 ? Pls HELP !!! vikas027 Linux - Newbie 2 05-13-2007 06:04 AM
Why? CentOS Install Richtown Linux - Newbie 2 11-02-2006 03:30 PM
CentOS - how to install RPM's? Micro420 Red Hat 3 08-17-2006 10:51 PM
Help install CentOS Nodda4me Linux - Software 2 10-07-2005 05:11 AM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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