Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 2601

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<HTML
><HEAD
><TITLE
>A note about hard disks and partitions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="Linux Installation Strategies mini-HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="The basics"
HREF="x34.html"><LINK
REL="NEXT"
TITLE="The concepts"
HREF="x97.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Installation Strategies mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x34.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x97.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN72"
>4. A note about hard disks and partitions</A
></H1
><P
>A hard disk can have a maximum of <TT
CLASS="LITERAL"
>4</TT
> primary
      partitions &#8211; don't ask me why, I don't know. Apart from primary
      partitions a hard disk can also have what is known as an extended partition
      which inturn can hold a number of logical partitions &#8211; I believe the
      number is close to <TT
CLASS="LITERAL"
>15</TT
>. The extended partitions are not
      real partitions like primary or logical partitions in that they don't store
      data but are actually containers for logical partitions which is where data
      is actually stored &#8211; as you can see it is uneccessarily complex. Thus
      in Windows <I
CLASS="MEDIALABEL"
>C</I
> is a primary partition and if you used
      Windows <SPAN
CLASS="APPLICATION"
>Fdisk</SPAN
> &#8211; Windows
      <SPAN
CLASS="APPLICATION"
>Fdisk</SPAN
> will not make more than one primary
      partition to partition your hard disk &#8211; <I
CLASS="MEDIALABEL"
>D</I
> is
      usually the first logical partition of the extended
      partition. <I
CLASS="MEDIALABEL"
>E</I
> would be the second logical partition
      and so on. In Linux things are slightly different. The first primary
      partition is called <TT
CLASS="FILENAME"
>/dev/hda1</TT
>, the
      second primary partition <TT
CLASS="FILENAME"
>/dev/hda2</TT
>
      upto the fourth which is <TT
CLASS="FILENAME"
>/dev/hda4</TT
>.
      Linux refers to the an extended partition as in the case of a disk with
      <TT
CLASS="LITERAL"
>1</TT
> primary and one extended partition as 
      <TT
CLASS="FILENAME"
>/dev/hda1</TT
> for the primary and 
      <TT
CLASS="FILENAME"
>/dev/hda2</TT
> for the extended. The
      logical partitions of the extended partitions are referred to as 
      <TT
CLASS="FILENAME"
>/dev/hda5</TT
>, 
      <TT
CLASS="FILENAME"
>/dev/hda6</TT
> and so on. The second hard disk
      would be referred to as <TT
CLASS="FILENAME"
>/dev/hdb</TT
>,
      the third <TT
CLASS="FILENAME"
>/dev/hdc</TT
> (usually the
      cdrom drive if set as secondary master) and the fourth and last hard disk as
      <TT
CLASS="FILENAME"
>/dev/hdd</TT
> (last because the
      motherboard has place for a maximum of <TT
CLASS="LITERAL"
>4</TT
>
      <SPAN
CLASS="ACRONYM"
>IDE</SPAN
> devices) <SPAN
CLASS="ACRONYM"
>SCSI</SPAN
> devices are referred
      to as <TT
CLASS="FILENAME"
>/dev/sda</TT
> &#8211; thank god for
      that.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x34.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x97.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The basics</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>The concepts</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>