/home seperate partition from previous install, make it new /home in new install
SlackwareThis 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.
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.
/home seperate partition from previous install, make it new /home in new install
I was messing around with debian a few days ago and came back to slack (again). During the install I decided to make /home a seperate partition.
For the time being I have it mounting to a /files dir and was wondering about making it /home/<user> for my existing account. I have the same username and all, just wondering if I can delete the existing /home/ dir and rename the old one (/files) to home and somehow get it setup for my user account. Is it just a matter of renaming? Or are there other things that I have to do as well, besides permissions.
Thanks in advance
alright, well its not quite going as I planned. i cant delete /home (says something is using it blah blah).
and I cant rename /files to /home. I dunno, does it really matter if I do this? Its pretty much goint to be storage space anyways.
But if you have a simple short explination of how to go about this, it would be helpfull. So far i have the user as the owner (chown) of /files but thats about as far as I have gotten without any problems.
What I thought I was supposed to do was:
1) make a dir inside of /files called <username>
2) copy all my goodies over from exitsting home/ dir to /files/username
3) get rid of /home/ (rm -rf ?)
4) rename /files/ to /home/
from there I havent figured out what I will need to do, guess I'll find out after I get over this hurdle...
ok, so if i am reading this right you have a /files directory with all your stuff in it and you have a /home/<username> directory that is empty. why don't you just create a directory like /home/<username>/<mystuff> and then edit your fstab file to mount /files to /home/<username>/<mystuff> at boot. then youhave all your stuff where you want it and it is easily accesible.
i thought that that was part of the beauty of the linux file structure. if you need/want more room you can just graft a new partition onto the existing tree.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.