MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
Search:
Entire Site This Topic Only
Match:
Any All
Partial Whole Words only
March
Sun Mon Tue Wed Thu Fri Sat
           
26 27 28 29
30 31          
2025
Months
Mar
Apr May Jun
Jul Aug Sep
Oct Nov Dec


Fri, Mar 14, 2025 7:18 pm

Determining the mount point for a USB flash drive on a Lubuntu system

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:

  1. How do I figure out which /dev is a USB flash drive?
    Date: September 16, 2008
    superuser

[/os/unix/linux/lubuntu] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo