aspose file tools
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
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply 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
Ranch Hand

Joined: Sep 13, 2007
Posts: 1259

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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14568
    
    7

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
Ranch Hand

Joined: Sep 13, 2007
Posts: 1259

thanks Tim, I got it working. I had to mount it
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Locating usb drive files in Linux using shell
 
Similar Threads
Which One?
flash drive problem
Difference between UBUNTU bootable USB drive and UBUNTU installation on USB Drive
Uploading and Retrieving USB files
CD Auto Run in Linux