Automount SD card when logging on as non-root?

Everything about X, Gnome, KDE, ... and everything running on it

Automount SD card when logging on as non-root?

Postby littlebigman » 2017-04-10 08:03

Hello

I'm running LXDE Debian 8.7.

The SD card is displayed automatically on the desktop when logged on as root, and not when I log on as non-root, although the SD card is successfully detected by Linux:
Code: Select all
# fdisk -l

Disk /dev/sdb: 3.7 GiB, 3957325824 bytes, 7729152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1        8192 7729151 7720960  3.7G  b W95 FAT32


Code: Select all
# lhw

*-usb:0
     description: Mass storage device
     product: Mass Storage Device
     vendor: Generic
     physical id: 5
     bus info: usb@4:5
     logical name: scsi6
     version: 1.00
     serial: 058F63666433
     capabilities: usb-2.00 scsi emulated
     configuration: driver=usb-storage maxpower=100mA speed=480Mbit/s
   *-disk
        description: SCSI Disk
        physical id: 0.0.0
        bus info: scsi@6:0.0.0
        logical name: /dev/sdb
        size: 3774MiB (3957MB)
        capabilities: partitioned partitioned:dos
        configuration: logicalsectorsize=512 sectorsize=512
      *-volume
           description: Windows FAT volume
           vendor: PWRSHOT
           physical id: 1
           bus info: scsi@6:0.0.0,1
           logical name: /dev/sdb1
           version: FAT32
           serial: 0101-0014
           size: 3762MiB
           capacity: 3770MiB
           capabilities: primary fat initialized
           configuration: FATs=2 filesystem=fat label=CANON_DC


I tried this, but it didn't work:
https://www.ab9il.net/linux/pcmanfm-usb-mount.html

What should I try to have the SD card show up on the desktop without doing anything?

Thank you.
littlebigman
 
Posts: 12
Joined: 2008-01-16 21:30

Re: Automount SD card when logging on as non-root?

Postby bw123 » 2017-04-10 16:56

I'm kind of old and backwards, I never liked the "drives as desktop icons" idea, instead of fooling with policykit or xml/udiska and all that. I just add my removeables to fstab with option 'users' and mount them when I need them. Seems to work fine with dolphin, mounts with a click.

Have you tried adding it to fstab?

Code: Select all
UUID={GET_IT_FROM BLKID} /media/sdcard auto rw,users,noauto 0 0
User avatar
bw123
 
Posts: 2466
Joined: 2011-05-09 06:02
Location: TN_USA


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable