Mount properly USB

Hi,

I’m trying to mount properly an usb drive. In fstab, I’ve put this :

 /dev/sda1 /mnt/usb001 defaults,umask=007,gid=46

put when I browse with Kodi, it’s displayed as “7,4 gb drive” and I can’t use it.

The message said that there is no write permissions or not a proper name.
So can I name it ? How to properly mount it ?
Thanks.

Is it formatted already? It should mount automatically

I’ve found a post from @sam_nazarko who said that better to use fstab for a permanent use…

umask=007, gid=46 ?

Depending on what file system it is you probably want to use mount options such as these:

defaults,uid=1000,gid=1000,fmask=0111,dmask=0000

Not all file systems will like fmask and dmask, so remove them if it causes an issue.

Hi raspdealer,

I see two problems here:

  1. you havent specified the USB device filesystem used in the fstab entry
  2. instead using the partion’s device file use the block id instead; the block id is always unique whereas the device file can change depending on the number of USB devices and result of critical races while detection.

Just an example, how the /etc/fstab entry looks at my system:

UUID=3a07a91e-7201-4e27-979c-7ea7cdbee497       /mnt/hdd1       ext4    rw,nosuid,nodev,uhelper=udisks  0       0

The UUID you get with the command blkid.