[CentOS] Using USB Tape drive on Centos 5.3 (kernel 2.6.18-164.10.1.el5PAE)

Wed Mar 3 07:49:47 UTC 2010
Jobst Schmalenbach <jobst at barrett.com.au>

I use a lot of tapes but never a USB, but from my knowledge I would try

 lsusb

then read the output and look at the id's, find the one that
has the usb tape drive attached to it, then use

 lsusb -vv

and find the matching id to get more info.

You could also try:

 modprobe usb_storage

then

 modbrobe st

and then do 

  "lsmod | grep storage"
  "lsmod | grep st"

that they are loaded (st should require to load the scsi stuff too).
You could also look into /dev and look at the major numbers (from
memory 9 is tapes??).

  ls -al /dev/tape/by-id

and

  ls -la /dev/.udev

and look through all of those.

check whether there is something with "usb-st" or so.

jobst













On Tue, Mar 02, 2010 at 06:13:01PM +0300, Muro, Sam (research at businesstz.com) wrote:
> Hello there
> I have been trying to install HP Storageworks DAT72 on CentOS 5 in vain.
> On system reboot, neither /dev/st not /dev/sg is available. May you please
> lead me through as this is my first time trying to do it
> 
> lsmod
> Module                  Size  Used by
> ipv6                  267617  40
> xfrm_nalgo             13381  1 ipv6
> crypto_api             12609  1 xfrm_nalgo
> autofs4                29253  2
> hidp                   23105  2
> dahdi_echocan_mg2      10248  0
> wanec                 306712  0
> af_wanpipe             38080  0
> wanpipe               459296  64
> wanrouter              42336  6 wanec,af_wanpipe,wanpipe
> dahdi                 192392  128 dahdi_echocan_mg2,wanpipe
> crc_ccitt               6337  1 dahdi
> sdladrv                79648  2 wanpipe,wanrouter
> rfcomm                 42457  0
> l2cap                  29505  10 hidp,rfcomm
> bluetooth              53925  5 hidp,rfcomm,l2cap
> sunrpc                145533  1
> dm_multipath           24909  0
> scsi_dh                11713  1 dm_multipath
> video                  21193  0
> hwmon                   7365  0
> backlight              10049  1 video
> sbs                    18533  0
> i2c_ec                  9025  1 sbs
> i2c_core               23745  1 i2c_ec
> button                 10705  0
> battery                13637  0
> asus_acpi              19289  0
> ac                      9157  0
> parport_pc             29157  0
> lp                     15849  0
> parport                37513  2 parport_pc,lp
> hpilo                  13389  0
> bnx2                  173133  0
> serio_raw              10693  0
> pcspkr                  7105  0
> dm_raid45              67145  0
> dm_message              6977  1 dm_raid45
> dm_region_hash         15681  1 dm_raid45
> dm_mem_cache            9537  1 dm_raid45
> dm_snapshot            22885  0
> dm_zero                 6209  0
> dm_mirror              24265  0
> dm_log                 14657  3 dm_raid45,dm_region_hash,dm_mirror
> dm_mod                 63225  11
> dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
> cciss                  67909  3
> sd_mod                 25281  0
> scsi_mod              141717  3 scsi_dh,cciss,sd_mod
> ext3                  125001  2
> jbd                    57065  1 ext3
> uhci_hcd               25549  0
> ohci_hcd               24809  0
> ehci_hcd               34125  0
> ----------------------------------------
> 
> #cat /etc/modprobe.conf
> alias eth0 bnx2
> alias eth1 bnx2
> alias eth2 bnx2
> alias eth3 bnx2
> alias scsi_hostadapter cciss
> alias scsi_hostadapter1 usb-storage
> install usb-storage :
> ---------------------------------------
> 
> #ls -l /dev
> [root at scb-dr-pbx01 ~]# ll /dev/
> total 0
> crw------- 1 root     root      10,    62 Mar  2 18:06 autofs
> drwxr-xr-x 3 root     root             60 Mar  2 18:06 bus
> drwxr-xr-x 2 root     root            100 Mar  2 18:06 cciss
> crw------- 1 root     root       5,     1 Mar  2 18:07 console
> lrwxrwxrwx 1 root     root             11 Mar  2 18:06 core -> /proc/kcore
> drwxr-xr-x 2 asterisk asterisk       1360 Mar  2 18:06 dahdi
> drwxr-xr-x 4 root     root             80 Mar  2 18:06 disk
> lrwxrwxrwx 1 root     root             13 Mar  2 18:06 fd -> /proc/self/fd
> crw-rw-rw- 1 root     root       1,     7 Mar  2 18:06 full
> srwxrwxrwx 1 root     root              0 Mar  2 18:06 gpmctl
> crw------- 1 root     root      10,   228 Mar  2 18:06 hpet
> drwxr-xr-x 2 root     root            200 Mar  2 18:06 hpilo
> prw------- 1 root     root              0 Mar  2 18:06 initctl
> drwxr-xr-x 2 root     root            160 Mar  2 18:06 input
> crw------- 1 root     root       1,    11 Mar  2 18:06 kmsg
> srw-rw-rw- 1 root     root              0 Mar  2 18:06 log
> brw-r----- 1 root     disk       7,     0 Mar  2 18:06 loop0
> brw-r----- 1 root     disk       7,     1 Mar  2 18:06 loop1
> brw-r----- 1 root     disk       7,     2 Mar  2 18:06 loop2
> brw-r----- 1 root     disk       7,     3 Mar  2 18:06 loop3
> brw-r----- 1 root     disk       7,     4 Mar  2 18:06 loop4
> brw-r----- 1 root     disk       7,     5 Mar  2 18:06 loop5
> brw-r----- 1 root     disk       7,     6 Mar  2 18:06 loop6
> brw-r----- 1 root     disk       7,     7 Mar  2 18:06 loop7
> lrwxrwxrwx 1 root     root             13 Mar  2 18:06 MAKEDEV ->
> /sbin/MAKEDEV
> drwxr-xr-x 2 root     root            100 Mar  2 18:06 mapper
> brw-r----- 1 root     disk       9,     0 Mar  2 18:06 md0
> crw-r----- 1 root     kmem       1,     1 Mar  2 18:06 mem
> drwxr-xr-x 2 root     root             60 Mar  2 18:06 net
> crw-rw-rw- 1 root     root       1,     3 Mar  2 18:06 null
> crw-rw---- 1 root     root      10,   144 Mar  2 18:06 nvram
> crw------- 1 root     root       1,    12 Mar  2 18:06 oldmem
> crw-rw---- 1 root     lp        99,     0 Mar  2 18:06 parport0
> crw-rw---- 1 root     lp        99,     1 Mar  2 18:06 parport1
> crw-rw---- 1 root     lp        99,     2 Mar  2 18:06 parport2
> crw-rw---- 1 root     lp        99,     3 Mar  2 18:06 parport3
> crw-r----- 1 root     kmem       1,     4 Mar  2 18:06 port
> crw------- 1 root     root     108,     0 Mar  2 18:06 ppp
> crw-rw-rw- 1 root     tty        5,     2 Mar  2 18:10 ptmx
> drwxr-xr-x 2 root     root              0 Mar  2 18:05 pts
> lrwxrwxrwx 1 root     root              4 Mar  2 18:06 ram -> ram1
> brw-r----- 1 root     disk       1,     0 Mar  2 18:06 ram0
> brw-r----- 1 root     disk       1,     1 Mar  2 18:06 ram1
> brw-r----- 1 root     disk       1,    10 Mar  2 18:06 ram10
> brw-r----- 1 root     disk       1,    11 Mar  2 18:06 ram11
> brw-r----- 1 root     disk       1,    12 Mar  2 18:06 ram12
> brw-r----- 1 root     disk       1,    13 Mar  2 18:06 ram13
> brw-r----- 1 root     disk       1,    14 Mar  2 18:06 ram14
> brw-r----- 1 root     disk       1,    15 Mar  2 18:06 ram15
> brw-r----- 1 root     disk       1,     2 Mar  2 18:06 ram2
> brw-r----- 1 root     disk       1,     3 Mar  2 18:06 ram3
> brw-r----- 1 root     disk       1,     4 Mar  2 18:06 ram4
> brw-r----- 1 root     disk       1,     5 Mar  2 18:06 ram5
> brw-r----- 1 root     disk       1,     6 Mar  2 18:06 ram6
> brw-r----- 1 root     disk       1,     7 Mar  2 18:06 ram7
> brw-r----- 1 root     disk       1,     8 Mar  2 18:06 ram8
> brw-r----- 1 root     disk       1,     9 Mar  2 18:06 ram9
> lrwxrwxrwx 1 root     root              4 Mar  2 18:06 ramdisk -> ram0
> crw-rw-rw- 1 root     root       1,     8 Mar  2 18:06 random
> crw------- 1 root     root     162,     0 Mar  2 18:06 rawctl
> brw------- 1 root     root     253,     0 Mar  2 18:06 root
> crw-r--r-- 1 root     root      10,   135 Mar  2 18:06 rtc
> drwxrwxrwt 2 root     root             40 Mar  2 18:06 shm
> lrwxrwxrwx 1 root     root             15 Mar  2 18:06 stderr ->
> /proc/self/fd/2
> lrwxrwxrwx 1 root     root             15 Mar  2 18:06 stdin ->
> /proc/self/fd/0
> lrwxrwxrwx 1 root     root             15 Mar  2 18:06 stdout ->
> /proc/self/fd/1
> crw------- 1 root     root       4,     0 Mar  2 18:06 systty
> crw-rw-rw- 1 root     tty        5,     0 Mar  2 18:06 tty
> crw-rw---- 1 root     tty        4,     0 Mar  2 18:06 tty0
> crw------- 1 root     root       4,     1 Mar  2 18:07 tty1
> crw-rw---- 1 root     tty        4,    10 Mar  2 18:06 tty10
> crw-rw---- 1 root     tty        4,    11 Mar  2 18:06 tty11
> crw-rw---- 1 root     tty        4,    12 Mar  2 18:06 tty12
> crw-rw---- 1 root     tty        4,    13 Mar  2 18:06 tty13
> crw-rw---- 1 root     tty        4,    14 Mar  2 18:06 tty14
> crw-rw---- 1 root     tty        4,    15 Mar  2 18:06 tty15
> crw-rw---- 1 root     tty        4,    16 Mar  2 18:06 tty16
> crw-rw---- 1 root     tty        4,    17 Mar  2 18:06 tty17
> crw-rw---- 1 root     tty        4,    18 Mar  2 18:06 tty18
> crw-rw---- 1 root     tty        4,    19 Mar  2 18:06 tty19
> crw------- 1 root     root       4,     2 Mar  2 18:07 tty2
> crw-rw---- 1 root     tty        4,    20 Mar  2 18:06 tty20
> crw-rw---- 1 root     tty        4,    21 Mar  2 18:06 tty21
> crw-rw---- 1 root     tty        4,    22 Mar  2 18:06 tty22
> crw-rw---- 1 root     tty        4,    23 Mar  2 18:06 tty23
> crw-rw---- 1 root     tty        4,    24 Mar  2 18:06 tty24
> crw-rw---- 1 root     tty        4,    25 Mar  2 18:06 tty25
> crw-rw---- 1 root     tty        4,    26 Mar  2 18:06 tty26
> crw-rw---- 1 root     tty        4,    27 Mar  2 18:06 tty27
> crw-rw---- 1 root     tty        4,    28 Mar  2 18:06 tty28
> crw-rw---- 1 root     tty        4,    29 Mar  2 18:06 tty29
> crw------- 1 root     root       4,     3 Mar  2 18:07 tty3
> crw-rw---- 1 root     tty        4,    30 Mar  2 18:06 tty30
> crw-rw---- 1 root     tty        4,    31 Mar  2 18:06 tty31
> crw-rw---- 1 root     tty        4,    32 Mar  2 18:06 tty32
> crw-rw---- 1 root     tty        4,    33 Mar  2 18:06 tty33
> crw-rw---- 1 root     tty        4,    34 Mar  2 18:06 tty34
> crw-rw---- 1 root     tty        4,    35 Mar  2 18:06 tty35
> crw-rw---- 1 root     tty        4,    36 Mar  2 18:06 tty36
> crw-rw---- 1 root     tty        4,    37 Mar  2 18:06 tty37
> crw-rw---- 1 root     tty        4,    38 Mar  2 18:06 tty38
> crw-rw---- 1 root     tty        4,    39 Mar  2 18:06 tty39
> crw------- 1 root     root       4,     4 Mar  2 18:07 tty4
> crw-rw---- 1 root     tty        4,    40 Mar  2 18:06 tty40
> crw-rw---- 1 root     tty        4,    41 Mar  2 18:06 tty41
> crw-rw---- 1 root     tty        4,    42 Mar  2 18:06 tty42
> crw-rw---- 1 root     tty        4,    43 Mar  2 18:06 tty43
> crw-rw---- 1 root     tty        4,    44 Mar  2 18:06 tty44
> crw-rw---- 1 root     tty        4,    45 Mar  2 18:06 tty45
> crw-rw---- 1 root     tty        4,    46 Mar  2 18:06 tty46
> crw-rw---- 1 root     tty        4,    47 Mar  2 18:06 tty47
> crw-rw---- 1 root     tty        4,    48 Mar  2 18:06 tty48
> crw-rw---- 1 root     tty        4,    49 Mar  2 18:06 tty49
> crw------- 1 root     root       4,     5 Mar  2 18:07 tty5
> crw-rw---- 1 root     tty        4,    50 Mar  2 18:06 tty50
> crw-rw---- 1 root     tty        4,    51 Mar  2 18:06 tty51
> crw-rw---- 1 root     tty        4,    52 Mar  2 18:06 tty52
> crw-rw---- 1 root     tty        4,    53 Mar  2 18:06 tty53
> crw-rw---- 1 root     tty        4,    54 Mar  2 18:06 tty54
> crw-rw---- 1 root     tty        4,    55 Mar  2 18:06 tty55
> crw-rw---- 1 root     tty        4,    56 Mar  2 18:06 tty56
> crw-rw---- 1 root     tty        4,    57 Mar  2 18:06 tty57
> crw-rw---- 1 root     tty        4,    58 Mar  2 18:06 tty58
> crw-rw---- 1 root     tty        4,    59 Mar  2 18:06 tty59
> crw------- 1 root     root       4,     6 Mar  2 18:07 tty6
> crw-rw---- 1 root     tty        4,    60 Mar  2 18:06 tty60
> crw-rw---- 1 root     tty        4,    61 Mar  2 18:06 tty61
> crw-rw---- 1 root     tty        4,    62 Mar  2 18:06 tty62
> crw-rw---- 1 root     tty        4,    63 Mar  2 18:06 tty63
> crw-rw---- 1 root     tty        4,     7 Mar  2 18:06 tty7
> crw-rw---- 1 root     tty        4,     8 Mar  2 18:06 tty8
> crw-rw---- 1 asterisk tty        4,     9 Mar  2 18:07 tty9
> crw-rw---- 1 root     uucp       4,    64 Mar  2 18:06 ttyS0
> crw-rw---- 1 root     uucp       4,    65 Mar  2 18:06 ttyS1
> crw-rw---- 1 root     uucp       4,    66 Mar  2 18:06 ttyS2
> crw-rw---- 1 root     uucp       4,    67 Mar  2 18:06 ttyS3
> cr--r--r-- 1 root     root       1,     9 Mar  2 18:06 urandom
> crw------- 1 root     root     442,     0 Mar  2 18:06 usbdev1.1_ep00
> crw------- 1 root     root     442,     0 Mar  2 18:06 usbdev1.1_ep81
> crw------- 1 root     root     442,     1 Mar  2 18:06 usbdev1.2_ep00
> crw------- 1 root     root     442,     1 Mar  2 18:06 usbdev1.2_ep02
> crw------- 1 root     root     442,     1 Mar  2 18:06 usbdev1.2_ep86
> crw------- 1 root     root     442,  2048 Mar  2 18:06 usbdev2.1_ep00
> crw------- 1 root     root     442,  2048 Mar  2 18:06 usbdev2.1_ep81
> crw------- 1 root     root     442,  4096 Mar  2 18:06 usbdev3.1_ep00
> crw------- 1 root     root     442,  4096 Mar  2 18:06 usbdev3.1_ep81
> crw------- 1 root     root     442,  6144 Mar  2 18:06 usbdev4.1_ep00
> crw------- 1 root     root     442,  6144 Mar  2 18:06 usbdev4.1_ep81
> crw------- 1 root     root     442,  8192 Mar  2 18:06 usbdev5.1_ep00
> crw------- 1 root     root     442,  8192 Mar  2 18:06 usbdev5.1_ep81
> crw------- 1 root     root     442, 10240 Mar  2 18:06 usbdev6.1_ep00
> crw------- 1 root     root     442, 10240 Mar  2 18:06 usbdev6.1_ep81
> crw------- 1 root     root     442, 10241 Mar  2 18:06 usbdev6.2_ep00
> crw------- 1 root     root     442, 10241 Mar  2 18:06 usbdev6.2_ep81
> crw------- 1 root     root     442, 10241 Mar  2 18:06 usbdev6.2_ep82
> crw------- 1 root     root     442, 10242 Mar  2 18:06 usbdev6.3_ep00
> crw------- 1 root     root     442, 10242 Mar  2 18:06 usbdev6.3_ep81
> crw------- 1 vcsa     tty        7,     0 Mar  2 18:06 vcs
> crw------- 1 vcsa     tty        7,     1 Mar  2 18:06 vcs1
> crw------- 1 vcsa     tty        7,     2 Mar  2 18:07 vcs2
> crw------- 1 vcsa     tty        7,     3 Mar  2 18:07 vcs3
> crw------- 1 vcsa     tty        7,     4 Mar  2 18:07 vcs4
> crw------- 1 vcsa     tty        7,     5 Mar  2 18:07 vcs5
> crw------- 1 vcsa     tty        7,     6 Mar  2 18:07 vcs6
> crw------- 1 vcsa     tty        7,     9 Mar  2 18:07 vcs9
> crw------- 1 vcsa     tty        7,   128 Mar  2 18:06 vcsa
> crw------- 1 vcsa     tty        7,   129 Mar  2 18:06 vcsa1
> crw------- 1 vcsa     tty        7,   130 Mar  2 18:07 vcsa2
> crw------- 1 vcsa     tty        7,   131 Mar  2 18:07 vcsa3
> crw------- 1 vcsa     tty        7,   132 Mar  2 18:07 vcsa4
> crw------- 1 vcsa     tty        7,   133 Mar  2 18:07 vcsa5
> crw------- 1 vcsa     tty        7,   134 Mar  2 18:07 vcsa6
> crw------- 1 vcsa     tty        7,   137 Mar  2 18:07 vcsa9
> drwx------ 2 root     root             80 Mar  2 18:06 VolGroup00
> crw------- 1 root     root     242,     0 Mar  2 18:06 wanec
> lrwxrwxrwx 1 root     root              4 Mar  2 18:06 X0R -> null
> crw-rw-rw- 1 root     root       1,     5 Mar  2 18:06 zero
> ------
> 
> Any one with an idea kindly let me know how you managed to do it
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

-- 
Sometimes, the sharpest sword is not enough, but usually...it is.

  | |0| |   Jobst Schmalenbach, jobst at barrett.com.au, General Manager
  | | |0|   Barrett Consulting Group P/L & The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia