Ubunutu mate Ubuntu 21.10 ssd drives dont automount why?

Hi,
I am running ubunutu mate 21.10 . I have installed two big ssd disks. But to use them I first have to go to caja and mount them by clicking on them.
Why doesnt it automount internal ssd disks?

Second, I cant find a way to make them automount, except for vi and fstab, which is not so userfriendly.

Found this but this doesnt do anything:
gsettings set org.mate.media-handling automount true

Hi Hanscees,

Welcome to the Ubuntu-MATE community :slight_smile:

About automounting, there is a graphical way to do that.

Open a terminal and type (or cut & paste)

sudo apt install gnome-disk-utility

It will be known in the menu and in the configuration-centre as 'disks'
CLick on it and there you can select a disk and by clicking on the 'cogs' icon you can change the mount options.

Disks should already be installed, unless the OP explicitly uninstalled it, so the procedure should be even simpler.

1 Like

Internal SSDs are fixed drives using IDE/SATA/SAS/NVME/PCI-E/what-ever-else fixed interface.
For me it is expected that they do not automount.
Automount works normally for removable drives like USBs.

If you want automount for fixed drives, then add them to /etc/fstab.
Consult with this wiki page about syntax.

1 Like

I want them to be automatically and always mounted. They are not. Why not?

I made a mistake, ubunutu mate doesnt mount my sata drives, I typed ssd drives. Sorry about that.

Here is some kernel logging. As you can see kernel first detects my internal ssd disk and mounts it.

After that it detect two sata disks, but does not mount them. Why not?

Arent sata drives supposed to be mounted by default?

Nov 26 14:58:03 hanscees-2021 kernel: [ 0.877408] acpi PNP0C14:03: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:01)
Nov 26 14:58:03 hanscees-2021 kernel: [ 0.877771] xhci_hcd 0000:00:14.0: xHCI Host Controller
Nov 26 14:58:03 hanscees-2021 kernel: [ 0.877776] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
Nov 26 14:58:03 hanscees-2021 kernel: [ 0.878461] ahci 0000:00:17.0: version 3.0
Nov 26 14:58:03 hanscees-2021 kernel: [ 0.878744] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 6 ports 6 Gbps 0x3f impl SATA mode
Nov 26 14:58:03 hanscees-2021 kernel: [ 0.878747] ahci 0000:00:17.0: flags: 64bit ncq sntf clo only pio slum part ems deso sadm sds

Nov 26 14:58:03 hanscees-2021 kernel: [ 0.985566] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.222193] usb 1-7: new low-speed USB device number 2 using xhci_hcd
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.264427] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.264840] ata4: SATA link down (SStatus 4 SControl 300)
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.264883] ata6: SATA link down (SStatus 4 SControl 300)
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.264914] ata3: SATA link down (SStatus 4 SControl 300)
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.265000] ata5: SATA link down (SStatus 4 SControl 300)
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.265084] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.265227] ata1.00: ATA-9: WDC WD40EFRX-68WT0N0, 82.00A82, max UDMA/133
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.265233] ata1.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 32), AA
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.265757] ata2.00: ATA-10: WDC WD60EZAZ-00SF3B0, 80.00A80, max UDMA/133
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.265767] ata2.00: 11721045168 sectors, multi 16: LBA48 NCQ (depth 32), AA
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266028] ata1.00: configured for UDMA/133
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266289] scsi 0:0:0:0: Direct-Access ATA WDC WD40EFRX-68W 0A82 PQ: 0 ANSI: 5
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266471] ata2.00: configured for UDMA/133
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266667] sd 0:0:0:0: Attached scsi generic sg0 type 0
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266691] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)

Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266698] sd 0:0:0:0: [sda] 4096-byte physical blocks
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266712] sd 0:0:0:0: [sda] Write Protect is off
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266716] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266736] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.266999] scsi 1:0:0:0: Direct-Access ATA WDC WD60EZAZ-00S 0A80 PQ: 0 ANSI: 5
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.267316] sd 1:0:0:0: Attached scsi generic sg1 type 0
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.267488] sd 1:0:0:0: [sdb] 11721045168 512-byte logical blocks: (6.00 TB/5.46 TiB)
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.267496] sd 1:0:0:0: [sdb] 4096-byte physical blocks
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.267512] sd 1:0:0:0: [sdb] Write Protect is off
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.267516] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.267539] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.335544] sda: sda1 sda2 sda3 sda4 sda5
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.338290] sdb: sdb1
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.370050] sd 0:0:0:0: [sda] Attached SCSI disk
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.379271] usb 1-7: New USB device found, idVendor=1a2c, idProduct=4094, bcdDevice= 1.10
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.379272] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.379273] usb 1-7: Product: USB Keyboard
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.379274] usb 1-7: Manufacturer: SEMICO
Nov 26 14:58:03 hanscees-2021 kernel: [ 1.382094] sd 1:0:0:0: [sdb] Attached SCSI disk

Nov 26 14:58:03 hanscees-2021 kernel: [ 2.356195] EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
Nov 26 14:58:03 hanscees-2021 kernel: [ 2.546946] EXT4-fs (nvme0n1p2): re-mounted. Opts: errors=remount-ro. Quota mode: none.

Hi, I have solved this by hand by adding to fstab

UUID=01D0EA52D22A9BD0 /media/hanscees/BBIG2015 auto nosuid,nodev,nofail,x-gvfs-show 0 0
UUID=e55b86ad-6078-4ba7-9fd9-908a67a7efae /media/hanscees/6T-schijf-F auto nosuid,nodev,nofail,x-gvfs-show 0 0

but why doesnt mate linux just add sata disks? This is last millenium stuff.

but why doesnt mate linux just add sata disks?

First of all: Linux is NOT Windows

Second: Disks are not mounted, only filesystems are mounted, one partition at a time and only supported filesystems ofcourse.

Third: It has nothing to do with SATA , SCSI, IDE or whatever interface-type. It has everything to do with filesystems.

This is last millenium stuff.

The fact that it is 'last millennium' does not equal to 'good practice'.

I am not going to put this up for discussion but take it from me, or rather find out for yourself, that willy-nilly automounting filesystems on fixed drives is 'bad practice'.

The fact that Linux doesn't automount filesystems on fixed drives is on purpose, not because it can't.

You will see that if you mark the drives as removable in your BIOS (as if they were in a caddy) they will be automounted.

As far as i can see from the UUID, one of your fixed drives is formatted in MS-Windows and probably has an NTFS partition ? Would you really have it automounted ? What about permissions (which NTFS does not support) ?

I think it is rather user-unfriendy to let users shoot themselves in the foot with automounting filesystems on every fixed disk. I know I certainly would not tolerate any system that would do that.

Your filemanager (Caja) detects the disks anyway and presents them in the sidepanel ready to be mounted with one click. That is perfectly fine and user-friendly and it should not go even one step further than that.

Again, I am not going to discuss the why or why not. If you do some research yourself, you will find the answer anyway. :slightly_smiling_face:

oh, BTW, Drop the 'user-friendly' argument:
If you are technical enough to open your computercase and install fixed drives, partition them and format them, then you're also technical enough to edit fstab and choose sane mountpoints for your fixed drive partitions.

3 Likes

Thank you for clearing up the why. I have been using Linux since floppy-disk firewalls and did not know that.

Second, if that is the policy it would be an improvement if caja, or some other Linux part, which presents buttons to mount the disks, would add an option:

  • do you want to mount this disks / partition always, do you want it added to fstab?

That would have helped me. And sure ntfs is not ideal, but it could do that with the ext4 partition.

User friendly means to make things easy. Adding partitions on fixed disks to your system should not be a puzzle.

That option is already there:
configuration-center -> disks -> cogs-icon -> mount-options

Or in dutch:
Instellingencentrum -> schijven -> tandwiel-icoon -> koppelopties bewerken

2 Likes

wow, thanks!
This has been evading me for 2 years now :slight_smile:
Hope it will help people searching for this . This is the solution I was looking for.

2 Likes