LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-06-2005, 02:53 AM   #1
dnial
Member
 
Registered: Jun 2004
Location: US
Distribution: slackware,knoppix,xp nlited
Posts: 34

Rep: Reputation: 15
reclaiming /home


After a reinstall how can I reclaim my /home partition?

With 'kuser' I add my user, and it asks me about the users /home directory, and if Im sure I want this...I answer yes, but it wont work so easily.

What steps do you take to accomplish such a task?
 
Old 11-06-2005, 03:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what does "reclaim" mean? please explain what you're actually trying to achieve. if you reinstalled and deliberately left your /home partition alone to save the contents, just add an entry to /etc/fstab and mount it. you may need to change either your users UID in /etc/passwd or the owner of the relevant files in /home/
 
Old 11-06-2005, 03:26 AM   #3
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
umm, making it a separate partition!
 
Old 11-06-2005, 03:31 AM   #4
dnial
Member
 
Registered: Jun 2004
Location: US
Distribution: slackware,knoppix,xp nlited
Posts: 34

Original Poster
Rep: Reputation: 15
acid_kewpie

I want to be able to re-use my old /home when I reinstall..

Right now I have many things in my /home and would like to reinstall leaving /home intact, saving lots of things like .Xdefaults and such.
This would save lots of time and headaches.
 
Old 11-06-2005, 03:50 AM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Read the man page for the 'chown' command.
 
Old 11-06-2005, 04:31 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
chown is hardly useful yet...


well you can certainly just leave it untouched, no need to worry about that. I am not a slackware user, but you can certainly just ignore that parition completely and then readd it to /etc/fstab once the installation is done. if you on'y have a single user, then when you recreate them chances are they'll have exactly the same uid again, so you probably won't need to change anything other than mounting /home again.
 
Old 11-06-2005, 07:08 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
the " adduser " script will take care of it.
after adding the home partition in fstab and mounting it,
just run " adduser " and choose to use the existing home dir.
the script will do the chown etc. if that's needed.

egag
 
  


Reply



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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Reclaiming Linux drive space for windows sleeves Linux - Newbie 12 11-14-2004 04:04 PM
Reclaiming a logical Windows partition Punjab Linux - Newbie 1 03-16-2004 02:44 PM
Reclaiming a hard drive Scottystr Linux - Newbie 10 11-05-2003 11:17 PM
reclaiming free space zhenwu Linux - General 3 11-17-2001 08:29 PM

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

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