Re: [opensuse] PATA vs. SATA: which port is device on?
- From: Felix Miata <mrmazda@xxxxxxxxxxxxx>
- Date: Mon, 22 Feb 2010 23:34:46 -0500
On 2010/02/22 15:08 (GMT+0100) David Haller composed:
On Mon, 22 Feb 2010, Felix Miata wrote:
Ignoring whatever information can be discovered or inferred from device model
numbers or names, how can one determine whether a device is connected to a
PATA port or an SATA port?
$ hwinfo --cdrom | awk '
/Device Files/ {
pci = gensub(".*/by-path/pci-[0-9]+:([0-9:.]+)-scsi.*", "\\1", 1);
cmd = "/sbin/lspci";
while ( cmd | getline ) {
if( $1 == pci ) {
print;
};
};
}'
prints the controller the device "hangs on", e.g. one of:
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
03:07.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
Thanks for your reply.
First I put it in a script.
Then I tried it on a fresh M2 install on a system with no attached SATA
devices, and got: "00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev
a2)". That seems reasonable.
I also tried it on an 11.0 install on a i965/ICH8 system with no attached
PATA devices, and got no output. Any ideas why?
Any suggestions for something simpler and/or more authoritative?
--
"Our Constitution was made only for a moral and religious
people. It is wholly inadequate to the government of any
other." John Adams, 2nd US President
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://fm.no-ip.com/
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] PATA vs. SATA: which port is device on?
- From: David Haller
- Re: [opensuse] PATA vs. SATA: which port is device on?
- From: Per Jessen
- Re: [opensuse] PATA vs. SATA: which port is device on?
- References:
- [opensuse] PATA vs. SATA: which port is device on?
- From: Felix Miata
- Re: [opensuse] PATA vs. SATA: which port is device on?
- From: David Haller
- [opensuse] PATA vs. SATA: which port is device on?
- Prev by Date: Re: [opensuse] KDE 4.4 problem.
- Next by Date: Re: [opensuse] SpamAssassin date quirk
- Previous by thread: Re: [opensuse] PATA vs. SATA: which port is device on?
- Next by thread: Re: [opensuse] PATA vs. SATA: which port is device on?
- Index(es):
Relevant Pages
|