FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-03-2010, 12:07 PM
"Stefan G. Weichinger"
 
Default Internal DAT72 : HP C7438A

Does anyone know what I need to do to correctly adress such a drive?

I have the modules "usb_storage" and "st" loaded but I don't get any
/dev/(n)stX ...

Kernel 2.6.31-gentoo-r10 ... hmm

Do I have to add my own udev-rules ??

Thanks for any pointers, Stefan
 
Old 03-03-2010, 12:16 PM
"Stefan G. Weichinger"
 
Default Internal DAT72 : HP C7438A

Am 03.03.2010 14:07, schrieb Stefan G. Weichinger:
>
> Does anyone know what I need to do to correctly adress such a drive?
>
> I have the modules "usb_storage" and "st" loaded but I don't get any
> /dev/(n)stX ...

Forgot to mention: it is connected via USB ... internally ...

I see it via


# lsusb -v -d 03f0:0125

Bus 008 Device 003: ID 03f0:0125 Hewlett-Packard
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x03f0 Hewlett-Packard
idProduct 0x0125
bcdDevice 30.30
iManufacturer 1 Hewlett Packard
iProduct 2 DAT72 USB Tape
iSerial 3 485531095336544D
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 5 High Speed
bmAttributes 0x80
(Bus Powered)
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 6 SCSI Over USB????????
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
 
Old 03-03-2010, 12:47 PM
Volker Armin Hemmann
 
Default Internal DAT72 : HP C7438A

On Mittwoch 03 März 2010, Stefan G. Weichinger wrote:
> Am 03.03.2010 14:07, schrieb Stefan G. Weichinger:
> > Does anyone know what I need to do to correctly adress such a drive?
> >
> > I have the modules "usb_storage" and "st" loaded but I don't get any
> > /dev/(n)stX ...
>

but you do get /dev/sgX devices?
You have multiple lun support compiled in?
 
Old 03-03-2010, 01:18 PM
"Stefan G. Weichinger"
 
Default Internal DAT72 : HP C7438A

Am 03.03.2010 14:47, schrieb Volker Armin Hemmann:

> but you do get /dev/sgX devices?

Yes.

Looks like the four SATA-disks, one cdrom and the tapedrive (recognized
as CDROM?):

# ls -l /dev/sg?
crw-rw---- 1 root disk 21, 0 3. Mär 2010 /dev/sg0
crw-rw---- 1 root disk 21, 1 3. Mär 2010 /dev/sg1
crw-rw---- 1 root disk 21, 2 3. Mär 2010 /dev/sg2
crw-rw---- 1 root disk 21, 3 3. Mär 2010 /dev/sg3
crw-rw---- 1 root cdrom 21, 4 3. Mär 2010 /dev/sg4
crw-rw---- 1 root cdrom 21, 5 3. Mär 2010 /dev/sg5

> You have multiple lun support compiled in?

Yes, I do.

Additional info (st and usb_storage):

# lsmod
Module Size Used by
st 30200 0
ipv6 195220 16
usbhid 21472 0
usb_storage 60096 0
rtc 8472 0
ehci_hcd 29068 0
uhci_hcd 17864 0
sg 23788 0
usbcore 117040 5 usbhid,usb_storage,ehci_hcd,uhci_hcd
container 3164 0
processor 24024 0
thermal 12920 0
button 5068 0



Thanks, Stefan
 
Old 03-03-2010, 02:59 PM
"Stefan G. Weichinger"
 
Default Internal DAT72 : HP C7438A

Am 03.03.2010 15:18, schrieb Stefan G. Weichinger:
> Am 03.03.2010 14:47, schrieb Volker Armin Hemmann:
>
>> but you do get /dev/sgX devices?
>
> Yes.
>
> Looks like the four SATA-disks, one cdrom and the tapedrive (recognized
> as CDROM?):
>
> # ls -l /dev/sg?
> crw-rw---- 1 root disk 21, 0 3. Mär 2010 /dev/sg0
> crw-rw---- 1 root disk 21, 1 3. Mär 2010 /dev/sg1
> crw-rw---- 1 root disk 21, 2 3. Mär 2010 /dev/sg2
> crw-rw---- 1 root disk 21, 3 3. Mär 2010 /dev/sg3
> crw-rw---- 1 root cdrom 21, 4 3. Mär 2010 /dev/sg4
> crw-rw---- 1 root cdrom 21, 5 3. Mär 2010 /dev/sg5


After a reboot, with a tape inserted, I get:

# ls -l /dev/sg?
crw-rw---- 1 root disk 21, 0 3. Mär 2010 /dev/sg0
crw-rw---- 1 root disk 21, 1 3. Mär 2010 /dev/sg1
crw-rw---- 1 root disk 21, 2 3. Mär 2010 /dev/sg2
crw-rw---- 1 root disk 21, 3 3. Mär 2010 /dev/sg3
crw-rw---- 1 root cdrom 21, 4 3. Mär 2010 /dev/sg4
crw-rw---- 1 root tape 21, 5 3. Mär 2010 /dev/sg5

and also

# ls -l /dev/st0*
crw-rw---- 1 root tape 9, 0 3. Mär 2010 /dev/st0
crw-rw---- 1 root tape 9, 96 3. Mär 2010 /dev/st0a
crw-rw---- 1 root tape 9, 32 3. Mär 2010 /dev/st0l
crw-rw---- 1 root tape 9, 64 3. Mär 2010 /dev/st0m

# ls -l /dev/nst0*
crw-rw---- 1 root tape 9, 128 3. Mär 2010 /dev/nst0
crw-rw---- 1 root tape 9, 224 3. Mär 2010 /dev/nst0a
crw-rw---- 1 root tape 9, 160 3. Mär 2010 /dev/nst0l
crw-rw---- 1 root tape 9, 192 3. Mär 2010 /dev/nst0m

I am able to write and read a tape, yes.

But dmesg still looks ugly!

stuff like -->

usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x2c67 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command WRITE_6 (6 bytes)
usb-storage: 0a 00 00 80 00 00
usb-storage: Bulk Command S 0x43425355 T 0x2c68 L 32768 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 32768 bytes, 1 entries
usb-storage: Status code 0; transferred 32768/32768
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x2c68 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command WRITE_6 (6 bytes)
usb-storage: 0a 00 00 80 00 00
usb-storage: Bulk Command S 0x43425355 T 0x2c69 L 32768 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 32768 bytes, 1 entries


Not very trustworthy?

S
 

Thread Tools




All times are GMT. The time now is 08:06 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org