<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Thanks for the tips.<br>
<br>
<i>"</i><i>I thought you had to use NTFS-3g to write to NTFS. Also,
don't these things have labels? It's much more readable and
simpler to mount a thing with a label than a UUID if you can.
</i><i>"<br>
<br>
</i>I used the UUID based on a Pluralsight course I watched on
Raspberry Pi. I like it better than a label, since labels can be
easily changed (esp. in Windows) whereas a partition UUID would only
change if the drive were re-partitioned (highly unlikely). And I'm
not terribly concerned about "unsightly-ness" in a config file (a
simple comment will tell me what it is). I have the ntfs-3g package
loaded and the mount -t ntfs is actually using ntfs-3g behind the
scenes.<br>
<br>
<i>"Backup script should check whether the disks are mounted or not?
"</i><br>
Any suggestions on how I could check whether a drive is mounted?
Some kind of combination of lsblk & grep??<br>
<br>
Thanks<br>
Peter<br>
<br>
<br>
<div class="moz-cite-prefix">On 9/9/2020 3:52 PM, Matt Graham via
PLUG-discuss wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f0ee885201d6dbf1cdbf0370a8fbb34e@crow202.org">
<blockquote type="cite">AZ Pete via PLUG-discuss wrote:
<br>
<blockquote type="cite">However, currently I have to manually
mount each of the external
<br>
drives. This isn't a terribly big issue since the drives are
<br>
rotated to offsite storage only once per month. But, if the Pi
<br>
gets rebooted, the drives are not being auto-mounted and the
<br>
backups will then fail.
<br>
</blockquote>
</blockquote>
<br>
Backup script should check whether the disks are mounted or not?
But read on.
<br>
<br>
<blockquote type="cite">
<blockquote type="cite">/etc/fstab to auto-mount them at boot,
but if they drives are
<br>
not connected at boot time, I've found the the Pi doesn't boot
<br>
(it just seems to hang).
<br>
</blockquote>
</blockquote>
<br>
If a thing may not be there, it is not recommended to auto-mount
it on boot.
<br>
<br>
<blockquote type="cite">
<blockquote type="cite">mount -t ntfs
PARTUUID=c6040663-9321-4d28-91f0-2f3eb35f72b7
/mnt/Ext3TB_Data1/
<br>
</blockquote>
</blockquote>
<br>
I thought you had to use NTFS-3g to write to NTFS. Also, don't
these things have labels? It's much more readable and simpler to
mount a thing with a label than a UUID if you can.
<br>
<br>
<blockquote type="cite">
<blockquote type="cite">How can I "conditionally" mount an
external drive based on if
<br>
the drive is currently connected?
<br>
</blockquote>
</blockquote>
On 2020-09-09 14:13, James Mcphee via PLUG-discuss wrote:
<br>
<blockquote type="cite">autofs or udev rules would be your best
bet.
<br>
</blockquote>
<br>
<a class="moz-txt-link-freetext" href="https://wiki.archlinux.org/index.php/Udev#Mounting_drives_in_rules">https://wiki.archlinux.org/index.php/Udev#Mounting_drives_in_rules</a>
explains how to do this sort of thing using udev and systemd
(yeck!). udev is not really meant for starting a long-running
process, so there is a workaround.
<br>
<br>
</blockquote>
<br>
</body>
</html>