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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-18-2008, 03:32 PM
|
#1
|
|
Member
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 308
Rep:
|
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
|
|
|
|
04-18-2008, 03:40 PM
|
#2
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
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.
|
|
|
|
04-18-2008, 04:34 PM
|
#3
|
|
Member
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 308
Original Poster
Rep:
|
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
|
|
|
|
04-18-2008, 04:56 PM
|
#4
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
Quote:
Originally Posted by digger95
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.
|
|
|
|
04-18-2008, 04:57 PM
|
#5
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,212
|
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.
|
|
|
|
04-18-2008, 05:16 PM
|
#6
|
|
Member
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 308
Original Poster
Rep:
|
Quote:
Originally Posted by T3slider
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
|
|
|
|
04-18-2008, 05:28 PM
|
#7
|
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,362
Rep: 
|
Quote:
Originally Posted by digger95
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.
|
|
|
|
04-18-2008, 05:29 PM
|
#8
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,413
|
Hi,
If you delete the '/home/user/.kde' that will be created again.
|
|
|
|
04-18-2008, 05:45 PM
|
#9
|
|
Member
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 308
Original Poster
Rep:
|
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. 
|
|
|
|
04-18-2008, 05:52 PM
|
#10
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,212
|
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 {} \;
|
|
|
|
04-19-2008, 03:28 AM
|
#11
|
|
Member
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 308
Original Poster
Rep:
|
Worked great. Thanks.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:24 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
|
|