I am on an Ubuntu 16.04.1 LTS system. I use udisksctl
command to mount and unmount my USB flash drive, but I sometimes eject it in nautilus. I can see the device in Disks utility even after ejecting.
I searched the site and found the question How do I mount ejected external USB flash Via terminal, but I could not find an answer to mount an ejected USB drive in the answers of that question.
Can you please explain to me how to mount an ejected USB drive without unplugging it?
The following will eject the USB device.
The following will mount the USB device without unplugging it.
Reference: http://www.upubuntu.com/2011/09/how-to-remount-usb-stick-without.html
Check your usb flash name with:
my sandisk example:
Now i know my sandisk is on bus 003 and device 005
Then you have to check your usb bus and port number with:
Now i know that bus 3 device 5 is on port 5 so we can go to :
and disable port:
or enable port:
When I inserted my usb drive I got this:
I then ejected it
I then unejected it as per this answer
You might want to check the disk by using fdisk