Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Automount SD card when logging on as non-root?

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
littlebigman
Posts: 23
Joined: 2008-01-16 21:30

Automount SD card when logging on as non-root?

#1 Post by littlebigman »

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.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

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

#2 Post by bw123 »

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
resigned by AI ChatGPT

Post Reply