Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-03-02 12:05:06

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

[SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

Hello, I tried to find ability to automount SD Card on X220 Thinkpad using Fedora 37 XFCE 4.18 (git build). I can't mount it automatically, even with all mount removable device checked on Xfce4-settings...

Is there anyway to automount it after boot? Thank you

ANSWER see ToZ answer : https://forum.xfce.org/viewtopic.php?id=16563#p71211

Last edited by BenyaminL (2023-03-12 15:03:56)

Offline

#2 2023-03-02 12:46:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

BenyaminL wrote:

Hello, I tried to find ability to automount SD Card on X220 Thinkpad using Fedora 37 XFCE 4.18 (git build).

If you have manually built thunar, what configure/autogen parameters did you use? What was the final output when running this command?
Did you also build thunar-volman?

I can't mount it automatically, even with all mount removable device checked on Xfce4-settings...

Is the thunar daemon process running? Is thunar running?

ps -ef | grep -i thunar

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-03-03 03:30:57

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

ToZ wrote:
BenyaminL wrote:

Hello, I tried to find ability to automount SD Card on X220 Thinkpad using Fedora 37 XFCE 4.18 (git build).

If you have manually built thunar, what configure/autogen parameters did you use? What was the final output when running this command?
Did you also build thunar-volman?

I can't mount it automatically, even with all mount removable device checked on Xfce4-settings...

Is the thunar daemon process running? Is thunar running?

ps -ef | grep -i thunar

The daemon is running, all other drive is auto mounted on boot (external drive on usb port), only SD Card. This also happen on non manual git build of XFCE.

I do build thunar-volman manually, and it has no problem, only the internal sd card reader on X220 that doesn't automount on boot.

The configure flag is none, I use default from the docs.xfce.org

Is there any other thing I should check?

Thank you for replying

Offline

#4 2023-03-03 11:04:45

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

Is udevadm registering the insertion of your sd card?

udevadm monitor

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2023-03-04 11:09:47

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

ToZ wrote:

Is udevadm registering the insertion of your sd card?

udevadm monitor

Seems it does, when added, and when removed

$ sudo udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[217.941460] remove   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1 (block)
KERNEL[217.941510] remove   /devices/virtual/bdi/179:0 (bdi)
KERNEL[217.941812] remove   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
UDEV  [217.948606] remove   /devices/virtual/bdi/179:0 (bdi)
UDEV  [217.949112] remove   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1 (block)
UDEV  [217.951229] remove   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
KERNEL[217.952394] unbind   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[217.952462] remove   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV  [217.953704] unbind   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV  [217.954340] remove   /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[219.801832] add      /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
KERNEL[219.803160] add      /devices/virtual/bdi/179:0 (bdi)
KERNEL[219.805020] add      /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
KERNEL[219.805063] add      /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1 (block)
KERNEL[219.805091] bind     /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV  [219.805279] add      /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)
UDEV  [219.825640] add      /devices/virtual/bdi/179:0 (bdi)
UDEV  [219.889237] add      /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0 (block)
UDEV  [220.022094] add      /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1 (block)
UDEV  [220.030346] bind     /devices/pci0000:00/0000:00:1c.4/0000:0d:00.0/mmc_host/mmc0/mmc0:0001 (mmc)

Offline

#6 2023-03-04 13:15:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

Hmmm. How is the sdcard formatted? Do you have the proper drivers for the filesystem installed? Are you able to mount it manually?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2023-03-04 15:57:33

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

ToZ wrote:

Hmmm. How is the sdcard formatted? Do you have the proper drivers for the filesystem installed? Are you able to mount it manually?

It's exFAT and I can manually mount it, just I want it to be mount automatically after login/boot, rather than manually right click then mount each time

Offline

#8 2023-03-04 16:45:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

In that case, why not put an entry for it in /etc/fstab?

Or you might be able to use "gio mount ..." and create an autostart entry.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2023-03-06 05:05:02

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

ToZ wrote:

In that case, why not put an entry for it in /etc/fstab?

Or you might be able to use "gio mount ..." and create an autostart entry.


gio mount can't seems to work with the SD Card. I can't find any example for mounting for SD Card, only ftp, ssh, and mtp

[ben@TP-X220 ~]$ gio mount /dev/mmcblk0   /run/media/ben/BEN64
gio: file:///dev/mmcblk0: volume doesn’t implement mount
gio: file:///run/media/ben/BEN64: volume doesn’t implement mount

Offline

#10 2023-03-06 17:46:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

With the card in the computer and mounted, can you run:

gio mount -li

...and post back the content specific this mount?

How about using /etc/fstab if it is always attached?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2023-03-12 03:15:24

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

Drive(1): EC2QT
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/mmcblk0'
  themed icons:  [drive-removable-media-flash-sd]  [drive-removable-media-flash]  [drive-removable-media]  [drive-removable]  [drive]  [drive-removable-media-flash-sd-symbolic]  [drive-removable-media-flash-symbolic]  [drive-removable-media-symbolic]  [drive-removable-symbolic]  [drive-symbolic]
  symbolic themed icons:  [drive-removable-media-symbolic]  [drive-removable-symbolic]  [drive-symbolic]  [drive-removable-media]  [drive-removable]  [drive]
  is_removable=1
  is_media_removable=1
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=shutdown
  sort_key=00coldplug/12removable/mmcblk0
  Volume(0): BEN64
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     class: 'device'
     unix-device: '/dev/mmcblk0p1'
     uuid: '5632-1A7E'
     label: 'BEN64'
    uuid=5632-1A7E
    themed icons:  [media-flash-sd]  [media-flash]  [media]  [media-flash-sd-symbolic]  [media-flash-symbolic]  [media-symbolic]
    symbolic themed icons:  [media-flash-symbolic]  [media-symbolic]  [media-flash]  [media]
    can_mount=1
    can_eject=1
    should_automount=1
    sort_key=gvfs.time_detected_usec.1678524401549964

It's the output of the gio mount -li

Sometimes I just don't want a kernel panic I guess? Isn't it when we suddenly unplug without umount first, cause kernel panic?


EDIT: oh seems it doesn't cause panic, just force automount. Interesting. but why GIO can't automount it?

Last edited by BenyaminL (2023-03-12 03:22:33)

Offline

#12 2023-03-12 09:52:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

Does the following command work to automount it?

gio mount -d /dev/mmcblk0p1

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#13 2023-03-12 14:49:52

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: [SOLVED : Via /etc/fstab] How to automount SD Card on SD card Port

ToZ wrote:

Does the following command work to automount it?

gio mount -d /dev/mmcblk0p1

Wow, yes, ah... I always write the help in wrong way, that's why I can't look into the help manual... I kept running gio mount help rather than gio help mount. Now I can see all the flags.

Thanks for the help! This should be solvable at least via startup or fstab. I will opt with fstab for now, but at least my curiosity about gio is solved. Thanks!

*just the auto mount isn't solveable hmm

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 599.88 KiB (Peak: 616.73 KiB) ]