Mount USB stick.
Back to REF main.
Created in 2019 ipro 0625v00c.
Quick ref.
lsblk
- plug in usb stick
lsblk
pmount /dev/sdh1 greener
- do work
pumount /dev/sdh1
- pull out usb stick
Details.
Say you want to mount a usb stick and give it the
label greener.
If needed:
sudo apt-get install pmount
Do
lsblk
Plug the usb stick in and do
lsblk
again.
Note the new device and its partition.
Let's say the usb stick shows up as
/dev/sdh
and its single partition shows up as
/dev/sdh1
Do
pmount /dev/sdh1 greener
Find it at a new dir:
/media/greener
If you're pat, it will have perms and owner
rwx --- --- pat:pat
Do your work.
Do
sync
for safety?
Do
pumount /dev/sdh1
to unmount it.
The directory
greener
will disapper.
Pull out the usb stick.