Re: [opensuse] PATA vs. SATA: which port is device on?



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



Relevant Pages

  • Re: [opensuse] PATA vs. SATA: which port is device on?
    ... is connected to a PATA port or an SATA port? ... Controller 00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 ... Then I tried it on a fresh M2 install on a system with no attached ...
    (SuSE)
  • Re: [opensuse] PATA vs. SATA: which port is device on?
    ... is connected to a PATA port or an SATA port? ... Controller 00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 ... Any particular reason that info in the thread starter wasn't good enough for you? ...
    (SuSE)
  • Re: [opensuse] PATA vs. SATA: which port is device on?
    ... PATA port or an SATA port? ... 00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller ...
    (SuSE)
  • Re: Disk Read Error During Install
    ... Some MOBOS do not support the auto boot process during a Vista installation if the destination drive is not on SATA port #1. ... The SATA ports on my MOBO are numbered, ... I said we've tried the upgrade twice and then tried a clean install. ...
    (microsoft.public.windows.vista.installation_setup)
  • Re: Disk Read Error During Install
    ... Remember...we've tried a full install also. ... As far as the NTFS being different.... ... I never said anything about the first controller I only mentioned the first SATA port if the SATA ports are numbered on your MOBO. ... of SATA controllers begins at one that is what it is set to (unlike IDE drives ... ...
    (microsoft.public.windows.vista.installation_setup)