Anyone here familiar with the GUI util "gnome disks" able to explain to me what exactly "mount at startup" means? rsync issues.
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.
Anyone here familiar with the GUI util "gnome disks" able to explain to me what exactly "mount at startup" means? rsync issues.
So I have a 2TB drive that is set to mount at startup, I'm not sure this is actually happening.
I'm using Mint Cinnamon, 21.3.
When I open up the file manager and click on my 2TB drive it takes a moment to populate the drives contents, almost like it's mounting only when I try to view the files. Either way, that's not my main issue.
My main issue is that I want my computer to rsync the contents of a directory when my machine boots to a different machine on my LAN. I used to be able to do this quite easily with cron but it hasn't been working lately. So I tried creating a systemd service file and it also doesn't appear to be working and I think it's because this 2TB drive isn't actually mounted at "boot", rather I think it's mounted at "my user login" and thus both cron and systemd is failing to rsync the directory.
Tips? Suggestions? Please and thank you so much.
Ps. If I run the command used in the cron/systemd service manually from the terminal it runs just fine as expected.
"mount at startup" means exactly what it says. Mount the device when the machine is booted up. However, that also depends upon how the system has configured it. -- in your case it may mean "at login" rather than "at boot"
To confirm if the device is mounted at the beginning use the "mount" command to see what devices are mounted and at what location (before using files to access the file system on the device).
To ensure a drive is properly mounted at boot time the simplest and most certain way would be to add a line into /etc/fstab to mount the device. Entries in /etc/fstab are processed at boot time. Entries elsewhere may wait on the user to take action to mount the device. If it is a removable drive and you are using it on multiple machines you might choose to add the "nofail" option on that line so the system does not hang during boot if the drive is not connected.
You should never have two different things doing the same process (cron & systemd). Either one or the other but never something that may conflict.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.