From owner-freebsd-questions@FreeBSD.ORG Mon Jan 24 17:16:06 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07634106564A for ; Mon, 24 Jan 2011 17:16:06 +0000 (UTC) (envelope-from bahman.linux@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B13A78FC18 for ; Mon, 24 Jan 2011 17:16:05 +0000 (UTC) Received: by vws9 with SMTP id 9so1857942vws.13 for ; Mon, 24 Jan 2011 09:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=i5yXBfDy1ZCFFVKnFgscJYVlyvCvkjqQHlr1Sl4hxrw=; b=T02RYU3xcIsFWQX07su97a0DtdAUmIMVHAeJFEsmfGg8hThCoCXDjetj67yeixePPN MW8j/WmXIOBkzLVpyVns2oO95UXmef3S8BzW3nZIqYdRmxPOwlNo1UouTOLybA4ilfZ9 ruZHf2tSfigHsNiBQIMkj+zW9WTaxt9r4sgWU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=NKNTxqARyTbIltH5EJog1mmE0tttX0YOv/dLr+utCrStnipEEoitA3FCK/t4+bYvA9 VTYeER8FdKrUFLJFOGH629hqEd3NMblYecO2sfTuNFJLspUFVffdvUS6iSGiI9bsUkfE 0ban+XT1VQxjvilP7dDMdXQlLWsZBntB7uRUs= MIME-Version: 1.0 Received: by 10.229.216.143 with SMTP id hi15mr4064411qcb.27.1295889364641; Mon, 24 Jan 2011 09:16:04 -0800 (PST) Received: by 10.220.195.137 with HTTP; Mon, 24 Jan 2011 09:16:04 -0800 (PST) In-Reply-To: <01FB8F39BAD0BD49A6D0DA8F7897392904F827@Mercury.galaxy.lan.lcl> References: <01FB8F39BAD0BD49A6D0DA8F7897392904F827@Mercury.galaxy.lan.lcl> Date: Mon, 24 Jan 2011 20:46:04 +0330 Message-ID: From: Bahman Kahinpour To: Graeme Dargie Content-Type: text/plain; charset=UTF-8 Cc: freebsd-questions@freebsd.org Subject: Re: Onboard SATA Controller of Intel DH55HC Motherboard (FreeBSD 7.3 & FreeBSD 8.1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2011 17:16:06 -0000 Oh man, I really liked your answer, thanks so much. I disabled all legacy options in the BIOS (SATA controller is in AHCI mode which I do not know what it is) and added this little ahci_load="YES" thing to /boot/loader.conf and now my hard drives are recognized as: (and changed fstab and of course after a few little errors in the boot process): ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada2 at ahcich2 bus 0 scbus2 target 0 lun 0 ada2: ATA-8 SATA 2.x device ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada2: Command Queueing enabled ada2: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) Trying to mount root from ufs:/dev/ada0s1a I think it's good now. And the order of recognition of drives is the same as Linux (I mean ada0=sda ada1=sdb ada2=sdc). Is AHCI mode the best mode for SATA controller? (highest speed, utilizing all fancy features, ...) Good luck On 1/24/11, Graeme Dargie wrote: > > > -----Original Message----- > From: Bahman Kahinpour [mailto:bahman.linux@gmail.com] > Sent: 24 January 2011 11:40 > To: freebsd-questions@freebsd.org > Subject: Onboard SATA Controller of Intel DH55HC Motherboard (FreeBSD 7.3 & > FreeBSD 8.1) > > Hello FreeBSD people all over the world, > > There is an onboard Intel SATA controller on Intel DH55HC motherboard. > I have tried FreeBSD version 7.3 and 8.1 on this motherboard, it > recognizes the SATA controller but recognizes the hard disk as IDE > devices. How can this happen? > > $ uname -a > FreeBSD mail.freebsdsystem.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Sun > Jan 23 19:28:28 IRST 2011 > root@mail.freebsdsystem.net:/usr/obj/usr/src/sys/CUSTOM i386 > $ dmesg | grep SATA > atapci1: port > 0xf090-0xf097,0xf080-0xf083,0xf070-0xf077,0xf060-0xf063,0xf020-0xf03f > mem 0xfe725000-0xfe7257ff irq 19 at device 31.2 on pci0 > ad8: 476940MB at ata4-master UDMA100 SATA > 3Gb/s > ad10: 476940MB at ata5-master UDMA100 > SATA 3Gb/s > ad12: 476940MB at ata6-master UDMA100 > SATA 3Gb/s > acd0: DVDR at ata7-master UDMA100 SATA 1.5Gb/s > $ > > I did everything to prevent the FreeBSD kernel from recognizing the > hard drives as IDE. I turned off all IDE emulation options in the > BIOS. > > How can I fix that? > > Thanks > Bahman Kahinpour > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > This is very motherboard dependent, if your board supports AHCI, putting the > sata controller in to that mode will result in the drives starting as ada > rather than ad. You will also need to load the AHCI driver in > /etc/loader.conf ahci_load="YES" > > > ada0 at ahcich0 bus 0 target 0 lun 0 > ada0: ATA/ATAPI-7 SATA 2.x device > ada0: 300.000MB/s transfers > ada0: 1430799MB (2930277168 512 byte sectors: 16H 63S/T 16383C) > ada0: Native Command Queueing enabled > > I pulled that from one of my systems, the data drives are sata the boot disk > is IDE so for me changing to AHCI had no effect on the system booting, if > you boot from a SATA drive I suspect you might need to tweak fstab to allow > the system to boot correctly. > > Regards > > Graeme >