You are not logged in.
Using BunsenLabs GNU/Linux 8.7 (Hydrogen)
I'm trying to mount an mp3 player as a user. When I insert mp3 player (Sansa Clip) into usb Linux mounts.
I tried a couple of entries in /etc/fstab
UUID=44AD-4794 /media/clip vfat rw,noauto,user,sync 0 0
UUID=44AD-4794 /media/clip vfat rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2 0 0
The first entry I can umount if I mount, but not if auto mounted
The second entry I can't mount or umount only auto mounts
The files in both are owned by user
I'm not familiar with fstab options, especially in the second example. I looked on the NET, but couldn't find an explanation. Appreciate a link to info. I would like to be able to mount and umount as a user.
===
Mod Edit: Please use code tags.
Last edited by Sector11 (2017-08-18 23:55:48)
Offline
Have you looked in Thunar Preferences?
Edit > Preferences > Advanced > Volume Management(configure) > Multimedia
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
I have a Sansa Clip and as I use it for listening to poscasts while on the move I hook it up to my computer at least once a day to transfer files. I have not tweaked any settings to do this.
The only issue I have is it does not auto-mount every time. It only does so occaionally. It always shows up in Thunar so I can always make it mount by clicking on it in Thunar. I think this issue might be due to me using an USB3 hub built into my monitor. Some USB-sticks and SD-cards refuse to show up at all in Thunar unless I use one of the USB2 ports on the computer itself.
Not much help but the USB3 vs USB2 thing may be a lead to follow up.
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
The stock BunsenLabs desktop should automount most media devices, as @Martin notes.
If you open up a terminal window and run `dmesg -w` then plug the Sansa Clip device in, are any new messages shown in the terminal window afterwards?
If so, please post them here.
Offline
This is my /etc/fstab entry:
UUID=44AD-4794 /media/clip vfat user,rw,nosuid,nodev,uid=1000,gid=1000,utf8=1,noauto,dmask=007 0 0
With this entry I am not seeing linux load the Clip+ as I plug it into the usb. I can mount and umount as user. Some of the entries I mentioned earlier in fstab (second entry), I don't understand a number of the options.
This is the message I got with dmesg -w after I plugged the Sansa Clip+ in.
[12592.936043] usb 1-7: new high-speed USB device number 10 using ehci-pci
[12594.928046] usb 1-7: new high-speed USB device number 11 using ehci-pci
[12595.061782] usb 1-7: New USB device found, idVendor=0781, idProduct=74d1
[12595.061793] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12595.061799] usb 1-7: Product: SanDisk Sansa Clip+
[12595.061804] usb 1-7: Manufacturer: SanDisk
[12595.061808] usb 1-7: SerialNumber: 8207FC187292C1A80000000000000000
[12595.068260] usb-storage 1-7:1.0: USB Mass Storage device detected
[12595.068494] scsi10 : usb-storage 1-7:1.0
[12596.068965] scsi 10:0:0:0: Direct-Access SanDisk Sansa Clip+ 8GB v01. PQ: 0 ANSI: 0
[12596.069436] scsi 10:0:0:1: Direct-Access SanDisk Sansa Clip+ 8GB v01. PQ: 0 ANSI: 0
[12596.070171] sd 10:0:0:0: Attached scsi generic sg8 type 0
[12596.070706] sd 10:0:0:1: Attached scsi generic sg9 type 0
[12596.076515] sd 10:0:0:0: [sdg] 15462400 512-byte logical blocks: (7.91 GB/7.37 GiB)
[12596.078588] sd 10:0:0:0: [sdg] Write Protect is off
[12596.078602] sd 10:0:0:0: [sdg] Mode Sense: 04 00 00 00
[12596.089351] sd 10:0:0:1: [sdh] Attached SCSI removable disk
[12596.090077] sd 10:0:0:0: [sdg] No Caching mode page found
[12596.090086] sd 10:0:0:0: [sdg] Assuming drive cache: write through
[12596.101475] sdg:
[12596.108124] sd 10:0:0:0: [sdg] Attached SCSI removable disk
Last edited by Head_on_a_Stick (2017-08-29 06:28:17)
Offline
This is my /etc/fstab entry:
UUID=44AD-4794 /media/clip vfat user,rw,nosuid,nodev,uid=1000,gid=1000,utf8=1,noauto,dmask=007 0 0
With this entry I am not seeing linux load the Clip+ as I plug it into the usb.
Yes, that's because the "noauto" option you have applied is causing Linux to not mount the device until requested.
See https://manpages.debian.org/jessie/moun … NT_OPTIONS & https://manpages.debian.org/jessie/moun … NT_OPTIONS for details about the available options (use `man 8 mount` to read that document on your machine).
Try removing the fstab line and rebooting, this should let BunsenLabs (gvfs) to mount it automatically and allow your normal user to write to it.
If that does not work, run the following command in a terminal and post the output that appears after you plug in the USB stick (as before):
udevadm monitor
Offline
I commented the fstab and plugged the mp3 player in, it didn't mount.
joe@BunsenLabs:~$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[1208.486196] add /devices/pci0000:00/0000:00:02.1/usb1/1-7 (usb)
KERNEL[1208.491620] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0 (usb)
KERNEL[1208.492482] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10 (scsi)
KERNEL[1208.492538] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/scsi_host/host10 (scsi_host)
UDEV [1208.497419] add /devices/pci0000:00/0000:00:02.1/usb1/1-7 (usb)
UDEV [1208.504517] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0 (usb)
UDEV [1208.509907] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10 (scsi)
UDEV [1208.511710] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/scsi_host/host10 (scsi_host)
KERNEL[1209.493828] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0 (scsi)
KERNEL[1209.493916] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0 (scsi)
KERNEL[1209.494046] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/scsi_disk/10:0:0:0 (scsi_disk)
KERNEL[1209.494121] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/scsi_device/10:0:0:0 (scsi_device)
KERNEL[1209.494435] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/scsi_generic/sg8 (scsi_generic)
KERNEL[1209.495001] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/bsg/10:0:0:0 (bsg)
KERNEL[1209.495035] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1 (scsi)
KERNEL[1209.495057] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/scsi_disk/10:0:0:1 (scsi_disk)
KERNEL[1209.495079] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/scsi_device/10:0:0:1 (scsi_device)
KERNEL[1209.495255] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/scsi_generic/sg9 (scsi_generic)
KERNEL[1209.495368] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/bsg/10:0:0:1 (bsg)
UDEV [1209.495661] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0 (scsi)
KERNEL[1209.498189] add /devices/virtual/bdi/8:112 (bdi)
KERNEL[1209.498581] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/block/sdh (block)
UDEV [1209.498892] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0 (scsi)
KERNEL[1209.500624] change /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/block/sdh (block)
UDEV [1209.502359] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/scsi_disk/10:0:0:0 (scsi_disk)
UDEV [1209.502486] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1 (scsi)
KERNEL[1209.503279] add /devices/virtual/bdi/8:96 (bdi)
UDEV [1209.508508] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/scsi_device/10:0:0:1 (scsi_device)
UDEV [1209.508927] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/scsi_device/10:0:0:0 (scsi_device)
UDEV [1209.510568] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/scsi_disk/10:0:0:1 (scsi_disk)
KERNEL[1209.511309] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/block/sdg (block)
UDEV [1209.512732] add /devices/virtual/bdi/8:96 (bdi)
UDEV [1209.515460] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/bsg/10:0:0:0 (bsg)
UDEV [1209.518107] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/bsg/10:0:0:1 (bsg)
UDEV [1209.518572] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/scsi_generic/sg9 (scsi_generic)
UDEV [1209.520906] add /devices/virtual/bdi/8:112 (bdi)
UDEV [1209.521651] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/scsi_generic/sg8 (scsi_generic)
UDEV [1209.557442] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/block/sdh (block)
UDEV [1209.590390] change /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:1/block/sdh (block)
UDEV [1209.721770] add /devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host10/target10:0:0/10:0:0:0/block/sdg (block)
Offline
I commented the fstab and plugged the mp3 player in, it didn't mount.
...
Did you set Thunar to automount devices, in Thunar Preferences?
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Thunar is set to automount devices.
Plugged in clip: didn't automount.
Can mount and umount in Thunar.
Offline
Thunar is set to automount devices
Is the option to automount music playing devices enabled?
Thunar menu → Edit → Preferences → Advanced → Configure the management of removable drives and media.
Do you have the thunar-volman & gvfs-backends packages installed?
Offline
Thanks
I checked the boxs in preferences > advanced > removable storage
It seems to work now.
Another issue I have in mounting the mp3 player: the player gets mounted in /media/joe/CLIP. I created a label clip for player. Why doesn't it mount it as /media/CLIP?
Offline