FreeBSD uses ad prefix for IDE/SATA disks and da prefix for SCSI and other technologies disks.
| ad | ATAPI (IDE) disk |
| da | SCSI direct access disk |
| acd | ATAPI (IDE) CDROM |
| cd | SCSI CDROM |
| fd | Floppy disk |
A snapshot of all the information and hardware detected by the kernel at boot time is kept in /var/run/dmesg.boot file.
List all hard disk drives installed into FreeBSD and detected by kernel
# egrep '^ad[0-9]|^da[0-9]' /var/run/dmesg.boot ad0: 152627MB at ata0-master UDMA33 ad1: 38166MB at ata0-slave UDMA33
|
Above information shows two ide disks, 160GB and 40GB size as well as model number, access mode and status.
If the disks are ATA disks, like in the above example, atacontrol utility can show information regarding ATA channel and status of each disk:
# atacontrol list ATA channel 0: Master: ad0 <ST3160215A/3.AAD> ATA/ATAPI revision 7 Slave: ad1 <WDC WD400BB-32CFC0/02.08B02> ATA/ATAPI revision 5 ATA channel 1: Master: no device present Slave: no device present # atacontrol info ata0 Master: ad0 <ST3160215A/3.AAD> ATA/ATAPI revision 7 Slave: ad1 <WDC WD400BB-32CFC0/02.08B02> ATA/ATAPI revision 5
|
Above example shows that both disks are using the same ata channel (0) and that the Seagate is Master and WesternDigital disk is the slave.
ATTENTION !!! Using atacontrol utility with other arguments other than info|list meight harm your system.
Man atacontrol(8):
ATACONTROL(8) FreeBSD System Manager's Manual ATACONTROL(8)
NAME atacontrol -- ATA device driver control program
SYNOPSIS atacontrol args
atacontrol attach channel atacontrol detach channel atacontrol reinit channel atacontrol create type [interleave] disk0 ... diskN atacontrol delete raid atacontrol addspare raid disk atacontrol rebuild raid atacontrol status raid atacontrol mode device atacontrol info channel atacontrol cap device atacontrol list
DESCRIPTION The atacontrol utility is a control program that provides the user access and control to the FreeBSD ata(4) subsystem.
The atacontrol utility can cause severe system crashes and loss of data if used improperly. Please exercise caution when using this command!
The channel argument is the ATA channel device (e.g., ata0) on which to operate. The following commands are supported:
|
Access denied for user 'ivorde_ro'@'localhost' to database 'ivorde_ro_adv'