Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-11-2003, 04:03 PM   #1
Registered: Dec 2002
Posts: 187

Rep: Reputation: 30
Angry how do I find out device names for mounting

I have a sony picturebook with a memory stick, I also have a USB memory stick reader.

I can mount the mem stick reader as /dev/sda1 however I couldn't figure out what device it was - I tried /dev/sda1 by chance and it worked.

The Red Hat (ver 9.0) hardware browser doesn't list the USB reader at all - it does list the mem stick under floppy drives as a 'Sony MSC-U01' as follows:
- manufacturer: unknown
- driver: none or built in
- device: /dev/sdb

The only data listed under USB devices is as folows:
manufacturer: unknown
driver: usb-uhci

Is there a reliable command that I can run to figure out which devices to use when I want to mount a USB , Firewire, etc device?
Old 12-11-2003, 04:35 PM   #2
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30

When ever I'm plugging in a memory stick of any type, I first run at the command prompt

tail -f /var/log/messages

That gives you a dynamic reading of the last 10 lines in the log file. Then plug the memory stick in and you will see it probe the new device and give you an output similar to this........

Dec 12 06:37:24 CHAPSD kernel: Vendor: USB Model: Flash Drive Rev: 1.11
Dec 12 06:37:24 CHAPSD kernel: Type: Direct-Access ANSI SCSI revision: 02
Dec 12 06:37:24 CHAPSD kernel: USB Mass Storage support registered.
Dec 12 06:37:24 CHAPSD kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Dec 12 06:37:24 CHAPSD kernel: SCSI device sda: 253949 512-byte hdwr sectors (130 MB)
Dec 12 06:37:24 CHAPSD kernel: sda: Write Protect is off
Dec 12 06:37:24 CHAPSD kernel: sda: sda1 sda2 sda3 sda4

As you can see there at the bottom it is telling me sda is the device : )



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Device names Fredstar *BSD 2 06-17-2005 09:03 PM
Logical device names and instant names Gins Linux - General 8 11-30-2004 09:17 PM
usb device names geomatt Linux - Hardware 2 09-05-2004 02:30 PM
newbee device names help oldstinkyfish Linux - Hardware 3 11-24-2003 03:25 PM
Mounted Device names Rodzilla Linux - Newbie 7 09-25-2003 11:39 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:05 PM.

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