LinuxQuestions.org
Review your favorite Linux distribution.
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 04-18-2008, 03:32 PM   #1
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Rep: Reputation: 45
Clean install keeping /home partition.


Hi All,

Doing a clean re-install (mostly for fun and learning). My /home partition has all my data and I also store backups of all my installed packages there (kernels, software, etc). As long as I re-create the same username will my /home partition be accessible to me or is there anything special I should be aware of beforehand?

Thanks much,

Dig
 
Old 04-18-2008, 03:40 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
In some distro's you need to make sure you do manual partitioning and make sure that when you identify that partition as /home, you select "DO NOT OVERWRITE". Otherwise, it will just install a new /home over the top.

Alternatively, you could re-install with /home on the / partition, and then once you have your system running, just change the fstab to point to your old /home partition and remount /home.

As to username, I think the UID also needs to be the same. So if your username joe is UID 1001, then you need to make sure the new joe also has UID 1001.
 
Old 04-18-2008, 04:34 PM   #3
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Original Poster
Rep: Reputation: 45
Hi and thanks...

I'll be setting up my machine exactly as it is now so when I 'adduser' using the same username and allow it to use the next available ID I assume it will choose the same UID as before.

I will be backing up my /home partition just in case, but this is partially an exercise in how to reinstall Slackware while keeping data intact so I'll be curious to see how it goes. I want to wreck my system now while it's not mission critical in order to learn how to do this properly down the road. If that makes any sense!

I'm especially interested in the partitioning aspect. When it asks me, do I simply point it to the same /home partition but request that it NOT reformat? Is it really that simple?

Dig
 
Old 04-18-2008, 04:56 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by digger95 View Post
When it asks me, do I simply point it to the same /home partition but request that it NOT reformat? Is it really that simple?
It is in Debian, but I haven't installed Slackware in a long long long long time. So I'm not sure what the partitioning tool is like.
 
Old 04-18-2008, 04:57 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
digger95, it'll ask you to mount any other partitions and to define their mount points during installation. Just select your /home partition and define it as /home. It'll then ask you if you wish to format it (Quick format, Full format, and No format, if I recall correctly). Choose NOT to format it. It'll just use the available /home partition leaving all files intact.
 
Old 04-18-2008, 05:16 PM   #6
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by T3slider View Post
digger95, it'll ask you to mount any other partitions and to define their mount points during installation. Just select your /home partition and define it as /home. It'll then ask you if you wish to format it (Quick format, Full format, and No format, if I recall correctly). Choose NOT to format it. It'll just use the available /home partition leaving all files intact.
Thanks that's very helpful.

One more question: If I want to 'reset' all my settings for Firefox, Thunderbird, KDE, etc. and rebuild from the ground up, can I just delete all the hidden files on my /home partition and leave only my data? That seems correct to me but I am often wrong about such things.

Dig
 
Old 04-18-2008, 05:28 PM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,455

Rep: Reputation: Disabled
Quote:
Originally Posted by digger95 View Post
Thanks that's very helpful.

One more question: If I want to 'reset' all my settings for Firefox, Thunderbird, KDE, etc. and rebuild from the ground up, can I just delete all the hidden files on my /home partition and leave only my data? That seems correct to me but I am often wrong about such things.

Dig
Yes. Except be careful, because your Inbox, for example, is in the hidden directories, so you probably don't want to delete that.


Brian

Last edited by BCarey; 04-18-2008 at 05:30 PM.
 
Old 04-18-2008, 05:29 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,201
Blog Entries: 3

Rep: Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426
Hi,

If you delete the '/home/user/.kde' that will be created again.
 
Old 04-18-2008, 05:45 PM   #9
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Original Poster
Rep: Reputation: 45
Thanks everyone for your input. Much appreciated. I have backed up my Thunderbird inbox, Firefox bookmarks, etc. into their own backup directories on my /home partition so I can copy them over once this is complete. I'm gonna go ahead and do this and just see how it goes. I'll post back with the results.
 
Old 04-18-2008, 05:52 PM   #10
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
digger95, I believe that should work. Almost all programs (including Firefox, Thunderbird, etc.) and even window managers/desktop environments keep their settings etc. stored in hidden directories or files in your home directory. To restore all user-based settings to default, you can delete all of the files/directories starting with a '.'. (Be careful when deleting though -- if you do `rm -rf .*`, you'll delete EVERYTHING because it'll recognize it as ./filename etc.). You could delete using a graphical filemanager (Konqueror works well if you disable hiding hidden folders) or you could rig something up like the following (use at your own risk -- I'm not an expert):
Code:
find . -maxdepth 1 -name ".*?" -exec rm -rf {} \;
 
Old 04-19-2008, 03:28 AM   #11
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Original Poster
Rep: Reputation: 45
Worked great. Thanks.
 
  


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
keeping the computer clean sycamorex General 12 07-18-2007 11:15 AM
Keeping /home partition with new installation Micro420 Linux - Newbie 6 10-31-2004 03:50 AM
Keeping a clean system. dirk102 Linux - Software 19 09-09-2004 02:47 PM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM
Keeping LCD Displays Clean? sancho General 4 09-26-2003 02:20 PM


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