wood burning stoves*
The moose likes Linux / UNIX and the fly likes Locating usb drive files in Linux using shell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Locating usb drive files in Linux using shell" Watch "Locating usb drive files in Linux using shell" New topic
Author

Locating usb drive files in Linux using shell

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2452
    
    8

Hello all, I'm pretty new to unix. I am a Linux system using shell only (no GUI). When I insert an USB drive, the computer detects it but how do I know where the usb drive's files are located within Linux filesystem? I know if I pop in a CD in the CD-ROM then that maps to /media directory. But what about usb drives?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

This actually depends on the version and distro of Linux. But if you have one that auto-mounts cdroms under /media, normally it would also be set up to do so for USB drives. The name of the drive may be the volume's name, however, so it isn't always predictable.

Customer surveys are for companies who didn't pay proper attention to begin with.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2452
    
    8

thanks Tim, I got it working. I had to mount it
 
GeeCON Prague 2014
 
subject: Locating usb drive files in Linux using shell