LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 12-02-2003, 10:05 PM   #1
eaglegst
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Woody, Sarge, Sid
Posts: 83

Rep: Reputation: 15
Question usb flashdisk on Debian


Hi guys.
I am a Debian(3.0 r2) user.
My friend wants to transfer some files to my linux box using a USB disk.
I have compiled the kernel(2.4.22) to enable USB massive storage.
In the kernel log, it says the driver is registered.
When the disk is plugged in, it is instantly recognized.

/var/log/messages says:

kernel: hub.c: new USB device 00:10.2-2, assigned address 2
kernel: scsi1 : SCSI emulation for USB Mass Storage devices
kernel: Vendor: LEGEND Model: FLASHDISK Rev: 1.00
kernel: Type: Direct-Access ANSI SCSI revision: 02

But I do not know how to access the file on the disk.
Some article says "mount /dev/sda1 /mnt/somewhere" will do, but it didn't in my case.
It says "mount: /dev/sda1 is not a valid block device"

Did I miss something or it is a different device in Debian?
Any clue? Thanks.

Last edited by eaglegst; 12-03-2003 at 12:24 AM.
 
Old 12-03-2003, 04:30 AM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Try running this script, see if it'll get the bugger to show up:

http://www.clockwatching.net/~fin/ra...an-scsi-bus.sh

I got it to work making certain recalcitrant and CF cards and an iPod to show up and be noticed.

Cheers,

Finegan
 
Old 12-03-2003, 04:59 AM   #3
eaglegst
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Woody, Sarge, Sid
Posts: 83

Original Poster
Rep: Reputation: 15
Thanks a lot.
The script tells me:
......
Host adapter 1 (usb-storage-0) found.
Scanning hosts 0 1 channels 0 for
SCSI target IDs 0 1 2 3 4 5 6 7 , LUNs 0
Scanning for device 1 0 0 0 ...
OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: LEGEND Model: FLASHDISK Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
......

Which device is the disk linked to?
/dev/???

Could anyone tell me? Thanks.
 
Old 12-03-2003, 05:01 AM   #4
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
It seems like /dev/sda, channel 0, id 0, lun 0, should be /dev/sda, what's fdisk say about /dev/sda?

Cheers,

Finegan
 
Old 12-03-2003, 05:27 AM   #5
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
The bugger is that it should have done this:
Code:
scsi singledevice 0 0 1 0
scsi singledevice 0 0 2 0
scsi singledevice 0 0 3 0
scsi singledevice 0 0 4 0
scsi singledevice 0 0 5 0
scsi singledevice 0 0 6 0
scsi singledevice 0 0 7 0
scsi singledevice 0 0 1 0
scsi singledevice 0 0 2 0
scsi singledevice 0 0 3 0
scsi singledevice 0 0 4 0
scsi singledevice 0 0 5 0
scsi singledevice 0 0 6 0
scsi singledevice 0 0 7 0
hub.c: new USB device 00:02.2-1, assigned address 2
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: HTS72606  Model: 0M9AT00           Rev: MH4O
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 117210240 512-byte hdwr sectors (60012 MB)
 sdb: sdb1 < sdb5 >
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
Cheers,

Finegan
 
Old 12-03-2003, 05:45 AM   #6
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
I just realized... you did a hand compile. Did you remember to include all of that scsi generic support, verbose probe all lunx, stuff like that under the scsi section?

Cheers,

Finegan
 
Old 12-03-2003, 05:56 AM   #7
eaglegst
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Woody, Sarge, Sid
Posts: 83

Original Poster
Rep: Reputation: 15
fdisk -l /dev/sd[a-p] returned nothing.
Mine is a flash disk. Could that make any difference?

Maybe it is simply not compatible with linux. : (
Thanks a lot for your help anyway. I learned a lot : )
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
disk to disk backup for debian/Mempis on bootable cd-- advice loninappleton Linux - Software 3 05-27-2005 01:00 AM
Using a floppy disk to load a USB disk. joeyjwc Linux - General 2 03-21-2004 06:05 PM
USB 2.0 External Disk Wont Work, but almost in USB 1.1 integr8er Linux - Hardware 2 03-13-2004 09:22 AM
How many disk isos do I need for Debian? Pcghost Debian 1 09-25-2003 04:03 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration