When I plug a usb in there in no mounted device in the /media. How can I see the content of the plugged in usb device ?
You need to mount it manually (if it is not listed in /etc/fstab).
First create a folder in /media :
$ mkdir /media/myCoolStuff
Find out the name of the partition you want to mount :
$ ls /dev/sd*
You will get a list such as :
/dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1
(it may vary depending of your exact devices and partitions plugged on your server).
/dev/sda corresponds to your main hard drive (e.g the sd card for a raspberry pi).
/dev/sda1 is the first partition on this drive. … Now what you are interested with is probably
/dev/sdb1 which should be the first partition on your usb device. (N.B. : depending on your exact setup, maybe it is
Mount the partition to the folder you created :
$ mount /dev/sdb1 /media/myCoolStuff
Look at the content inside the partition :
$ ls /media/myCoolStuff
If you want to unmount it (recommended before unplugging your USB device - or if you realize it was not the partition you were looking for) :
$ umount /dev/sdb1
Hope it helps !
I do not see any sdb* in /dev . I tested it with a external hard disk and a pen drive.
There is only sda* listed.
After restart it worked.