Can I use systemd to mount a USB memory (vfat) automatically???

Hi everybody!

I’m reading this articule and then I wondered, Can I use systemd to mount a USB memory automatically when I plug it in???

I modified /etc/fstab

/dev/disk/by-id/usb-General_USB_Flash_Disk_4400000000078171-0:0-part1            /mnt/Nell     vfat user,iocharset=iso8859-1,codepage=437,gid=users,umask=0002,utf8=true,nofail,**comment=systemd.automount** 0 0

but it didn’t do the trick then i mount it manually and mount mount it twice :frowning:

any one can give a hint or tell me what I’m doing wrong?

thanks in advance!

But when you plug in a USB Thumb Drive, the Device Notifier (its in the icon tray and has the USB symbol in it) pops up and allows you to mount it using Dolphin. You also use this to eject the media when done so it can be removed with no data loss. If you wanted a USB thumb drive to always be mounted for some reason, you could use the YaST / System / Partitioner to mount and add it to your fstab file. Why does not one of these operations work properly for you?

Thank You,

hi jdmcdaniel3 thanks for answering me

both of them work just fine, the thing is that I’m learning about systemd I wanted to try new things! :slight_smile:

Here is one good link about systemd and openSUSE 12.1: openSUSE News

And I have a blog post on adding in a after.local boot option here: systemd and using the after.local script in openSUSE 12.1 - Blogs - openSUSE Forums

Its OK to try different things though I am not sure I would do anything for USB thumb drives.

Thank You,