LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-20-2006, 07:18 PM   #1
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Rep: Reputation: 30
upgrading linux ?


Hi everyone, I have a question about disk partition and upgrading linux
I have this setup
/dev/hda1 /
/dev/hda2 /usr
/dev/hda3 /usr/local
/dev/hda4 /home

At the moment I'm running slack 10.2 then comes the time when slack 11 is out, and I decided to upgrade my system.
Here is where I get confused, giving at console "ls /" I see that /usr and /usr/local and /home and some other directories are under this /

If my understanding is right then when I do clean install slack 11, old stuff will be gone and all new things will be installed under /.
Does that means my /usr, /usr/local, /home will be replaced too?
Even though they are on another partition?

Thank you
 
Old 09-20-2006, 08:10 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Within the slack setup, it will ask you which partition should be mounted at /, then it will detect other partition and ask you where to mount each of those. At that point, you'll tell it where to mount them (/usr/local, /usr, /home) and those directories will be created. Once all partitioning & directory setup is finished, you'll do the actual installation which will wipe everything and install new packages.

** My recommendation is DO NOT mount /home during the installation. You can mount that partition later and that will keep your files.
 
Old 09-20-2006, 08:51 PM   #3
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Thanks musicman_ace for replying

When setup asks me where to mount those partitions, and I precedes the installation by giving
/dev/hda1 /
/dev/hda2 /usr
/dev/hda3 /usr/local
/dev/hda4 /home
means my hda1 hda2 hda3 hda4 will be wiped out, correct?

If I only mount /dev/hda1 at / at this point, will the setup creates new /usr, /usr/local, /home under this hda1 ?
Which means I have 2 /home(hda1 from current setup and hda4 from previous setup) likewise with /usr, /usr/local ?

Since I add some apps on my own on /usr and /usr/local is there a way to keep this apps while upgrading my OS, so I don't have to install them again after I have new slack 11?

Thank you
 
Old 09-20-2006, 09:05 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Not certain how Slack does it but when you have pre-existing partitions installing Debian the partitioning setup asks if you wish to format the partition perhaps it is the same. One thing though you will definitely want to format the /usr and / and not the /home and /usr/local now whether all the software will still work in the /usr/local is another matter as it may have to be re-compiled against the new install depending on compatibility with the new libraries/binaries in it.
 
Old 09-20-2006, 09:25 PM   #5
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Thank you HappyTux
It becomes clearer now, I don't know that this would turn into distro specific questions. Probably I should put this thread in Slackware at the first place instead of here.

Ok so this will sounds very conceptual and depending on personal preferences, if in the end when you're trying to upgrade your distro, you still have to format /usr and probably /usr/local.
What is the benefits of having a separate partitions for this 2?

Thanks

Last edited by lilili; 09-20-2006 at 09:37 PM.
 
Old 09-20-2006, 09:49 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally Posted by lilili
Thank you HappyTux
It becomes clearer now, I don't know that this would turn into distro specific questions. Probably I should put this thread in Slackware at the first place instead of here.

Ok so this will sounds very conceptual and depending on personal preferences, if in the end when you're trying to upgrade your distro, you still have to format /usr and probably /usr/local.
What is the benefits of having a separate partitions for this 2?

Thanks
Well you just need to know how the Slackware partitioner does it you would think it asks if you want to format existing partitions. You definitely want the /usr formatted and reinstalled to get the newer files put in there properly the /usr/local should be alright to leave alone but any software that needs recompiling to work with the newer install will need to be. The advantages to having the two separate are not having to reinstall the /usr/local software/libraries if they will continue to work with the new install if it all has to be reinstalled then there is no advantage at all. I personally just go with /, /swap, and /home plus I have partitions for my music and for videos any extra software I install I make into .deb packages that are installed into the proper directories not the /usr/local.
 
Old 09-21-2006, 04:25 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
moved at OPs request ...
 
Old 09-21-2006, 03:03 PM   #8
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Thank you Tinkster
Hope I can get a better insight in here
 
Old 09-21-2006, 05:06 PM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Quote:
Originally Posted by lilili
Thank you HappyTux
It becomes clearer now, I don't know that this would turn into distro specific questions. Probably I should put this thread in Slackware at the first place instead of here.

Ok so this will sounds very conceptual and depending on personal preferences, if in the end when you're trying to upgrade your distro, you still have to format /usr and probably /usr/local.
What is the benefits of having a separate partitions for this 2?

Thanks
There is no benefit for a desktop machine. If you are making a desktop machine, then anything beyond root (/) and home is a waste of time. It's a good idea to make a separate home so you can reinstall without losing your user directories, data, etc. (Make sure to copy root's directory (/root) over to your home partition if you have anything you want to save!)

If you are making a server, then it depends based on what kind of server.
 
  


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
Upgrading to Badger! Can't login anymore after upgrading? BellaSha87 Ubuntu 1 12-03-2005 01:09 PM
upgrading a linux distro jackstoage Linux - General 4 05-26-2004 01:14 PM
upgrading linux shyam_d_sundar Linux - Newbie 1 05-20-2004 02:43 AM
Upgrading my Linux Kernel MSwal2846 Linux - Networking 1 03-19-2004 12:23 PM
upgrading linux v_ajmera Linux - Distributions 1 09-16-2002 07:51 AM


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