LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-13-2024, 11:27 AM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Question 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.
 
Old 04-13-2024, 01:05 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
"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.
 
Old 04-13-2024, 08:23 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,329
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
I second the suggestion to add the partition to your /etc/fstab files, identifying it by UUID and adding the "auto" flag. Here's a good tutorial.
 
1 members found this post helpful.
  


Reply



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
Is anyone familiar with "KiTTY"? (SSH client - based on "PuTTY") haertig General 1 09-22-2013 04:32 PM
[SOLVED] Are the programs in util-linux the same version as those in util-linux-ng? harryhaller Slackware - Installation 2 10-07-2011 09:43 AM
i am not familiar with linux,i m using fedora4 ,can u explain the networking .... kirankuvvarapu Linux - Networking 1 12-10-2009 12:34 AM
i am not familiar with linux,i m using fedora4 ,can u explain the networking .... kirankuvvarapu Linux - Networking 2 12-09-2009 10:59 PM
Anyone here familiar with ClarkConnect? KungFuHamster Linux - Networking 1 02-13-2003 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration