-1

On ubuntu 22.04.4 I am trying to mount a partition as read/write. The following command seems to work:

sudo mount -o rw,user,uid=1000,umask=007,exec /dev/nvme0n1p4 /media/Work/

but I want to add it so /etc/fstab so it is mounted automatically. The following fstab entry however does not work:

/dev/nvme0n1p4 /media/Work/ fat32 rw,user,uid=1000,umask=007,exec 0 0

It will make the system go to emergency state. How to fix the fstab entry?

6

1 Answer 1

2

First, find out the partition type. This you can do by mounting the partition using the command that works (sudo mount -o rw,user,uid=1000,umask=007,exec /dev/nvme0n1p4 /media/Work/).

Then use the command: df -T OR mount | grep "^/dev/nvme0n1p4". Use the "Type" to create an appropriate entry in the /etc/fstab.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .