0

I have SD cardreader in my netbook, and it is not automatically mounted on startup. If I disable default settings in gnome-disks and check mount automatically, I will get error

Error mounting system-managed device /dev/sdb1: Command-line `mount "/media/janet/69eb572e-8b94-44a1-9682-b6ea4ee9ac9b"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail or so

in the next monut.

But I solved it changing x-gvfs-show to comment=x-gvfs-show. Now I can't write on my SD card. How to mount it correctly? Maybe there is an option to mount it on startup? But how to do it to make it available writeable for user?

David Foerster
  • 36,264
  • 56
  • 94
  • 147
yanpas
  • 543
  • 4
  • 16

1 Answers1

1

The solution is this line in /etc/fstab

UUID=C906-C3E4 /mnt/C906-C3E4 vfat suid,dev,exec,auto,async,rw,user,uid=1000,gid=1000,comment=x-gvfs-show,comment=x-gvfs-name=CardReader 0 0
yanpas
  • 543
  • 4
  • 16
  • 2
    You will make your system pause on boot if your card will be unplugged, thus you should change option auto to noauto and mount it later on, maybe in /etc/rc.local. – madneon Mar 20 '15 at 16:18
  • @madneon The problem is that if it won't be mounted automaticly - after resume from suspend I will be asked to enter root password to mount it. Is there any other solution? – yanpas Mar 20 '15 at 20:53
  • Did you tried with rc.local? – madneon Mar 20 '15 at 21:25
  • @madneon Yes. There are problems with dispalying it in user interface and others. Is there a way to do it in user's autostart? Something like open SD card with nautilus and close nautilus. The card now is mounted, but disabled. Don't know command how to enable it... – yanpas Mar 20 '15 at 21:32
  • What problems are there? With permissions? – madneon Mar 20 '15 at 21:34
  • @madneon Yes, but I have just dealed with them: I mount it to directory with chmod 700 and the ownership of my user and with options like in my answer. Now I don't know how to make SD card be displayed in user interface (comment=x-gvds-show doesn't work). And do I need root rights to unmount it? – yanpas Mar 20 '15 at 21:43