
The automatic mounting may or may not make it read-write for the regular user, but it will usually be possible to write with superuser privileges, with sudo. You will find it with the following commands, df -h Rm /mnt/sd1/hello.txt # test removing (as user)Įcho 'I am a user' > /mnt/sd1/user.txt # test writing (as user)Įdit 1: Sometimes (I would even say often) the partition on the USB drive will be mounted automatically. Ls -l /mnt/sd1 # check permissions of the content Sudo bash -c "echo 'Hello World' > /mnt/sd1/hello.txt" # test writing with sudoĬat /mnt/sd1/hello.txt # test reading (as user) Sudo mount -o rw,users,umask=000 /dev/sdb1 /mnt/sd1 # example Sudo mount -o rw,users,umask=000 /dev/sdxn /mnt/sd1 # general: mount Sudo umount /dev/sdxn # general: only if already mounted (with bad permissions).

You may want to make sure that you are allowed to write to the USB pendrive from a regular user by the following method, sudo mkdir -p /mnt/sd1 # only if you want a new mountpoint sudo mkdir /mnt/sdn # only the first time Text after # is a comment (not used as a command). First you should create a mountpoint, or use one that already exists. Instead you should mount it and write to the file system at the mountpoint.


But you should not write directly to the device.

Where x is the drive letter and n is the partition number, In your case it seems to be /dev/sdb1. The device description for the partition on the USB drive is /dev/sdxn
