Have an external 4TB HDD, and using it for media/backups etc.
Drive is partitioned into 2, with one being NTFS, other EXT4.
On boot, the EXT4 partition is mounted through fstab, at /home/media, but…
have just checked the drive, and the NTFS part (which I believed wasn’t being mounted, is also being mounted at /run/media/john/Seagate4T??
Don’t believe I have ever created a script/whatever that does this?
Yes, they have “similar” data on them, but thinking back, I believe I initially was using the NTFS partition, but then created/moved to the ext4 partition, and… The data on the NTFS partition is ‘almost’ up to date…
mount gives:
john@media:~/docker/immich-app$ mount | grep dev/sd
/dev/sda3 on /home/media type ext4 (rw,relatime)
/dev/sda2 on /run/media/john/Seagate4T type ntfs3 (rw,nosuid,nodev,relatime,uid=1000,gid=1000,acl,iocharset=utf8,prealloc,uhelper=udisks2)
Where would this be coming from? Using DejaDup, but it is backing up to /home/backup…
Thanks.
(probably is something I have done, but what? If I had mounted it manually, it wouldn’t remount, on reboot?)
Relevant System Information
Lenovo M920S / 16GB RAM / Gnome - Recently updated (actually blew away and recreated) to 26.04.
All is up-to-date
Headless server, running docker
The clue is “uhelper=udisks2” in your mount output
GNOME automounts any external partition not listed in /etc/fstab.
To stop it, add it to /etc/fstab with “noauto”, or toggle off automount in GNOME Disks.
It is done by your Desktop Environment. By default most DEs will mount (filesystems on) removable drives when they are plugged in unless it is explicitly turned off. The definition of “removable” is a bit blurry, but USB connected drives are normally considered removable.
You can disable automount with
gsettings set org.gnome.desktop.media-handling automount false
Technically mounting is handled by the UDisks2 system service which monitors for and announces new devices and performs privileged operations on behalf of non-privileged users. See man udisks.
I recommend you have a mount specification in /etc/mount for any USB-attached drive and, more importantly, I recommend you choose a mount root different from “expected” system defaults. That way, built-in system logic will never have the opportunity to interfere with your mount process preferences.
For me, my non-system drives (internal or USB-attached) are all mounted under /site.
ID-3: /dev/sdc type: USB vendor: Western Digital model: WD My Book 25EE
size: 3.64 TiB type: N/A serial: 57583332443630455559524A rev: 4009
scheme: GPT
Sample entry for non-primary disk:
(with default no-mount at boot)