LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-09-2004, 06:19 AM   #1
xtra
LQ Newbie
 
Registered: Jun 2004
Posts: 20

Rep: Reputation: 0
keep data in home slice when reinstalling


I have been toying around with my RH9 system for somewhat over a year now. Its full of installed rpms, and as it is always running, I put a lot of disks in it a year ago.

The thing only has a dvd rom unit and three harddisks, one of 60, and two of 120GB.

At the time it seemed handy for me to put all that space in a LVM partition. SO what happened was this; I took 20GB from the 60gb disk, made a root slice and made a boot slice in this partition.

All the other space I had left I made LVM partitions and put them all together to make a 280 GB /home. (yes it is rediculous but we share a lot of data in the house) It is getting full already anyway.

However, I want to upgrade the sytem now. Fedora2 tickles my fancy at the moment, and the best for me would be:

a) to keep the partitioning intact (nothing wrong with it)
b) to delete/format all data EXCEPT /home
c) to keep the data on the h00j /home
d) to keep named data available when I reinstall linux (because ofcourse it is in some user directory...)

How would I do this? Im really paranoid about losing the data, you see. And burning CDs would take me like (230/0,7) cds and (cds*7) minutes, so its not really an option (and yes a DVD burner is high on my wish list but as of now unavailable).
 
Old 07-09-2004, 06:25 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
I've never installed FC2 but in most distros that aren't specifically designed for the beginner they let you have complete control over your partitioning on install...if you know the partition number of your /home partition (i.e. /dev/hda3 or whatever) you should be able to select not to format it and just have it added to the fstab as /home.

Even if you can't add it to fstab during install, as long as you have the option not to format it you can do it later.

I guess the best thing is to start the install...most utils make you confirm any partitioning changes before it commits them - meaning you should be able to bail out if it doesn't look like it's gonna do what you want.

Alternatively use Slackware because I did exactly what you're asking about when I reinstalled slack.
 
Old 07-09-2004, 06:30 AM   #3
xtra
LQ Newbie
 
Registered: Jun 2004
Posts: 20

Original Poster
Rep: Reputation: 0
And the data was conserved? Or did you have to move it from the user directories to the root of /home?

Im a little scared the data will be locked because of user rights etc.
 
Old 07-09-2004, 06:35 AM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by xtra
And the data was conserved? Or did you have to move it from the user directories to the root of /home?

Im a little scared the data will be locked because of user rights etc.
Yes, the data was absolutely fine. In fact it meant all my windowmaker settings were saved
No, I kept the data exactly where it was. My /home was a separate partition meaning that /home/sab300 (me) was on that partition - so if I didn't format that partition, my data was not touched.

And even if your permissions do get screwed remember that the root user can move anybody's files - you can chown them / chmod them back to the rightful owner if they get 'locked'.

Basically you have two choices - you spend a lot of time backing up or you try it and see what happens.
 
Old 07-09-2004, 06:40 AM   #5
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
I suggest you make a tar backup of /home and put it out of harms way. On cd if you have a cd burner.
When I install a new distro. I have just installed FC2
I recreate all my users:-

adduser lazarus

chown -R lazarus /home/lazarus

All this must be done as root

I wrote a small script that sets up all my users. So after a freash install I just run that.
 
Old 07-09-2004, 06:41 AM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by Lazarus
I suggest you make a tar backup of /home and put it out of harms way. On cd if you have a cd burner.
When I install a new distro. I have just installed FC2
I recreate all my users:-

adduser lazarus

chown -R lazarus /home/lazarus

All this must be done as root

I wrote a small script that sets up all my users. So after a freash install I just run that.
Did you read his post? He has 260GB of data...now where do you suggest he puts that 'out of harms way'?
 
Old 07-09-2004, 06:42 AM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Actually if you've installed FC2 you can say whether it lets you leave a partition unformatted during install as xtra is only looking for reassurance that his data will be untouched
 
  


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
reinstalling without losing /home/user directory? santaliqueur Linux - Software 3 11-16-2005 10:25 AM
install new distro WITHOUT loseing data in /home and other partitions Lleb_KCir Linux - General 5 07-20-2005 10:47 AM
question about reinstalling without losing data on seperate partitions? Lleb_KCir Linux - General 4 04-18-2005 03:10 AM
Any way to change what partitions /home is on without reinstalling? DraaX Slackware 8 02-21-2005 12:32 PM
Home Office Biotech Data Mining - Data Collection Adler Linux - General 20 11-03-2004 05:17 AM


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