16.04 - Ways to mount a Sd card / Usb drive in a different location - Ask Ubuntu
i wondering if can mount sd card or usb stick in different location rather /media if there way please tell me
you can use (assuming desired directory ~/usb
, current mount point /media/xcy/ccd3-9e9d
):
$ mkdir ~/usb $ sudo mount --bind /media/xcy/ccd3-9e9d ~/usb
then can use both of these 2 directories, or here way (assuming device name /dev/sdb1
)
$ umount /dev/sdb1 # unmount if it's mounted $ mkdir ~/usb # make dir if isn't exist $ sudo mount /dev/sdb1 ~/usb
then can use ~/usb
.
you can find out device name , mount point mount
(without options or arguments), in case, /dev/sdb1
, /media/xcy/ccd3-9e9d/
when insert usb drive.
Comments
Post a Comment