Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-10-2006, 11:10 AM
|
#1
|
LQ Newbie
Registered: May 2006
Location: Beijing China
Distribution: Slackware10.2
Posts: 4
Rep:
|
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!
|
|
|
05-10-2006, 11:19 AM
|
#2
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
05-10-2006, 11:27 AM
|
#3
|
Member
Registered: Oct 2004
Distribution: slamd64-current, slackware-current, clfs 6.1, arch-current, ubuntu dapper
Posts: 144
Rep:
|
i do reccomend making an backup of your /home folder (on a usb stick or so)
|
|
|
05-10-2006, 11:56 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
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?
|
|
|
05-10-2006, 12:04 PM
|
#5
|
Member
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416
Rep:
|
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?
|
|
|
05-10-2006, 12:08 PM
|
#6
|
Member
Registered: Aug 2004
Location: Ne
Distribution: slackware 12 on Dell XPS m1710
Posts: 90
Rep:
|
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.
|
|
|
05-10-2006, 12:43 PM
|
#7
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
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
|
|
|
05-10-2006, 05:02 PM
|
#8
|
Member
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|