What does handle SD card automount?
#1
Hi!

I've read multiples times that the SD is mounted « on demand », what does that mean and what handles it? I've found nothing in the logs (tried `sudo journalctl --grep mount`, `sudo journalctl --grep media` and `sudo journalctl --grep sd1`).

I've spotted a bug in the automount behavior, sometimes it appends a `1` in the directory name (under /media/mobian) after the fs label.

I mean my SD card is named `sd` and it sometimes gets mounted as `/media/mobian/sd` and sometimes as `/media/mobian/sd1`.

It's bad because lollypop and syncthings are loosing it when it has the wrong name.

I know I could fix it by adding it to `/etc/fstab` but I'd prefer understanding the issue and ultimately making the system easier to use for everyone.
  Reply
#2
OK it's udisks2 that handles the automount, and it can be manipulated:

    udisksctl unmount -b /dev/mmcblk0p1
    udisksctl mount -b /dev/mmcblk0p1

I tried to `rmdir` the abandonned directory in /media/mobian so now `udisksctl mount` does not need to append the `1`.

I'll see if it lasts long of if there's an event that make `/media/mobian/sd` stay at reboot forcing udisks2 to create `/media/mobian/sd1`.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  APN settings not working with new operator SIM card user641 1 1,387 03-01-2023, 04:43 PM
Last Post: anonymous
  New SD card won't auto-mount, will only mount as read-only 3x5co 3 2,357 07-16-2022, 02:28 PM
Last Post: dachalife
  Apps and SD Card biketool 2 2,356 03-06-2022, 09:47 AM
Last Post: biketool
  How to flash a µSD-Card with Balena Etcher walter1950 1 1,615 01-22-2022, 02:06 AM
Last Post: bcnaz
  How to insert a SIM-Card and/or a µSD-Card walter1950 0 1,162 01-21-2022, 02:46 PM
Last Post: walter1950
  When I set SD card as /home, PP can't complete boot nelstomlinson 4 3,517 12-27-2021, 03:06 PM
Last Post: nelstomlinson
  Persistently mount SD card? DarkManiels 5 6,711 11-21-2020, 08:28 PM
Last Post: HLing
  weird SIM card question RodneyMyers 4 5,541 10-16-2020, 01:47 PM
Last Post: ThrillGates
  Activating a sim card bcnaz 4 6,422 08-08-2020, 06:37 PM
Last Post: bcnaz
  How to mount an SD card? gizmuth 4 6,358 07-15-2020, 06:41 AM
Last Post: a-wai

Forum Jump:


Users browsing this thread: 1 Guest(s)