Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I am using nautilus and I have multiple hard drives.
The problem that I have with my "personal" folder is that it is full of unpersonal crap, like snap, Public and Templates. Also, it gets constantly polluted by software without asking for permission.
I want to have /home on my SSD and the media on my HDD. What I find repeatedly suggested is to create symlinks inside of $HOME that point to a data partition.
But, do I really have to use $HOME? How about using my symlinks on /mnt/home/$USER, to use in parallel to $HOME? (leaving $HOME for pollution, such as Dropbox or snap). This way I have my truly personal place on which I have full control over. I have never anyone suggesting this, it seems like everyone uses $HOME.
To integrate this with nautilus I'd make user-dirs.dirs point to my "other" personal folder. Most of the software, like Firefox, understand this modification. This also avoids nested mounts for my SSD / HDD division of $HOME, which is another benefit. To make it more clear, what I am suggesting is to create some personal folders, like "documents" and "projects" somewhere else, and integrate them conveniently in my Desktop Environment.
I found a commenter which made his $HOME readonly. This would most likely break some of my brain dead software I am relying on, though. I don't have the time and nerve to do this.
P.S.: I know that I can literally do anything I want on linux file system, but I am a little afraid of this much power.
P.P.S.: I really hope this goes through the spam filter with all these links!
Last edited by linuxUser247; 06-19-2020 at 03:59 PM.
Rather than read and look for a bunch of technical solutions to this typical e of issue, instead what I've always done is set my APPLICATIONS to save to different locations, or done so manually as they perform save as operations. Same for my browser, I tell it to always ask me where to save files.
As far as all the hidden or other config/application support files, I just let them go where the application writers want and intend them to go.
In short, while I have a $HOME, I do not store my data there.
what I've always done is save to different locations, as they perform save as operations. Same for my browser, I tell it to always ask me where to save files.
As far as all the hidden or other config/application support files, I just let them go where the application writers want and intend them to go.
In short, while I have a $HOME, I do not store my data there.
Ok, so in general we have a division of application files and personal files. The goal is to define a place I completely own for my personal file structure. I want there to be those 5 root folders, which I created, and nothing else. (Documents, Projects, Media, etc, "homework" )
On many poorly written applications those application files go on places XDG never intended them to be. As for personal files, there is no doubt that these follow your own conventions and are stored wherever you tell them to.
Quote:
Originally Posted by rtmistler
In short, while I have a $HOME, I do not store my data there.
where do you store them? What is your opinion on my suggestion of /mnt/home/$USER ?
I tend to use $HOME for all personal files. On my systems, they’re at /home/$USER
You can of course set a user’s home directory to be anywhere you want it to be.
I do just the opposite. I make sure that source code is not stored in $HOME. I put them in /src, which is, of course, in the root partition. I’ve created $HOME/bin directories as needed, have added them to $PATH.
Having a consistent setup on a multi-user system is critical, of course. That may not be an issue in your case.
where do you store them? What is your opinion on my suggestion of /mnt/home/$USER ?
I store them on a data drive. I do this by saving to a location. I don't look to reconfigure things I just save and store where I want to.
But technically it's a mounted drive. It's also the same name at each mount, I don't need a special alias or symbolic link to it. There already is a link to a mounted file system.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818
Rep:
Quote:
Originally Posted by linuxUser247
I am using nautilus and I have multiple hard drives.
The problem that I have with my "personal" folder is that it is full of unpersonal crap, like snap, Public and Templates. Also, it gets constantly polluted by software without asking for permission.
I want to have /home on my SSD and the media on my HDD. What I find repeatedly suggested is to create symlinks inside of $HOME that point to a data partition.
But, do I really have to use $HOME? How about using my symlinks on /mnt/home/$USER, to use in parallel to $HOME? (leaving $HOME for pollution, such as Dropbox or snap). This way I have my truly personal place on which I have full control over. I have never anyone suggesting this, it seems like everyone uses $HOME.
I tend to delete all those Windowsy directories like Documents, Pictures, Templates, etc. and use my own directory structure.
I set up a dedicated disk that I have mounted on $HOME/Data. All of my project directories, documents, etc. are all created in that filesystem. $HOME has a lot of config files and config trees (with caches, etc.) but all my data resides in the the $HOME/Data filesystem. Some application config files that are normally in $HOME have been moved to $HOME/Data/etc/config_files and symbolic links created in $HOME to point to them (for example, my Emacs config is set up this way). A few frequently used directory trees (docs. devel, etc.) in $HOME/Data have symlinks in $HOME. One thing that makes this setup easier to use is to configure your file manager of choice to initially point to $HOME/Data---$HOME always seems to be available as a default selection in the "places" sidebar if you ever want to go there.
Making $HOME read-only? I cannot imagine how annoying that would be. I've heard of sites that make "/usr" read-only but never $HOME.
Interesting article.
I should try that sometimes.
Take those XDG specs seriously, make apps obey them as far as possible.
Where that fails, making $HOME read-only (not recursively!) could be helpful.
Many apps create folders and files willy-nilly for no good reason (meaning, you don't even change the configuration, it just stores window positions or some such cr*p).
But over the years (since $person wrote that article), this has gotten much better.
Quote:
Originally Posted by rtmistler
In short, while I have a $HOME, I do not store my data there.
I must admit that I am personally just as responsible for a messy $HOME as are all these old applications that store dotfiles there.
I should try that sometimes.
Take those XDG specs seriously, make apps obey them as far as possible.
I came to the same conclusions. Abandoning $HOME and reinventing it is BS. Rather, I'll improve my knowledge about XDG and clean up $HOME.
Quote:
Originally Posted by ondoho
Where that fails, making $HOME read-only (not recursively!) could be helpful.
I'm in and out on that one. I have to try out first. BTW it must be writable where that fails, and read-only in all other cases.
Quote:
Originally Posted by ondoho
But over the years (since $person wrote that article), this has gotten much better.
Looking at my $HOME I cannot confirm. I'm on Ubuntu 20.04 and am seeing lots of folders that have been reported as fixed. Somehow I have the feeling I am dragging around lots of legacy files from older installations that are completely useless by now. I really have to cleanup my $HOME.
Quote:
Originally Posted by ondoho
I must admit that I am personally just as responsible for a messy $HOME as are all these old applications that store dotfiles there.
This also shouldn't be about a clean $HOME specifically.
To me it becomes 2 things.
An awareness of where my data is in the event I need to move it or back it up.
An understanding about which application settings and preferences I may wish to keep track of if I have to move to another system or restore things.
One can easily "put" data somewhere. There are obvious system locations which would be inadvisable. There are default locations for data and settings. Understanding them seems to be better than something else, in my opinion.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.