single SATA disk and yet identified as 'ad4'

2009-05-11 Thread Saifi Khan
Hi all:

The system has just one SATA disk and yet bootloader process
identified it as 'ad4'. Ideally, it should be ad1.

Here is the PCI information

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 
945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 
943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML 
Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition 
Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 
(rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 
(rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI 
Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge 
(rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller 
(rev 01)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI 
Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
06:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 
01)
08:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)

How does the labelling logic work ? 


thanks
Saifi.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: single SATA disk and yet identified as 'ad4'

2009-05-11 Thread Jonathan McKeown
On Monday 11 May 2009 21:38:50 Saifi Khan wrote:
 Hi all:

 The system has just one SATA disk and yet bootloader process
 identified it as 'ad4'. Ideally, it should be ad1.
[snip]
 How does the labelling logic work ?

FreeBSD reserves numbers for devices that aren't currently connected, so that 
if you connect them later your existing devices don't need to be renumbered.

Your BIOS is reporting two IDE interfaces, each of which could have a master 
and slave disk drive, so ad0-3 are reserved for those four drives, meaning 
SATA starts at ad4.

Some BIOSes let you change this.

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: single SATA disk and yet identified as 'ad4'

2009-05-11 Thread Stefan Lambrev

You may want to become familiar with:

#
# The following options are valid on the ATA driver:
#
# ATA_STATIC_ID:controller numbering is static ie depends on  
location
#   else the device numbers are dynamically  
allocated.


options ATA_STATIC_ID

Long time ago FreeBSD people decided that it's very annoying when you  
plug ata CD or another HDD
and then your ad1 (which is ad4) becomes ad2, and makes your OS un- 
bootable without manual intervention.


Today we have geom labels, but still ATA_STATIC_ID is something I  
really miss on every linux ..


P.S. -current removed.

On May 11, 2009, at 10:38 PM, Saifi Khan wrote:


Hi all:

The system has just one SATA disk and yet bootloader process
identified it as 'ad4'. Ideally, it should be ad1.

Here is the PCI information

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS,  
943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/ 
GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME,  
943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High  
Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI  
Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI  
Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB  
UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB  
UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB  
UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2  
EHCI Controller (rev 01)

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC  
Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE  
Controller (rev 01)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7  
Family) SATA AHCI Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus  
Controller (rev 01)
06:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan  
mini-PCI (rev 01)
08:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd.  
RTL-8139/8139C/8139C+ (rev 10)


How does the labelling logic work ?


thanks
Saifi.
___
freebsd-curr...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org 



--
Best Wishes,
Stefan Lambrev
ICQ# 24134177





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: single SATA disk and yet identified as 'ad4'

2009-05-11 Thread Erik Trulsson
On Mon, May 11, 2009 at 04:30:23PM +0200, Jonathan McKeown wrote:
 On Monday 11 May 2009 21:38:50 Saifi Khan wrote:
  Hi all:
 
  The system has just one SATA disk and yet bootloader process
  identified it as 'ad4'. Ideally, it should be ad1.
 [snip]
  How does the labelling logic work ?
 
 FreeBSD reserves numbers for devices that aren't currently connected, so that 
 if you connect them later your existing devices don't need to be renumbered.

It does this if you have 'options  ATA_STATIC_ID' in your kernel config
(which is the default.) Otherwise all PATA/SATA disks installed will
numbered from ad0 upwards without any gaps.  The drawback of that is that
without the static numbering the disk devices can (and often will) be
renumbered if you add or remove a disk, which often is not desirable.


 
 Your BIOS is reporting two IDE interfaces, each of which could have a master 
 and slave disk drive, so ad0-3 are reserved for those four drives, meaning 
 SATA starts at ad4.
 
 Some BIOSes let you change this.
 
 Jonathan


-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: single SATA disk and yet identified as 'ad4'

2009-05-11 Thread Boris Kochergin
By default, ATA disks are assigned numbers based on the ATA controller 
they are on, and whether they are primary or secondary on the 
controller. For example, the primary disk on the first controller would 
be ad0, the secondary disk on the first controller would be ad1, the 
primary disk on the second controller would be ad2, etc. This is the 
ATA_STATIC_ID kernel option. I expect that there are two ATA controllers 
before the one your disk is on. You may confirm this by running 
atacontrol list.


-Boris

Saifi Khan wrote:

Hi all:

The system has just one SATA disk and yet bootloader process
identified it as 'ad4'. Ideally, it should be ad1.

Here is the PCI information

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 
945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 
943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML 
Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition 
Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 
(rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 
(rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI 
Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge 
(rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller 
(rev 01)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI 
Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
06:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 
01)
08:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)

How does the labelling logic work ? 



thanks
Saifi.
___
freebsd-curr...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: single SATA disk and yet identified as 'ad4'

2009-05-11 Thread James Seward
On Mon, May 11, 2009 at 3:30 PM, Jonathan McKeown j.mcke...@ru.ac.za wrote:
 Your BIOS is reporting two IDE interfaces, each of which could have a master
 and slave disk drive, so ad0-3 are reserved for those four drives, meaning
 SATA starts at ad4.

 Some BIOSes let you change this.

Or you can take option ATA_STATIC_ID out of your kernel config.

/JMS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: single SATA disk and yet identified as 'ad4'

2009-05-11 Thread Tim Kientzle

Saifi Khan wrote:


The system has just one SATA disk and yet bootloader process
identified it as 'ad4'. Ideally, it should be ad1.

00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller 
(rev 01)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI 
Controller (rev 01)


The ide interface gets ad0, ad1, ad2, ad3,
the sata controller numbering starts with ad4.

Tim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org