mount USB Sata ->Tape ?

New to Debian (Or Linux in general)? Ask your questions here!

mount USB Sata ->Tape ?

Postby mauric » 2018-12-23 10:03

Hello

Please i need to mount me USB/Sata Adapter, i have a DLT Tape attached (Sata) and i need to restore one File from the past,
and i don't know how i chan mount me Tape (nst or st arnt visible) iam realy busy and i need quick restore this on file
so i appreciat realy a quick answer!

modprob usb-storage

lsusb
Bus 002 Device 002: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge

root@srvcar101:/etc/modprobe.d# lsusb -v -d 152d:2338

Bus 002 Device 002: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
idProduct 0x2338 JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
bcdDevice 1.00
iManufacturer 1 JMicron
iProduct 2 USB to ATA/ATAPI Bridge
iSerial 5 152D203380B6
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 USB Mass Storage
bmAttributes 0xc0
Self 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-Only
iInterface 6 MSC Bulk-Only Transfer
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
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 0x02 EP 2 OUT
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: 0xb701
Self Powered
root@srvcar101:/etc/modprobe.d#

fdisk -l
root@srvcar101:/etc/modprobe.d# /sbin/fdisk -l
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Disk model: Virtual disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x57d80b9c

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 37748735 37746688 18G 83 Linux
/dev/sda2 37750782 41940991 4190210 2G 5 Extended
/dev/sda5 37750784 41940991 4190208 2G 82 Linux swap / Solaris

root@srvcar101:/etc/modprobe.d# cat /etc/debian_version
buster/sid
root@srvcar101:/etc/modprobe.d# uname -rs
Linux 4.18.0-3-amd64

dmesg | grep usb
3.928043] usb 1-2: new full-speed USB device number 3 using uhci_hcd
[ 3.948888] usb 2-1: New USB device found, idVendor=152d, idProduct=2338, bcdDevice= 1.00
[ 3.948890] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 3.948892] usb 2-1: Product: USB to ATA/ATAPI Bridge
[ 3.948893] usb 2-1: Manufacturer: JMicron
[ 3.948894] usb 2-1: SerialNumber: 152D203380B6
[ 3.983148] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 3.983276] scsi host33: usb-storage 2-1:1.0
[ 3.983364] usbcore: registered new interface driver usb-storage
[ 3.984036] usbcore: registered new interface driver uas
[ 4.098218] usb 1-2: New USB device found, idVendor=0e0f, idProduct=0002, bcdDevice= 1.00
[ 4.098220] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 4.098222] usb 1-2: Product: VMware Virtual USB Hub
root@srvcar101:/etc/modprobe.d#

iam not shure how to mount the Tape so that i can see the tape with me Backupprogram
Regards and thanks!

Regards
Maui
mauric
 
Posts: 36
Joined: 2017-07-25 08:50

Re: mount USB Sata ->Tape ?

Postby p.H » 2018-12-23 11:38

Why are you using a VMware virtual machine ? It can only make things more complicated.

fdisk : An SCSI tape drive is seen as a character device. fdisk won't show it, as only block devices can have a partition table.

dmesg : do not filter with "usb". All the SCSI related messages which should follow the device detection do not contain "usb".
It is better to connect the USB device only after the system has finished booting, so that related kernel messages aren't mixed with unrelated ones.
p.H
 
Posts: 1154
Joined: 2017-09-17 07:12

Re: mount USB Sata ->Tape ?

Postby mauric » 2018-12-23 13:01

Hello p.H

thanks meny time for your attention!
yes i'am running only Virtual and the clients are Thinclients

please any other possibilites to connect to me Tape?
iam not on local site.. from this tape drive.

regards and happy Christmas
Mauri
mauric
 
Posts: 36
Joined: 2017-07-25 08:50

Re: mount USB Sata ->Tape ?

Postby p.H » 2018-12-23 14:02

How did you see that there is no /dev/{,n}st* device ? Did you check in /dev ?
Did you check kernel messages following the discovery of the USB adapter ?
p.H
 
Posts: 1154
Joined: 2017-09-17 07:12

Re: mount USB Sata ->Tape ?

Postby mauric » 2018-12-23 14:19

root@srvcar101:/dev# ls -ls st*
0 lrwxrwxrwx 1 root root 15 Dec 23 12:36 stderr -> /proc/self/fd/2
0 lrwxrwxrwx 1 root root 15 Dec 23 12:36 stdin -> /proc/self/fd/0
0 lrwxrwxrwx 1 root root 15 Dec 23 12:36 stdout -> /proc/self/fd/1

root@srvcar101:/dev# ls -ls ns*
ls: cannot access 'ns*': No such file or directory
root@srvcar101:/dev#

cat /var/log/kern.log | grep st
cat /var/log/kern.log | grep nst
=no result
mauric
 
Posts: 36
Joined: 2017-07-25 08:50

Re: mount USB Sata ->Tape ?

Postby p.H » 2018-12-23 14:46

I advised you not to filter the kernel logs but read them thoroughly.
Are you sure that the USB-SATA adapter supports tape drives ?
Is the "st" (SCSI tape driver) module loaded ?
p.H
 
Posts: 1154
Joined: 2017-09-17 07:12

Re: mount USB Sata ->Tape ?

Postby mauric » 2018-12-23 18:39

after reading the complet kern.log iam not reading any failed
but i think that i found the device "scsi33 = sg2"

please it's this true?

Dec 23 19:42:18 srvcar101 kernel: [ 4.061213] usb 2-1: New USB device found, idVendor=152d, idProduct=2338, bcdDevice= 1.00
Dec 23 19:42:18 srvcar101 kernel: [ 4.061216] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Dec 23 19:42:18 srvcar101 kernel: [ 4.061218] usb 2-1: Product: USB to ATA/ATAPI Bridge
Dec 23 19:42:18 srvcar101 kernel: [ 4.061219] usb 2-1: Manufacturer: JMicron
Dec 23 19:42:18 srvcar101 kernel: [ 4.061221] usb 2-1: SerialNumber: 152D203380B6
Dec 23 19:42:18 srvcar101 kernel: [ 4.097616] usb-storage 2-1:1.0: USB Mass Storage device detected

Dec 23 19:42:18 srvcar101 kernel: [ 4.213593] cryptd: max_cpu_qlen set to 1000
Dec 23 19:42:18 srvcar101 kernel: [ 4.500057] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Dec 23 19:42:18 srvcar101 kernel: [ 5.128245] scsi 33:0:0:0: Direct-Access PQ: 0 ANSI: 2 CCS
Dec 23 19:42:18 srvcar101 kernel: [ 5.200973] sd 33:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
Dec 23 19:42:18 srvcar101 kernel: [ 5.200975] sd 33:0:0:0: [sdb] 0-byte physical blocks
Dec 23 19:42:18 srvcar101 kernel: [ 5.262002] sd 33:0:0:0: [sdb] Test WP failed, assume Write Enabled
Dec 23 19:42:18 srvcar101 kernel: [ 5.323975] sd 33:0:0:0: [sdb] Asking for cache data failed
Dec 23 19:42:18 srvcar101 kernel: [ 5.324097] sd 33:0:0:0: [sdb] Assuming drive cache: write through
Dec 23 19:42:18 srvcar101 kernel: [ 5.527234] sd 33:0:0:0: [sdb] Attached SCSI disk

Dec 23 19:42:18 srvcar101 kernel: [ 8.513602] Initialized host personality
Dec 23 19:42:18 srvcar101 kernel: [ 8.598377] sd 0:0:0:0: Attached scsi generic sg0 type 0
Dec 23 19:42:18 srvcar101 kernel: [ 8.598417] sr 3:0:0:0: Attached scsi generic sg1 type 5
Dec 23 19:42:18 srvcar101 kernel: [ 8.598455] sd 33:0:0:0: Attached scsi generic sg2 type 0
Dec 23 19:42:18 srvcar101 kernel: [ 8.765773] [drm] DMA map mode: Using physical TTM page addresses.
mauric
 
Posts: 36
Joined: 2017-07-25 08:50

Re: mount USB Sata ->Tape ?

Postby p.H » 2018-12-24 08:18

/dev/sg* are devices for low-level generic SCSI access. You cannot use them directly to read or write data.
I am afraid that the USB-SATA bridge does not support tape drives and advertises it as a null-capacity hard disk drive sdb.
p.H
 
Posts: 1154
Joined: 2017-09-17 07:12

Re: mount USB Sata ->Tape ?

Postby ralph.ronnquist » 2018-12-24 08:36

User avatar
ralph.ronnquist
 
Posts: 320
Joined: 2015-12-19 01:07
Location: Melbourne, Australia

Re: mount USB Sata ->Tape ?

Postby mauric » 2018-12-24 08:46

Hello p.H

Thanks for your Answer

ok i buy yesterday and install a SCSI SAS Controller ... and Cable so i have attached now to the Server with Tape..... but it seems
that ESX6.5 dont see this... oooooo inpossible....

root@srvcar101:/home/caragadm# lsscsi -l
[2:0:0:0] cd/dvd NECVMWar VMware SATA CD00 1.00 /dev/sr0
state=running queue_depth=1 scsi_level=6 type=5 device_blocked=0 timeout=30
[32:0:0:0] disk VMware Virtual disk 2.0 /dev/sda
state=running queue_depth=64 scsi_level=7 type=0 device_blocked=0 timeout=180


---Kern.log
Dec 24 10:29:26 srvcar101 kernel: [ 7.345561] Initialized host personality
Dec 24 10:29:26 srvcar101 kernel: [ 7.468223] sd 32:0:0:0: Attached scsi generic sg0 type 0
Dec 24 10:29:26 srvcar101 kernel: [ 7.469205] sr 2:0:0:0: Attached scsi generic sg1 type 5


root@srvcar101:/home/caragadm# dmesg | grep sd
[ 2.376677] sd 32:0:0:0: [sda] 41943040 512-byte logical blocks: (21.5 GB/20.0 GiB)
[ 2.376717] sd 32:0:0:0: [sda] Write Protect is off
[ 2.376719] sd 32:0:0:0: [sda] Mode Sense: 61 00 00 00
[ 2.376756] sd 32:0:0:0: [sda] Cache data unavailable
[ 2.376758] sd 32:0:0:0: [sda] Assuming drive cache: write through
[ 2.386536] sda: sda1 sda2 < sda5 >
[ 2.387073] sd 32:0:0:0: [sda] Attached SCSI disk
[ 3.174422] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 5.279874] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 7.468223] sd 32:0:0:0: Attached scsi generic sg0 type 0
[ 8.815850] Adding 2095100k swap on /dev/sda5. Priority:-2 extents:1 across:2095100k FS


Regards
mauri
mauric
 
Posts: 36
Joined: 2017-07-25 08:50

Re: mount USB Sata ->Tape ?

Postby p.H » 2018-12-24 09:36

If you want a virtual machine to be able to use a physical device, you must set up some pass-through in the hypervisor (provided that it supports it).
p.H
 
Posts: 1154
Joined: 2017-09-17 07:12

Re: mount USB Sata ->Tape ?

Postby scott722 » 2019-01-28 05:59

I advised you not to filter the kernel logs but read them thoroughly.
Are you sure that the USB-SATA adapter supports tape drives ?
Is the "st" (SCSI tape driver) module loaded ? Kodi
scott722
 
Posts: 1
Joined: 2019-01-04 10:10


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable