Mount an USB key drive VFAT file system as user, or at least having writing rights on its contents
1
vote
2
answers
2498
views
I'm trying to mount a
VFAT
file system placed on a USB key drive, so that I can manipulate the drive contents.
12:10 boffi@debian:~ $ lsblk | grep sdc
sdc 8:32 1 7.5G 0 disk
└─sdc1 8:33 1 7.5G 0 part
12:10 boffi@debian:~ $ grep sdc /etc/fstab
/dev/sdc /home/boffi/key vfat noauto,rw,user 0 0
/dev/sdc1 /home/boffi/key vfat noauto,rw,user 0 0
12:11 boffi@debian:~ $ mount /dev/sdc1 /home/boffi/key
mount: /home/boffi/key: must be superuser to use mount.
dmesg(1) may have more information after failed mount system call.
12:11 boffi@debian:~ $
If I use sudo
everything is fine, except I have no writing rights on the contents...
12:17 boffi@debian:~ $ sudo mount /dev/sdc1 /home/boffi/key
[sudo] password for boffi: ***************
12:17 boffi@debian:~ $ ls -l key | head -3
total 27600
drwxr-xr-x 6 root root 16384 Oct 6 2013 00_roba_dal_mac/
drwxr-xr-x 4 root root 16384 Oct 12 2013 00_shenker/
12:17 boffi@debian:~ $
Of course I'm doing something wrong, could you please help me?
Asked by gboffi
(1376 rep)
Aug 17, 2022, 10:23 AM
Last activity: Aug 18, 2022, 03:39 PM
Last activity: Aug 18, 2022, 03:39 PM