LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting flash drives.... (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-flash-drives-627812/)

almon 03-13-2008 01:09 PM

mounting flash drives....
 
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

lin_myworld 03-13-2008 01:20 PM

once u got the device attached to ur system like sdb1 or sdb2.
rest is fine..if u know how to mount a drive mount it using mount command.
ur device is /dev/sdb 1 or2.

bigrigdriver 03-13-2008 01:23 PM

When the usb device is mounted, it will be listed in /etc/mtab. The command would then be: cat /etc/mtab. Mtab will list the device and the mount point.

emp1953 03-13-2008 02:48 PM

Quote:

Originally Posted by almon (Post 3087579)
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.


All times are GMT -5. The time now is 12:06 PM.