Re: SCSI vs SATA

2007-07-23 Thread Robert Hancock
BuraphaLinux Server wrote: Hello, I have had a hard time determining if /dev/sda is SCSI or SATA from my boot scripts. It matters for smartd which needs an added parameter -d sat in the configuration file for SATA drives. Finally I came up with this, but I wonder if there is a better way?

Re: SCSI vs SATA

2007-07-23 Thread Rene Herman
On 07/23/2007 12:52 PM, BuraphaLinux Server wrote: #! /bin/bash drive="sda" vendor=$( This is probably not a useful comment and a reasonable script in your local setting but still thought I'd point out that these days most anything is sda, so if !SATA it can generally also be USB, or FW, or

Re: SCSI vs SATA

2007-07-23 Thread Michael Tokarev
BuraphaLinux Server wrote: > Hello, > >I have had a hard time determining if /dev/sda is SCSI or SATA > from my boot scripts. It matters for smartd which needs an added > parameter -d sat in the configuration file for SATA drives. Finally I Just FYI: Recent smartmontools (5.36+) can

SCSI vs SATA

2007-07-23 Thread BuraphaLinux Server
Hello, I have had a hard time determining if /dev/sda is SCSI or SATA from my boot scripts. It matters for smartd which needs an added parameter -d sat in the configuration file for SATA drives. Finally I came up with this, but I wonder if there is a better way? It appears that vendor is

SCSI vs SATA

2007-07-23 Thread BuraphaLinux Server
Hello, I have had a hard time determining if /dev/sda is SCSI or SATA from my boot scripts. It matters for smartd which needs an added parameter -d sat in the configuration file for SATA drives. Finally I came up with this, but I wonder if there is a better way? It appears that vendor is

Re: SCSI vs SATA

2007-07-23 Thread Michael Tokarev
BuraphaLinux Server wrote: Hello, I have had a hard time determining if /dev/sda is SCSI or SATA from my boot scripts. It matters for smartd which needs an added parameter -d sat in the configuration file for SATA drives. Finally I Just FYI: Recent smartmontools (5.36+) can figure

Re: SCSI vs SATA

2007-07-23 Thread Rene Herman
On 07/23/2007 12:52 PM, BuraphaLinux Server wrote: #! /bin/bash drive=sda vendor=$(/sys/block/${drive}/device/vendor) if [[ ${vendor} = ATA ]] then printf SATA\n else printf SCSI\n fi exit 0 This is probably not a useful comment and a reasonable script in your local setting but still

Re: SCSI vs SATA

2007-07-23 Thread Robert Hancock
BuraphaLinux Server wrote: Hello, I have had a hard time determining if /dev/sda is SCSI or SATA from my boot scripts. It matters for smartd which needs an added parameter -d sat in the configuration file for SATA drives. Finally I came up with this, but I wonder if there is a better way?