IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

sd (4)

SD(4)                      Linux Programmer's Manual                     SD(4)



NAME
       sd - Driver for SCSI Disk Drives

SYNOPSIS
       #include   <linux/hdreg.h>          /*   for  HDIO_GETGEO  */  #include
       <linux/fs.h>           /* for BLKGETSIZE and BLKRRPART */

CONFIG
       The block device name has the following form: sdlp, where l is a letter
       denoting  the  physical drive, and p is a number denoting the partition
       on that physical drive.  Often, the partition number, p, will  be  left
       off when the device corresponds to the whole drive.

       SCSI  disks  have a major device number of 8, and a minor device number
       of the form (16 * drive_number) + partition_number, where  drive_number
       is  the  number of the physical drive in order of detection, and parti-
       tion_number is as follows:

       partition 0 is the whole drive
       partitions 1-4 are the DOS "primary" partitions
       partitions 5-8 are the DOS "extended" (or "logical") partitions

       For example, /dev/sda will have major 8, minor 0, and will refer to all
       of the first SCSI drive in the system; and /dev/sdb3 will have major 8,
       minor 19, and will refer to the third DOS "primary"  partition  on  the
       second SCSI drive in the system.

       At  this  time,  only block devices are provided.  Raw devices have not
       yet been implemented.

DESCRIPTION
       The following ioctls are provided:

       HDIO_GETGEO
              Returns the BIOS disk parameters in the following structure:
                     structhd_geometry{
                           unsignedcharheads;
                           unsignedcharsectors;
                           unsignedshortcylinders;
                           unsignedlongstart;
                     };

              A pointer to this structure is passed as the ioctl(2) parameter.

              The  information  returned in the parameter is the disk geometry
              of the drive as understood by DOS!  This  geometry  is  not  the
              physical  geometry  of  the drive.  It is used when constructing
              the drive's partition table, however, and is needed  for  conve-
              nient  operation  of  fdisk(1),  efdisk(1), and lilo(1).  If the
              geometry information is not available, zero will be returned for
              all of the parameters.

       BLKGETSIZE
              Returns  the  device  size  in  sectors.  The ioctl(2) parameter
              should be a pointer to a long.

       BLKRRPART
              Forces a re-read of the SCSI disk partition tables.  No  parame-
              ter is needed.

              The  scsi(4) ioctls are also supported.  If the ioctl(2) parame-
              ter is required, and  it  is  NULL,  then  ioctl()  will  return
              -EINVAL.

FILES
       /dev/sd[a-h]: the whole device
       /dev/sd[a-h][0-8]: individual block partitions

SEEALSO
       scsi(4)



                                  1992-12-17                             SD(4)

consolelpttyS
console_codesmemtty_ioctl
console_ioctlmouseurandom
dsp56knullvcs
fdportvcsa
fifoptmxwavelan
fullptszero
futexram 
hdrandom 
initrdsd 
introst 


The Gimp 2.6.3
GNU Image Manipulation Program
Linux Kernel 2.6 2.6.27.7
Linux Kernel
Battle for Wesnoth 1.4.6
Fantasy Turn-Based Strategy Game
DeleGate 9.9.0-pre8
Proxy server which runs on multiple platforms
Safesquid proxy server 4.2.2.RC8.14B
Antivirus and content filtering proxy server
Thunderbird 2.0.0.18
An email and newsgroup client with powerful, new junk mail controls
Wine 1.1.9
Free implementation of Windows on Unix
WebGUI 7.5.34
A fully featured content management system.
KOffice 2.0 beta3
Integrated office suite for KDE
LimeWire 4.18.8
Gnutella Client
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

eWeek

The essential technology information source for builders of e-business.

BusinessWeek (Digital Edition)

Provides readers a deeper understanding of the trends that drive growth, and what best practices keep them ahead of the competition.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info