FreeBSD - Tutorials, Security
Home   Archives   Sitemap   About   Contact

FreeBSD - Collect installed hard disk drive information

Home NEW! Unix Forum News 100 Tips and Tricks Website Development Server Operating Systems Databases
 Ivorde.ROarrow Server Operating Systems arrowAdministration GuidesarrowFreeBSD - Collect installed hard disk drive information 

Article Sections

    Hello, Guest !
User name:
Password:
 
Google

 SATELLITE INTERNET
 FreeBSD Tutorials
 Linux LVM Commands
 Free Shell Accounts
 FreeBSD Project
 FreeBSD Handbook
 Advanced Bash-Scripting Guide
 The OpenBSD Project
 Distrowatch
 FreeBSD Handbook


Apache Webserver Home Page

Blog, intrebari si raspunsuri despre Leasing

Posted on: 19 Mar 2009
Author: mandrei
Section: Server Operating Systems | Administration Guides
Views: 794
Comments: 1 (Add)

FreeBSD - Collect installed hard disk drive information
Collecing disk information on FreeBSD

 



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:

 

Bookmarks: Echo "FreeBSD - Collect installed hard disk drive information" around:
del.icio.usdiggFurlYahooMyWebGoogleBookmarksFaceBookTechnocratti
-------------------advertising-----------------

Other articles in Server Operating Systems / Administration Guides
» How to check if an rpm package is installed on a Red Hat Linux server
» FreeBSD force port installation/upgrade even though portaudit reports vulnerability for it
» How to check for vulnerabilities installed ports on FreeBSD box
» How to install lighttpd on FreeBSD
» FreeBSD: How to enable vulnerability check while installing a port?




Contact webmaster regarding this article
Register or Login to post your article
Hello, Guest ! You can Login or Register to www.ivorde.ro!

 Post comment:

Name:
Title:
Comment:
Please type the word you see in the image (anti-spam verification). Refresh the page if you don't understand the word.
Verification code
Allowed HTML Tags for comments:<p><strong><em><u><h1><h2><h3><h4><h5><h6><img><li>
<ol><ul><span><div><br><ins><del>

1 comment(s) to FreeBSD - Collect installed hard disk drive information:

1. Re: FreeBSD - Collect installed hard disk drive information
Dev list in freebsd by LOGANATHAN RANGANATHAN at June 20th, 2012 - 21:43
camcontrol devlist

   Latest topics on the forum:
FreeBSD - Monitor geom disk i/o statistics using gstat/iostat
Squid clear cache on FreeBSD
Linux: Show UUID of filesystem
IPSEC vpn between IPHONE and Linux/FreeBSD racoon daemon
How to add BIOS boot delay for particular VM in VMWare ESXi 5.x
FreeBSD slow booting: Recovering vi editor sessions
FreeBSD: fsck: Could not determine filesystem type
FreeBSD 9 : Remount an already mounted filesystem without unmounting it
CentOS and KVM: Setup VNC server on the hypervisor
FreeBSD virsh console hangs in "Escape character is ^]" \w KVM hypervisor any text console provider
 
   Most viewed articles:
qmail qmail-scanner/clamav qmail-inject: fatal: qq temporary problem / clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2 - 6785 views
Reloading /etc/profile - how to reload Unix /etc/profile - 3201 views
Set up HTTP PROXY via command line in Linux/FreeBSD - 3029 views
AIX 5.3 - How to check for failed login attempts - 2580 views
How to change ProFTPd welcome message with ServerIdent - 2398 views

   Latest 10 articles:
FreeBSD - Collect installed hard disk drive information - 19 Mar 2009
Set up FTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
Set up HTTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
Qmail relay to smarthost: How to route all mail to a smarthost - 03 Feb 2009
EXIM 4 relay to smarthost: How to route all mail except local domain - 03 Feb 2009
Windows XP: print LISTEN ports and network connections using netstat - 30 Jan 2009
qmail qmail-scanner/clamav qmail-inject: fatal: qq temporary problem / clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2 - 05 Dec 2008
How to cut out first last n characters from each file name, from a filelist - 04 Nov 2008
Mozilla Firefox3 is now released - 18 Jun 2008
How to switch lower case to upper case and upper case to lower case in a string - 17 Jun 2008


Archives
» 2007  |  June  |  October  |  November  |  December
» 2008  |  January  |  February  |  March  |  April  |  May  |  June  |  November  |  December
» 2009  |  January  |  February  |  March



Home | Archives | Sitemap | About | Contact

Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.  
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.
Valid W3 Document Valid XHTML 1.0 Transitional Valid CSS! The FreeBSD Project Viewable With Any Browser