LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2006, 11:10 AM   #1
God'sFool
LQ Newbie
 
Registered: May 2006
Location: Beijing China
Distribution: Slackware10.2
Posts: 4

Rep: Reputation: 0
How to keep /home when upgrade to slackware10.2



Hello.
I am trying to upgrade slackware 10.1 to 10.2 by re-installation, and very much like to keep the /home partition. I have read some similar threads on the subject of upgrading, yet I do not have the slightest hint about how to mount the /home when re-installing. I mean should I mount /home right after partitioning, or mount it after the re-boot? I am confused about the bit that if I mounted it after the re-boot, would there be a second /home created?

I have done an upgrade once, but I just intentionally deleted everything, and I really want to know how to keep all the data and config files in /home this time, so if it's not too much of a convenience, would someone walk me through the procedures?

Thank you!
 
Old 05-10-2006, 11:19 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
If you have a separate partition for /home , take notes of the partition numbers for / and /home (and other partitions if you have them).
Then, once you start installing the new Slackware, you get straight to "setup" without first running (c)fdisk.
Somewhat later, you will get to the point where you have to tell the installer about your partitions and where to mount them, and whether to format them or not.
For the partition where you used to have the root (/) tell the installer to use that one again for '/' and format it. The other partition that it will show contains your /home and your precious data. Tell the installer you want to mount that under /home (you'll have to type that) and then not to format that partition.

The rest of the install will be straight-forward. You will end up with a fully functional Slackware 10.2 and the /home partition correctly mounted and available to you. There is nothing else to do, except for creating the user accounts that you had. Do not forget to give the new accounts the same uid-numbers as before! Otherwise you will not be able to access your own files on the new Slackware install-

Eric
 
Old 05-10-2006, 11:27 AM   #3
Youri
Member
 
Registered: Oct 2004
Distribution: slamd64-current, slackware-current, clfs 6.1, arch-current, ubuntu dapper
Posts: 144

Rep: Reputation: 15
i do reccomend making an backup of your /home folder (on a usb stick or so)
 
Old 05-10-2006, 11:56 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob
Do not forget to give the new accounts the same uid-numbers as before
Out of interest, how do you do that?
 
Old 05-10-2006, 12:04 PM   #5
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Quote:
Originally Posted by Alien Bob
The rest of the install will be straight-forward. You will end up with a fully functional Slackware 10.2 and the /home partition correctly mounted and available to you. There is nothing else to do, except for creating the user accounts that you had. Do not forget to give the new accounts the same uid-numbers as before! Otherwise you will not be able to access your own files on the new Slackware install-
Would it also work to make copies of the password and shadow files before the install and put them back after? I imagine it wouldn't if any UIDs for system accounts have been changed, but is this event likely?
 
Old 05-10-2006, 12:08 PM   #6
drlouis
Member
 
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by dive
Out of interest, how do you do that?
When you add the user it will ask you what user ID to give each user, you can either hit enter to accept the next uid#, or enter the uid from your previous install.
 
Old 05-10-2006, 12:43 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
another option is to forget about the /home partition during install.
after install and before making new users you can mount the /home-partition
and add a line to fstab to mount it at boot.

i use this method because i once managed to format my home partition while installing.
( i believe that's three wrong keystrokes, but it's possible...)

egag
 
Old 05-10-2006, 05:02 PM   #8
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Quote:
Originally Posted by Alien Bob
Do not forget to give the new accounts the same uid-numbers as before! Otherwise you will not be able to access your own files on the new Slackware install-
Eric
Hmm? I always do:

Code:
# useradd -m myname
and since my home is in /home/myname, I've never had a problem.
 
  


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
Backing Up Home Dirs before upgrade Thin Mandriva 6 02-02-2005 12:44 AM
home directories missing after upgrade to 2.4.26 eger Linux - Software 2 05-03-2004 07:11 PM
Upgrade from Redhat 9 - /home/ md0 - error trekk Fedora 2 12-16-2003 11:42 PM
upgrade/reinstall and /home BrianNJ Linux - Distributions 2 11-25-2003 12:45 PM
Mandrake 9.2 deleted my home directory on an upgrade. bolinux Mandriva 5 11-18-2003 07:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:11 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
Open Source Consulting | Domain Registration