LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-18-2005, 12:21 AM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
question about reinstalling without losing data on seperate partitions?


i have a few computers running an older kernel of Debian-sarge and after many, i mean more then 30, failed attempts to upgrade the kernel on my own for what ever reason i would like to try and use the newer netinstall beta CD for debian-sarge that has the 2.6 kernel as an option for install.

here is a base of what the partitions look like:

Code:
ray@ssmadebian:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3             6.5G  3.2G  2.9G  53% /
tmpfs                 443M     0  443M   0% /dev/shm
/dev/hda4             115G  5.0G  104G   5% /home
/dev/hdc               11M   11M     0 100% /media/cdrom0
so ihave my data seperate from /, can i just reinstall using the new CD, run apt-get update/upgrade/dist-upgrade after fixing my sources.list and NOT lose any of my data and programs on /home?

if not, how should i go about it without a full format reinstall. on both my laptop and my workstation that would be a major PITA as i have a lot of stuff i just would rather not rebuild.
 
Old 04-18-2005, 12:25 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Hmmm debian debian debian ... AFAIK you can reinstall without losing data on existing partitions in most distros - the installer detects existing partitions and asks if you want to keep them. However: I cannot be sure that this is the case for debian - I always tell folk to back up any data they do not want lost no matter what. Then try the install.
 
Old 04-18-2005, 12:25 AM   #3
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 14
Posts: 336

Rep: Reputation: 30
i've done it before on redhat, and i didn't lose data on separate partitions (however, the partitions i worked with were not "default" partitions.. for example, i specified a /backup partition which obviously wouldn't be touched by a regular install). consequently, your results may vary.

however, i think that you probably would benefit from tarballing the home directories and backing them up on your current machine to avoid losing data. before i reinstall, i usually copy the necessary directories over to my windows machine and then transfer them back for use on my newly installed box.

sorry if this isn't any more helpful.
 
Old 04-18-2005, 01:01 AM   #4
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
tis helpful. at least gives me a starting point to think about.

thanks guys.
 
Old 04-18-2005, 02:10 AM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Assuming that the data you want to preserve all lives in /home, Yes, you can freely reinstall any Linux distro you want without fear of killing the data you want to save. The critical step of course is that you have already established a separate partition for that important data, that you use a consistent file system, and that during the partitioning exercise, you do NOT format the partition that contains /home. (To play it safe though, Yes, it's an excellent idea to backup that important data before starting anything)

To illustrate, let's assume that all critical data will live in /home. If so, give /home its own partition, and create any other partitions as you see fit. Later, when you decide that you'd like to either reinstal or give another distro a tryout, it's basically a piece of cake to reinstall "around" the /home partition. The 3 critical steps (again) are to continue to use your existing partitioning scheme, to use the same file system (ext3, reiserfs, etc) and to NOT format /home under the new system. The result of this approach is that the contents of /home remain untouched, but all the other partitions such as /, /usr, /var, etc will be rewritten under the new distro. It's pretty sweet, and yet another advantage over Windows.

Personally, I've decided on a standard partitioning scheme, and have on more than one occasion have installed a different distro "around" my existing /home directory. As you can guess, the key is to just use the same partitioning scheme all the time, and to *not* format /home, and this practice has been super helpful to me anytime I want to experiment with new distros. Sorry if this post sounds so repetitive. Good luck with it -- J.W.

Last edited by J.W.; 04-18-2005 at 02:14 AM.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstalling without losing /home/user directory? santaliqueur Linux - Software 3 11-16-2005 09:25 AM
Directories on seperate partitions. ToothlessRebel Linux - Newbie 5 11-27-2004 09:34 AM
Install Slack 10, resize partitions w/o losing data Hal Linux - General 4 09-03-2004 10:00 AM
Join Partitions Without losing data aeruzcar Linux - General 0 06-28-2004 11:54 PM
howto add 2 partitions together without losing data? dfuse Linux - Newbie 3 09-09-2003 07:47 AM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
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