I’ve reformatted the SD card to ext4 and after a reboot it is automatically mounted as /media/e8ce39c2-3d66-48cf-bd84-894b29bdef55.
Hmm, there’s no /etc/auto.master and I haven’t named the sd card either. Also, I don’t want it to be mounted automatically.
Also, there’s no entry for it in /etc/fstab.
So why is the card mounted automatically and why does it have that name?
I don’t do it from command line, but with gparted you can label a partition. I don’t remember off the top of my head how to, but you can change the label on an EXT4 partition. That’s not really important since you can just mount the card using fstab.
I’m sure it will. I was just a bit puzzled by no auto.master file. The /etc/udisks-glue.conf pretty much explains it all. I originally thought I’d have to deactivate auto mount, but with your command I can just override it.
I’m fine with the UUID, so I won’t label the card. I’m also ok with adding it to fstab. My point was that I didn’t know to look at udisk-glue.conf instead. I’ve never used any auto mount systems, so my knowledge in that area is limited.
mke2fs actually creates a filesystem, so it overwrites anything that is there. In this case, it’s fine to use it to “add” a label, but the correct way is to use:
tune2fs -L your_label /dev/???
This does nothing but add/change the label, leaving the existing data intact.