LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-07-2009, 11:55 AM   #1
Carpodbt
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Finding and mounting a device


I'm new to linux and I was asked to install some drivers from a usb or a usb optical drive onto a linux variant (centos 5.2).
My problem is that I cannot find the device name anywhere so I cannot figure out how to mount it.
Am I going about this all wrong, or is there some obvious way to find out the devices name?
Any help will be greatly appreciated.
 
Old 07-07-2009, 12:04 PM   #2
skiron.liu
Member
 
Registered: Jun 2009
Location: Harbin
Posts: 32

Rep: Reputation: 0
use "fdisk -l" you should see some else drivers then "mount" it.
 
Old 07-07-2009, 12:07 PM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by Carpodbt View Post
I'm new to linux and I was asked to install some drivers from a usb or a usb optical drive onto a linux variant (centos 5.2).
My problem is that I cannot find the device name anywhere so I cannot figure out how to mount it.
Am I going about this all wrong, or is there some obvious way to find out the devices name?
Any help will be greatly appreciated.
To be honest in linux you are not mounting a device but a file system
 
Old 07-07-2009, 12:08 PM   #4
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 593

Rep: Reputation: 30
USB disks are consider as hard disks here.

Try the command without the USB first.
fdisk -l

take the output of disks carefully.

now plug-in the usb and you can find the new disk which willl be displayed as
sdar sdb or sdc ... like.

create a dir with mkdir /usb
then mount your disk

mount /dev/sda1 /usb (say your disk is shown as sda1)

cd /usb to get your files
 
Old 07-07-2009, 12:50 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
You can also view the log..

tail -f /var/log/messages

After you issue that command, plug in your device. You will see the system detect the device and assign it a device node..

Code:
it-lenny:~# tail -f /var/log/messages
Jul  7 11:27:03 it-lenny -- MARK --
Jul  7 11:47:03 it-lenny -- MARK --
Jul  7 12:07:03 it-lenny -- MARK --
Jul  7 12:27:04 it-lenny -- MARK --
Jul  7 12:47:04 it-lenny -- MARK --
Jul  7 13:07:04 it-lenny -- MARK --
Jul  7 13:27:04 it-lenny -- MARK --
Jul  7 13:47:04 it-lenny -- MARK --
Jul  7 13:49:19 it-lenny kernel: usb 6-7: new high speed USB device using ehci_hcd and address 11
Jul  7 13:49:19 it-lenny kernel: usb 6-7: configuration #1 chosen from 1 choice
Jul  7 13:49:19 it-lenny kernel: scsi9 : SCSI emulation for USB Mass Storage devices
Jul  7 13:49:24 it-lenny kernel:   Vendor: USB 2.0   Model: Flash Disk        Rev: 1100
Jul  7 13:49:24 it-lenny kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Jul  7 13:49:24 it-lenny kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Jul  7 13:49:24 it-lenny kernel: sdb: Write Protect is off
Jul  7 13:49:24 it-lenny kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Jul  7 13:49:24 it-lenny kernel: sdb: Write Protect is off
Jul  7 13:49:24 it-lenny kernel:  sdb: sdb1
Jul  7 13:49:24 it-lenny kernel: sd 9:0:0:0: Attached scsi removable disk sdb
Jul  7 13:49:24 it-lenny kernel: sd 9:0:0:0: Attached scsi generic sg1 type 0
This method can also be handy for troubleshooting..
 
  


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
Finding and/or Mounting Firewire tschima Solaris / OpenSolaris 6 01-16-2009 08:48 AM
Finding device locations pete_bogg Slackware 5 06-22-2007 11:31 AM
What is this Device, help finding it mussussu Linux - Hardware 1 12-20-2005 05:53 PM
finding a device Oakstaff Slackware 1 02-15-2005 06:38 AM
Finding mouse device celtic32 Linux - General 1 04-17-2003 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 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