Having problems using the mount command
Nils Kassube
kassube at gmx.net
Sun Aug 23 09:16:53 UTC 2020
Bob wrote:
> I am trying to mount /dev/sda5 to a mount point in my home directory.
> I can get it mounted but it is read-only. The command
>
> robert at MARS:~$ sudo mount --read-write /dev/sda5
> /home/robert/FAT32SHARE
>
> mounts it but read-only.
>
> Putting the following in fstab has the same problem
>
> LABEL=FAT32SHARE /home/robert/FAT32SHARE vfat defaults
> 0 2
>
> from what I read 'defaults' should set read-write.
>
> Currently I have to use "files" then click "other Locations" then
> click "FAT32SHARE" and it gets mounted at /media/robert/FAT32SHARE
> read-write.
For a vfat partition you can specify the owner with the mount command.
Try
sudo mount -ouid=$UID /dev/sda5 /home/robert/FAT32SHARE
Nils
More information about the ubuntu-users
mailing list