
Sudo mount -o rw,users,umask=000 /dev/sdb1 /data # mount with 'full' permissionsĮdit 3: Please edit your original question, where you can use formatting tools.Click the image to view full size screenshot.ĭownloadThe software license is Freeware, feel free to use it, but do so at your own risk. If it does not work, you can try the special mounting method, that I showed above, but modified for the current mountpoint, sudo umount /data # unmount It should create a directory /data/app on the USB drive with the content (the directory tree and the files).

You can inspect how it is mounted with the command mountīut it will display a lot of information (about everything that is mounted).Īfter finding out that the pendrive is automatically mounted on /data, the following command line should work, if the USB drive is mounted read/write and with permissions for your regular user ID. 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
