LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-08-2003, 03:04 PM   #1
kn_sravan
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Unhappy Accessing USB Flash Drive under Redhat Linux


Hi,
I am having hard time finding out how to access/mount the USB Flash Drive 256MB from JumpDrive.

/proc/scsi/scsi listing has the following information

Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: LEXAR Model: JUMPDRIVE PRO Rev: 0
Type: Direct-Access ANSI SCSI revision: 02


/proc/bus/usb/devices has the following information

P: Vendor=05dc ProdID=0200 Rev= 0.00
S: Manufacturer=LEXAR MEDIA
S: Product=JUMPDRIVE PRO

Is there any way to find out which of the /dev/ files is assigned to the Flash Drive(Looked at /usr/src/linux-2.4.20/Documentation/devices.txt for device file name assignment, but no use) so that i can mount it and use it...any weblinks which may be of help..please provide..

/var/log/messages has the following information

/etc/hotplug/usb.agent: Setup usb-storage for USB product 5dc/200/0

Thanks for your help

-Sravan
 
Old 08-08-2003, 03:13 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
is it /dev/sda1 or /dev/sdb1 ?
 
Old 08-08-2003, 03:21 PM   #3
kn_sravan
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I already have the SCSI Raid installed and my

df -h says
/dev/sda1 7G 4.3G 9.7G 31% /
/dev/sda2 89G 3.6G 80G 5% /home
/dev/sda6 3.6G 33M 3.4G 1% /opt
none 251M 0 250M 0% /dev/shm
/dev/sda3 200M 102M 1.7G 6% /var

and cdrecord --scanbus says

scsibus2:
2,0,0 200) 'LEXAR ' 'JUMPDRIVE PRO ' '0 ' Removable Disk


I have only this information..any idea how to access it with this information or any other command on how to find out more information?

Thanks
 
Old 08-08-2003, 03:54 PM   #4
kn_sravan
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Well i tried

mount -t auto /dev/sdb1 /mnt/usb

and it worked..but i need some information on how to find the device file name given scsi channel, ID, lun such as

Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: LEXAR Model: JUMPDRIVE PRO Rev: 0
Type: Direct-Access ANSI SCSI revision: 02

or cdrecord --scanbus output

scsibus2:
2,0,0 200) 'LEXAR ' 'JUMPDRIVE PRO ' '0 ' Removable Disk


for ex, for the Flash Drive..

Thanks a bunch..though it worked for this time, i need information on how to find the dev file names given channel ID Lun information
 
Old 08-09-2003, 01:43 AM   #5
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
Hi,
"Thanks a bunch..though it worked for this time, i need information on how to find the dev file names given channel ID Lun information"
Please see http://www.tldp.org/HOWTO/SCSI-2.4-HOWTO/ for more than you possible wanted to know about SCSI. Specifically, http://www.tldp.org/HOWTO/SCSI-2.4-HOWTO/dnames.html shows that sdX is scsi Disk, scX is scsi Cdrom, stX is scsi Tape, etc. Now, since USB Jumpdrive is consider a disk (seems easy after the fact don't it), we look at the info you gave us:
"scsibus2:
2,0,0 200) 'LEXAR ' 'JUMPDRIVE PRO ' '0 ' Removable Disk"
So, sdA is taken by your raid drive on your scsibus1, so scsibus2, has to be sdB had to be next, hence, your answer. It is too bad there is not one place to found out about what you asked, but it does cover alot, USB, SCSI, logs, mounts, etc.

My 'dmesg' output told me where my Jumpdrive was:
usb_control/bulk_msg: timeout
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: LEXAR Model: JUMPDRIVE PRO Rev: 0
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
sda: Write Protect is off
/dev/scsi/host1/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
USB Mass Storage support registered.

And my /var/log/messages had this:

Aug 7 00:31:49 localhost kernel: usb_control/bulk_msg: timeout
Aug 7 00:31:49 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Aug 7 00:31:49 localhost kernel: Vendor: LEXAR Model: JUMPDRIVE PRO Rev: 0
Aug 7 00:31:49 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Aug 7 00:31:49 localhost kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Aug 7 00:31:49 localhost kernel: SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
Aug 7 00:31:49 localhost kernel: sda: Write Protect is off
Aug 7 00:31:49 localhost kernel: /dev/scsi/host1/bus0/target0/lun0: p1
Aug 7 00:31:49 localhost kernel: USB Mass Storage support registered.

So, my jumpdrive above being scsi1, it was sda, and since it's the first partition, sda1.
I bought a jumpdrive this week, just so I could play with it. I'm going to 'fdisk' it, and make two vfat partitions on it, just to be sure I can mount sda1 and sda2, Gee, the fun never stops. Of course, the next step is to 'only' have encrypted files on it, so I can 'lose' it by accident, but not worry about data theft.
 
Old 08-09-2003, 08:55 AM   #6
kn_sravan
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Faheyd for the webpage..

Though it didnt helped me find the device file given channel ID, LUn or i ignored reading some information in the Documentation, it helped me on how to remove the scsi listing from /proc/scsi/scsi

Thanks..I have one more question..how will the device names be assigned if i connect multiple USBs to the USB Host controller
 
Old 08-10-2003, 12:08 AM   #7
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
"Thanks..I have one more question..how will the device names be assigned if i connect multiple USBs to the USB Host controller"
If you meant USB devices, or USB Drives, it depends, according to that link I gave you. See
http://www.linux-usb.org/USB-guide/x33.html
http://www.linux-usb.org/USB-guide/x75.html
The above, in conjuction with 'what' kind of device, see http://www.tldp.org/HOWTO/SCSI-2.4-HOWTO/dnames.html , and this link, http://www.linux-usb.org/USB-guide/c607.html#AEN609 , will determine the 'device' name, as far as I can tell, if you can read all that and retain any of it, some of it might make sense.
You've got alot of questions, that's good, I don't think I came close enough, but the documentation is a moving target in this area, as I believe that the whole 'idea' concerning 'devices' in Linux is being revamped for the 2.6 kernel. So stay tuned, maybe even get a subscription to Linux Journal, that's what I did.
See http://www.linuxjournal.com/article.php?sid=6872
and http://lwn.net/Articles/31185/
 
Old 08-18-2003, 12:56 AM   #8
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
FYI: I fdisk'd my Lexar and put two fat32 'c type' partitions on it. Works great in Linux, however, in Win2K, only the first partition is 'recognized'. When I go into disk administration mode on Win2k and try to 'format' the 2nd partition, it says that is not allowed. I would think this is a win2k usb driver problem rather than anything else (of course, old billy trying to control what you do with your hardware again).
Linux recognizes two fat32 partitions, that's great. So, I played around again with fdisk, and deleted the first partition and then slapped on a ext3 partition. Works great. Now, whether I boot into linux or win2k, I can play, simulate and break things while testing, all on a little usb keychain.
My next thing is to only put encrypted files on it. But I need to research what to do, when I put the keychain in a computer that doesn't have decrypting software. I sure that there is very lite clients that I can use, but that is another adventure altogether.
 
  


Reply



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
Using a USB flash drive with Linux membrax Linux - Hardware 76 11-03-2005 11:25 AM
having a problem accessing my usb flash drive vadriaan Linux - Hardware 4 01-27-2005 02:15 AM
Installing Linux on a USB Flash Drive spaaarky21 Linux - Distributions 3 11-02-2004 02:17 PM
Installing Linux from a usb flash drive? jck Linux - General 0 08-03-2003 04:35 PM
Installing Linux on a USB flash drive!? delphinus Linux - General 4 03-15-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:32 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
Open Source Consulting | Domain Registration