LinuxQuestions.org
Visit Jeremy's Blog.
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 09-10-2004, 03:37 PM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
how to find the right /dev file?


I keep hitting this problem, because I have no method dealing with it.

I have a USB memory key, which on my own PC comes up as /dev/sda1. I go another PC, load Knoppix, but sda1 is called an invalid block device. OK, I think, just try out the other "usual suspects", /dev/sda, /dev/sdb, etc. No luck.

dmesg tells me a USB mass storage device has been found, but no clues as to which file in /dev. Similarly lsmod tells me, it's there but nothng else.

And there are so many files to choose from in /dev! Which one could it be? IS there any sort of autmated method of sifting through them and finding which one? Or has it always got to be a manual trial and error thing?
 
Old 09-11-2004, 04:37 PM   #2
ceedeedoos
Member
 
Registered: Aug 2003
Location: Antwerp, Belgium
Distribution: Slackware 10.0, Mandrake 10.1
Posts: 174

Rep: Reputation: 35
I used to find this by doing

fdisk -l /dev/sd*

if it finds a device with a partition on it, it will list it.

I have no clue whether that's the "correct" way of finding out which device to use, but it still hasn't failed me so far
 
Old 09-11-2004, 07:19 PM   #3
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Original Poster
Rep: Reputation: 32
Hey that's pretty cool.

I think most people just hope that conventions are followed and do it by trial and error. May be there is no correct way.

Yours quickens up things a good bit, thanks! Good one!
 
  


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
forrtl: severe (47): write to READONLY file, unit 5, file /dev/pts/1 terrence Programming 1 10-01-2005 10:22 PM
How find out what /dev application uses howardg Linux - General 3 06-13-2005 06:38 PM
can't find my /dev/hda* partitions... himm Linux From Scratch 4 01-12-2005 06:33 PM
How to find the correct /dev/ttyS*? SeanatIL Linux - Software 1 07-07-2004 06:33 PM
"unable to find device node for /dev/x in /dev!" during install zombiedeth *BSD 0 02-02-2004 02:38 AM


All times are GMT -5. The time now is 01:26 PM.

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