I booted a PC from a USB
flash drive
on which I had installed
Lubuntu Linux.
I also plugged another flash drive into the system, but I didn't know
where it was mounted.
The hard
disk drive (HDD) in the system was /dev/sda and I assumed the
Lubuntu Linux bootable drive was /dev/sdb and the new drive would be
/dev/sdbc. You can type for devlink in /dev/disk/by-id/usb*;
do readlink -f ${devlink}; done
at a
shell prompt, which you can obtain on a Lubuntu system by
clicking on the bird icon at the lower, left-hand corner of the
screen and selecting System Tools then Qterminal,
to see a list of the USB devices attached to a system.
lubuntu@lubuntu:~$ for devlink in /dev/disk/by-id/usb*; do readlink -f ${devlink}; done /dev/sdc /dev/sdc1 /dev/sdb /dev/sdb1 lubuntu@lubuntu:~$
You can find the location where a USB drive is mounted by issuing the mount command and then piping the output into the grep command to find information on just the particular drive in which you are interested.
lubuntu@lubuntu:~$ mount | grep sdc /dev/sdc1 on /media/lubuntu/EMTEC C450 type vfat (rw,nosuid,nodev,rela time,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=is o8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) lubuntu@lubuntu:~$
In this case, I knew the USB flash drive was a 16GB Emtec device
and I was able to see it was mounted at /media/lubuntu/EMTEC
C450
. I was then able to view the files and folders for
the drive from the shell prompt.
lubuntu@lubuntu:~$ ls /media cdrom lubuntu root lubuntu@lubuntu:~$ ls /media/lubuntu 'EMTEC C450' lubuntu@lubuntu:~$ ls /media/lubuntu/'EMTEC C450' EMTEC.icns EMTEC.ico 'System Volume Information' autorun.inf lubuntu@lubuntu:~$
References:
-
How do I figure out which /dev is a USB flash drive?
Date: September 16, 2008
superuser