Quote:
Originally Posted by almon
I have linux installed in my college.They have old version installed in them.therefore when usb is plugged it is not automounted instead we have to do so.
but i am not able to find the command which tells me the path of my usb flash drive.lsusb give the devices attached but not the path(whether it is sdb1,2 etc)
dmesg,proc etc are also there but they are too advanced and looks like a foreign language to beginner like me.
pls tell me how can i do so??
one more thing pls donot give me that special command which are special for a particular distro.(I was amazed when i saw even lsusb command didnt worked on my college lab distro.(i dont remember the distro ))
thanx in advance
|
On my system I do the following but I must have root privileges.
before inserting flash drive look at the /var/log/messages file
look at the last few entries in the file and keep them in mind
insert the usb drive look at the /var/log/messages file again. You should see a new entries referring to the usb drive sd"n"1 wher "n" is usually "c" "d" etc etc. Let's say it is sdc1.
create a mount point if one doesn't exist in /home
if there is a /home/mnt that is empty you can mount it there otherwise create something you can recognize like /home/usbflash
once you've determined the id and created a mount point at command line enter
mount/dev/sdc1 /home/usbthumb
cd to /home/usbthumb to verify that you can read the drive.
The unfortunate caveat with this solution is that you need root privileges. When finished be sure to chown all the files and directories that you copy to your user name.