1

I've been trying to get my USB drive to mount without having to launch into the GUI. I'm using a raspberry pi 3b+ with raspian OS. My current fstab entry for the usb drive is

UUID=845-CG11 /media/datalog vfat auto,nofail,noatime,users,rw 0 0

This works fine when I launch into the GUI, however, I need to access this drive from a python script that will run automatically after boot. Any suggestions?

6
  • Shouldn't that be 'UUID=' instead of 'UUID-'? And are you sure the UUID is correct? Looks more like a 'LABEL' to me.
    – Dirk
    Aug 28, 2019 at 14:10
  • It's just a typo. In the fstab it's =
    – Ozymandias
    Aug 28, 2019 at 14:12
  • See the 2nd comment I added above.
    – Dirk
    Aug 28, 2019 at 14:12
  • That's the UUID. The above does mount the device in the GUI. It just doesn't work in CLI mode
    – Ozymandias
    Aug 28, 2019 at 14:16
  • Are you sure the mount in the gui is done through fstab and not through pcmanfm (which is doing that by default)?
    – Dirk
    Aug 28, 2019 at 14:57

1 Answer 1

1

The fstab was correct but the UUID was wrong. It was mounting in the gui because auto mount was on. Not because of the fstab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.