LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2008, 02:09 PM   #1
almon
Member
 
Registered: May 2007
Location: india
Distribution: ubuntu7
Posts: 73

Rep: Reputation: 15
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
 
Old 03-13-2008, 02:20 PM   #2
lin_myworld
Member
 
Registered: Oct 2007
Location: India
Distribution: Ubuntu 8.04
Posts: 93

Rep: Reputation: 15
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.
 
Old 03-13-2008, 02:23 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.
 
Old 03-13-2008, 03:48 PM   #4
emp1953
LQ Newbie
 
Registered: Nov 2007
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by almon View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting and unmounting flash drives - RHEL4 MikeGood57 Linux - Newbie 2 02-15-2008 09:17 AM
Problems mounting usb flash drives thedlw Linux - Hardware 2 09-04-2006 10:01 PM
Mounting External DVDs, Flash Drives, etc. depam Linux - Software 4 02-09-2006 04:07 PM
Flash drives Stephanie General 7 02-07-2003 11:44 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 04:13 PM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration