<p>Awesome information! </p>
<p>Thx Michael </p>
<p>--Sent from my android.</p>
<div class="gmail_quote">On May 4, 2011 6:13 PM, "Michael Mol" <<a href="mailto:mikemol@gmail.com">mikemol@gmail.com</a>> wrote:<br type="attribution">> On Wed, May 4, 2011 at 9:15 PM, Mike Williams <<a href="mailto:knightperson@zuzax.com">knightperson@zuzax.com</a>> wrote:<br>
>> It's a Toshiba Satellite A305-S6872. The laptop chassis has two hard drive<br>>> bays, but only one of them has a connector in it. There are solder points<br>>> for a hard drive connector in the second bay, but I can't tell if they're<br>
>> hooked up to anything. Theoretically, it would be possible to solder another<br>>> port into that bay and give me the option of a second hard drive, but I<br>>> don't know if the solder points require another chip or something. Is there<br>
>> any way in Linux (Ubuntu 10.10 64-bit if it matters) to look in /proc and<br>>> see if the SATA controller can handle another device?<br>> <br>> Here's how I just figured out where my system sits for this kind of thing:<br>
> <br>> Q: What's the name of a device that sits on the controller I'm interested in?<br>> A: /dev/sr0<br>> <br>> cd /sys<br>> <br>> find . -name 'sr0'<br>> <br>> I see that sr0 exists at<br>
> ./devices/pci0000:00/0000:00:11.0/host2/target2:0:0/2:0:0:0/block/sr0<br>> <br>> What that means:<br>> /sys/devices is branch under /sys that organizes devices by how<br>> they're tied in, physically.<br>
> <br>> /sys/devices/pci0000:00 is the folder specific to the first PCI bus on<br>> the system. (You can have multiple PCI busses in a system. Most<br>> systems do, actually, and PCI Express busses look logically like PCI<br>
> busses)<br>> <br>> /sys/devices/pci0000:00/0000:00:11.0 is the folder specific to a<br>> particular PCI device and subdevice. (A PCI device can have multiple<br>> components on it. For example, one of my old video cards had its VGA<br>
> output as one device, and its SVideo output as another device.) In<br>> this case, the PCI device is my SATA controller.<br>> <br>> I can verify that it's my SATA controller by running lspci, and seeing<br>
> this line:<br>> 00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA<br>> Controller [AHCI mode]<br>> <br>> SATA seems to be organized as SCSI is, with each link its own logical<br>> bus. My /dev/sr0 sits at host2/target2:0:0/2:0:0:0. I *think* that<br>
> means it sits on the second bus of the device, with a LUN of 2:0:0 (or<br>> 2:0:0:0, not sure).<br>> <br>> If I take a look at the directory for the controller itself, though,<br>> /sys/devices/pci0000:00/0000:00:11.0 , I can look and see what the<br>
> controller indicates it supports.<br>> <br>> Running 'ls' in that folder, I see that I have six "host" directories,<br>> host0, host1, host2, host3, host4 and host5.<br>> <br>> Looking at my motherboard, I can see that while I have six SATA ports,<br>
> I only have five devices plugged in, so I can see all SATA ports, not<br>> just the active ones.<br>> <br>> I don't have any unsoldered SATA headers, but my advice would be to<br>> look in the /sys/devices/... directory for your SATA controller, and<br>
> see if the number of 'hostN' entries in that folder is greater than<br>> the number of in-use connectors.<br>> <br>> -- <br>> :wq<br>> <br>> -- <br>> This message has been scanned for viruses and<br>
> dangerous content by MailScanner, and is<br>> believed to be clean.<br>> <br>> _______________________________________________<br>> grlug mailing list<br>> <a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
> <a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br></div>
<br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.