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 */

CONFIGURATION

   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
   partition_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:

              struct hd_geometry {
                  unsigned char  heads;
                  unsigned char  sectors;
                  unsigned short cylinders;
                  unsigned long  start;
              };

          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
          convenient  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 reread of the SCSI disk partition tables.  No parameter
          is needed.

          The  SCSI  ioctl(2)  operations  are  also  supported.   If  the
          ioctl(2) parameter is required, and it is  NULL,  then  ioctl(2)
          will fail with the error EINVAL.

FILES

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

COLOPHON

   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at
   https://www.kernel.org/doc/man-pages/.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.