Questions tagged [scsi]
135 questions
23
votes
5 answers
How to detect new hard disk attached without rebooting?
I'm having a little issue. I've a live system which run on RHEL 6.7 (VM) and have VMware 6.5 (which is not managed by our group) . The issue is, the other group tried to extend the capacity of an existing disk on a VM. After that, I ran a scan…
Sensei
- 333
- 1
- 2
- 5
20
votes
6 answers
Prevent a USB external hard drive from sleeping
Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing that smells of nice unixey elegance. There must be…
gabe.
- 11,644
- 11
- 44
- 58
16
votes
1 answer
How can I write raw data to a USB device
I'm attempting to write raw data to a USB device connected to my computer. I'm using Kali Linux, and I found the correct filepath: "/dev/usb/003/013" . However, when I try to write data to it I get an error.
root@kali:~/usb# printf "test" >…
Brian Sizemore
- 303
- 1
- 3
- 9
14
votes
1 answer
Why does Linux use SCSI drivers for non-SCSI devices?
Looking at what block device commands like lsblk or blkid return it seems that linux HDD support SCSI drivers regardless of the type of the devices, like a USB flash driver that is presented as follows in lsblk command:
...
sdb …
SRYZDN
- 1,069
- 2
- 11
- 12
12
votes
1 answer
Why do my SATA devices show up under /proc/scsi/scsi?
I have 3 SATA devices on my system. They show up under /proc/scsi/scsi, although these are not SCSI devices. Why do my SATA devices show up under the SCSI directory?
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
…
Stefan Lasiewski
- 19,264
- 24
- 70
- 85
12
votes
3 answers
mptscsih: ioc0: task abort: SUCCESS (rv=2002) causes 30 seconds freezing
I/O to my software RAID6 often freezes for around 30 seconds after which everything is back to normal.
After the freeze is over this is put into syslog:
Mar 14 18:43:57 server kernel: [35649.816060] sd 5:0:23:0: [sdy] CDB: Read(10): 28 00 6c 52 68…
Ole Tange
- 33,591
- 31
- 102
- 198
11
votes
1 answer
"Cannot allocate memory" when reading from SCSI tape
I am experimenting with some old SCSI tape drives, and I have successfully written some data to a tape, but I am struggling trying to read it back again.
# tar tvf /dev/st0
tar: /dev/st0: Cannot read: Cannot allocate memory
tar: At beginning of…
Malvineous
- 6,524
- 5
- 52
- 76
9
votes
1 answer
"echo 1 > /sys/block/sdX/device/delete" on all disks except predetermined list
I have a list of scsi disks that I need to remove. The list is considered random at best and changes from time to time. I want to remove everything except a predefined list that I have created. Let's assume for now that I only want to…
LVLAaron
- 1,715
- 8
- 28
- 31
9
votes
3 answers
Find scsi device ids under Linux?
How can I list scsi device ids under Linux?
LanceBaynes
- 39,295
- 97
- 250
- 349
8
votes
2 answers
Match PCI address of SATA controller and SCSI address of attached disks
I have a PCI-attached SATA controller connected to a (variable) number of disks on a machine with a Linux 2.6.39 kernel. I am trying to find the physical location of the disk, knowing the PCI address of the controller.
In this case, controller is at…
Inductiveload
- 297
- 1
- 3
- 10
8
votes
1 answer
how to tell which disk is sda and which is sdb disk?
from the df -k command, I see sda, sdb, sdc disks. They have some partitions (for example, sda has sda1, sda3). I want to detach sdb and sdc temporarily for OS upgrade. How exactly can I tell which disk is which? (actually I know sdc is the disk I…
Chan Kim
- 367
- 1
- 5
- 22
7
votes
1 answer
Tape readable with scsitape but not dd or tar, why?
I just installed an Exabyte tape drive:
$ lsscsi -g
[11:0:0:0] process Marvell 91xx Config 1.01 - /dev/sg0
[12:0:1:0] cd/dvd TOSHIBA CD-ROM XM-3401TA 0283 /dev/sr0 /dev/sg1
[12:0:5:0] tape EXABYTE EXB-8500-85Qanx0…
James Youngman
- 1,143
- 5
- 20
7
votes
2 answers
Why does it take so long to detect an usb stick?
I'm writing an initramfs-script and want to detect usb-sticks as fast as possible.
When I insert an usb 2.0 stick, the detection of idVendor, idProduct and USB class happens within 100 ms. But the scsi subsystem does not "attach" until about 1 s has…
Daniel Näslund
- 1,822
- 1
- 17
- 18
6
votes
5 answers
How to fix mpt2sas "port enable: FAILED with timeout (timeout=300s)"?
Since having set the drives attached to an LSI SAS 2008 controller to "Power up in standby", these drives are no longer being detected. Power up in standby is also known as PUIS, POIS or "ATA6 power up in standby mode".
In the Super Micro X8SI6-F…
Pro Backup
- 4,686
- 12
- 50
- 82
6
votes
2 answers
How to tell if a SCSI device is removable?
In DMESG I see:
[sdb] Attached SCSI removable disk
How does Linux decide what is removable and not removable?
Is there a way I can look up if a device is "removable" or not other than the log, for example somehwere in /sys or /proc?
Kyle Brandt
- 832
- 11
- 18