[PLUG] Debian Install

Derek Loree derek at infotects.com
Mon Jul 8 23:08:34 UTC 2002


Hi Richard,

On Mon, 2002-07-08 at 15:54, Richard Steffens wrote:
> I'm finally getting ready to start installing Debian on my Thinkpad.
> I've been reading:
> 
> http://www.debian.org/releases/stable/i386/ch-preparing.en.html
> 
> Section 3.2 "Information You Will Need," tells me:
> 
>   Besides this document, you'll need the _cfdisk_ manual page, the
> _fdisk_
>   manual page, the _dselect Tutorial_, and the _Linux Hardware
>   Compatibility HOWTO_
> 
> The dselect Tutorial page is there, as is the Linux Hardware
> Compatiblility HOWTO, but when I try to look at either the cfdisk or the
> fdisk man pages I get the following:
> 
>   ** man page not found ** . 
> 
> Are these the same ones I get when I look at man pages on my Red Hat
> system? Are there any subtle differences between the ones the Debian
> site wants me to read and the Red Hat versions?
Don't know, but attached is the output of "man cfdisk" on my debian
system.

HTH

Derek Loree

-------------- next part --------------
CFDISK(8)           Linux Programmer's Manual           CFDISK(8)



NNAAMMEE
       cfdisk - Curses based disk partition table manipulator for
       Linux

SSYYNNOOPPSSIISS
       ccffddiisskk [[ --aaggvvzz ]] [[ --cc _c_y_l_i_n_d_e_r_s ]] [[ --hh _h_e_a_d_s ]] [[  --ss  _s_e_c_?
       _t_o_r_s_-_p_e_r_-_t_r_a_c_k ]] [[ --PP _o_p_t ]] [[ _d_e_v_i_c_e ]]

DDEESSCCRRIIPPTTIIOONN
       ccffddiisskk is a curses based program for partitioning any hard
       disk drive.  Typical values of the _d_e_v_i_c_e argument are:

              /dev/hda [default]
              /dev/hdb
              /dev/sda
              /dev/sdb
              /dev/sdc
              /dev/sdd

       In order to write the partition table ccffddiisskk  needs  some?
       thing  called  the  `geometry'  of the disk: the number of
       `heads' and the number of `sectors per track'. Linux  does
       not  use any geometry, so if the disk will not be accessed
       by other operating systems,  you  can  safely  accept  the
       defaults that ccffddiisskk chooses for you. The geometry used by
       ccffddiisskk is found as follows. First the partition  table  is
       examined,  to  see  what geometry was used by the previous
       program that changed it. If the partition table is  empty,
       or  contains  garbage,  or  does not point at a consistent
       geometry, the kernel is asked for advice. If nothing works
       255  heads  and  63 sectors/track is assumed. The geometry
       can be overridden on the command line or by use of the `g'
       command.  When  partitioning  an  empty large modern disk,
       picking 255 heads and 63 sectors/track is  always  a  good
       idea.   There  is  no need to set the number of cylinders,
       since ccffddiisskk knows the disk size.

       Next, ccffddiisskk tries to read  the  current  partition  table
       from  the  disk  drive.  If it is unable to figure out the
       partition table, an error is  displayed  and  the  program
       will  exit.  This might also be caused by incorrect geome?
       try information, and can  be  overridden  on  the  command
       line.   Another  way  around  this  problem is with the --zz
       option.  This will ignore the partition table on the disk.

       The main display is composed of four sections, from top to
       bottom: the header, the partitions, the command line and a
       warning  line.   The  header contains the program name and
       version number followed by the disk drive and  its  geome?
       try.   The  partitions section always displays the current
       partition table.  The command line is the place where com?
       mands  and  text  are entered.  The available commands are
       usually displayed in brackets.  The warning line  is  usu?
       ally  empty  except when there is important information to
       be displayed.  The current partition is  highlighted  with
       reverse  video  (or  an  arrow if the --aa option is given).
       All partition specific commands apply to the current  par?
       tition.

       The  format  of the partition table in the partitions sec?
       tion is, from left to right: Name, Flags, Partition  Type,
       Filesystem  Type  and  Size.   The  name  is the partition
       device name.  The flags can be _B_o_o_t,  which  designates  a
       bootable partition or _N_C, which stands for "Not Compatible
       with DOS or OS/2".  DOS, OS/2 and possibly other operating
       systems require the first sector of the first partition on
       the disk and all logical partitions to begin on the second
       head.   This  wastes the second through the last sector of
       the first track of the first head  (the  first  sector  is
       taken  by  the partition table itself).  ccffddiisskk allows you
       to recover these "lost" sectors with the maximize  command
       (mm).  _N_o_t_e_: ffddiisskk(8) and some early versions of DOS create
       all partitions with the number of  sectors  already  maxi?
       mized.   For  more  information,  see the maximize command
       below.  The partition type can be one of _P_r_i_m_a_r_y or  _L_o_g_i_?
       _c_a_l.   For  unallocated  space on the drive, the partition
       type can also be _P_r_i_/_L_o_g, or empty (if the space is  unus?
       able).   The  filesystem type section displays the name of
       the filesystem used on the partition, if known.  If it  is
       unknown,  then _U_n_k_n_o_w_n and the hex value of the filesystem
       type are displayed.  A special case occurs when there  are
       sections  of  the  disk drive that cannot be used (because
       all of the primary partitions are  used).   When  this  is
       detected,  the  filesystem  type is displayed as _U_n_u_s_a_b_l_e.
       The size field displays  the  size  of  the  partition  in
       megabytes  (by  default).  It can also display the size in
       sectors  and  cylinders  (see  the  change  units  command
       below).   If an asterisks (**) appears after the size, this
       means that the partition is not aligned on cylinder bound?
       aries.

DDOOSS 66..xx WWAARRNNIINNGG
       The  DOS  6.x FORMAT command looks for some information in
       the first sector of the data area of  the  partition,  and
       treats this information as more reliable than the informa?
       tion in the partition table.  DOS FORMAT expects DOS FDISK
       to  clear the first 512 bytes of the data area of a parti?
       tion whenever a size change occurs.  DOS FORMAT will  look
       at  this extra information even if the /U flag is given --
       we consider this a bug in DOS FORMAT and DOS FDISK.

       The bottom line is that if you  use  cfdisk  or  fdisk  to
       change  the  size of a DOS partition table entry, then you
       must also use dddd to zero the first 512 bytes of that  par?
       tition  before  using  DOS FORMAT to format the partition.
       For example, if you were using cfdisk to make a DOS parti?
       tion  table entry for /dev/hda1, then (after exiting fdisk
       or cfdisk and rebooting Linux so that the partition  table
       information  is  valid)  you  would  use  the  command "dd
       if=/dev/zero of=/dev/hda1  bs=512  count=1"  to  zero  the
       first 512 bytes of the partition. Note:

       BBEE  EEXXTTRREEMMEELLYY  CCAARREEFFUULL  if you use the dddd command, since a
       small typo can make all of the data on your disk  useless.

       For  best  results,  you  should always use an OS-specific
       partition table program.  For example, you should make DOS
       partitions with the DOS FDISK program and Linux partitions
       with the Linux fdisk or Linux cfdisk program.


CCOOMMMMAANNDDSS
       ccffddiisskk commands can be entered by pressing the desired key
       (pressing _E_n_t_e_r after the command is not necessary).  Here
       is a list of the available commands:

       bb      Toggle bootable  flag  of  the  current  partition.
              This  allows  you to select which primary partition
              is bootable on the drive.

       dd      Delete the current partition.   This  will  convert
              the  current partition into free space and merge it
              with any free  space  immediately  surrounding  the
              current  partition.   A partition already marked as
              free space or marked as unusable cannot be deleted.

       gg      Change the disk geometry (cylinders, heads, or sec?
              tors-per-track).  WWAARRNNIINNGG:: This option should  only
              be  used by people who know what they are doing.  A
              command line option is also available to change the
              disk  geometry.   While at the change disk geometry
              command line, you can choose  to  change  cylinders
              (cc),  heads  (hh),  and  sectors per track (ss).  The
              default value will be printed at the  prompt  which
              you can accept by simply pressing the _E_n_t_e_r key, or
              you can exit without changes by  pressing  the  _E_S_C
              key.  If you want to change the default value, sim?
              ply enter the desired value and press  _E_n_t_e_r.   The
              altered  disk  parameter  values do not take effect
              until you return the main menu (by  pressing  _E_n_t_e_r
              or  _E_S_C  at  the change disk geometry command line.
              If you change  the  geometry  such  that  the  disk
              appears  larger, the extra sectors are added at the
              end of the disk as free space.  If the disk appears
              smaller,  the  partitions  that  are beyond the new
              last sector are deleted and the last  partition  on
              the  drive  (or  the  free  space at the end of the
              drive) is made to end at the new last sector.

       hh      Print the help screen.

       mm      Maximize disk usage of the current partition.  This
              command  will  recover the the unused space between
              the partition table and the beginning of the parti?
              tion,  but  at  the  cost  of  making the partition
              incompatible with  DOS,  OS/2  and  possibly  other
              operating systems.  This option will toggle between
              maximal disk usage and DOS, OS/2,  etc.  compatible
              disk  usage.  The default when creating a partition
              is to create DOS, OS/2, etc. compatible partitions.

       nn      Create  new partition from free space.  If the par?
              tition type is _P_r_i_m_a_r_y or _L_o_g_i_c_a_l, a  partition  of
              that  type  will  be  created, but if the partition
              type is _P_r_i_/_L_o_g, you will be prompted for the  type
              you  want  to  create.  Be aware that (1) there are
              only four slots available  for  primary  partitions
              and (2) since there can be only one extended parti?
              tion, which contains all of the logical drives, all
              of  the  logical drives must be contiguous (with no
              intervening  primary   partition).    ccffddiisskk   next
              prompts  you for the size of the partition you want
              to create.  The default size, equal to  the  entire
              free  space of the current partition, is display in
              megabytes.  You can either press the _E_n_t_e_r  key  to
              accept  the  default size or enter a different size
              at the prompt.   ccffddiisskk  accepts  size  entries  in
              megabytes  (MM)  [default], kilobytes (KK), cylinders
              (CC) and sectors (SS) by entering the number  immedi?
              ately  followed  by  one of (MM, KK, CC or SS).  If the
              partition fills the free space available, the  par?
              tition  is created and you are returned to the main
              command line.  Otherwise, the partition can be cre?
              ated at the beginning or the end of the free space,
              and ccffddiisskk will ask you to choose  where  to  place
              the  partition.   After  the  partition is created,
              ccffddiisskk automatically adjusts the other  partition's
              partition  types  if  all of the primary partitions
              are used.

       pp      Print the partition table to the  screen  or  to  a
              file.  There  are several different formats for the
              partition that you can choose from:


              rr      Raw data format (exactly what would be writ?
                     ten to disk)

              ss      Partition table in sector order format

              tt      Partition table in raw format

              The  _r_a_w  _d_a_t_a  _f_o_r_m_a_t  will print the sectors that
              would be written to disk  if  a  wwrite  command  is
              selected.   First,  the  primary partition table is
              printed, followed by the partition  tables  associ?
              ated  with  each  logical  partition.   The data is
              printed in hex byte by byte with 16 bytes per line.

              The  _p_a_r_t_i_t_i_o_n  _t_a_b_l_e  _i_n  _s_e_c_t_o_r _o_r_d_e_r _f_o_r_m_a_t will
              print the partition table ordered by sector number.
              The  fields,  from left to right, are the number of
              the partition, the partition type, the  first  sec?
              tor,  the  last  sector,  the offset from the first
              sector of the partition to the start of  the  data,
              the  length  of  the partition, the filesystem type
              (with the hex value in parenthesis), and the  flags
              (with  the  hex value in parenthesis).  In addition
              to the primary and  logical  partitions,  free  and
              unusable  space  is printed and the extended parti?
              tion is printed before the first logical partition.

              If  a partition does not start or end on a cylinder
              boundary or if the partition length is not  divisi?
              ble  by  the  cylinder  size,  an  asterisks (**) is
              printed after the non-aligned sector  number/count.
              This usually indicates that a partition was created
              by an operating system that either does  not  align
              partitions to cylinder boundaries or that used dif?
              ferent disk geometry information.  If you know  the
              disk  geometry  of  the other operating system, you
              could  enter  the  geometry  information  with  the
              change geometry command (gg).

              For  the  first  partition  on the disk and for all
              logical partitions, if the offset from  the  begin?
              ning of the partition is not equal to the number of
              sectors per track (i.e., the data does not start on
              the first head), a number sign (##) is printed after
              the offset.  For the remaining partitions,  if  the
              offset  is  not zero, a number sign will be printed
              after the offset.  This corresponds to the _N_C  flag
              in the partitions section of the main display.

              The  _p_a_r_t_i_t_i_o_n  _t_a_b_l_e  _i_n _r_a_w _f_o_r_m_a_t will print the
              partition table ordered by  partition  number.   It
              will  leave  out  all free and unusable space.  The
              fields, from left to right, are the number  of  the
              partition,  the  flags (in hex), the starting head,
              sector and cylinder, the filesystem  ID  (in  hex),
              the  ending head, sector and cylinder, the starting
              sector in the partition and the number  of  sectors
              in  the  partition.   The information in this table
              can be directly translated to the _r_a_w _d_a_t_a  _f_o_r_m_a_t.

              The  partition  table  entries  only  have  10 bits
              available to  represent  the  starting  and  ending
              cylinders.   Thus, when the absolute starting (end?
              ing) sector number is on a  cylinder  greater  than
              1023,  the  maximal  values  for  starting (ending)
              head, sector and cylinder are printed.  This is the
              method  used  by  OS/2, and thus fixes the problems
              associated with OS/2's fdisk rewriting  the  parti?
              tion  table  when  it is not in this format.  Since
              Linux and OS/2 use absolute sector counts, the val?
              ues  in  the  starting  and ending head, sector and
              cylinder are not used.

       qq      Quit program.  This will exit the  program  without
              writing any data to disk.

       tt      Change the filesystem type.  By default, new parti?
              tions are created as _L_i_n_u_x  partitions,  but  since
              ccffddiisskk  can  create  partitions for other operating
              systems, change partition type allows you to  enter
              the hex value of the filesystem you desire.  A list
              of the know filesystem types is displayed.  You can
              type in the filesystem type at the prompt or accept
              the default filesystem type [_L_i_n_u_x].

       uu      Change units of the  partition  size  display.   It
              will  rotate  through megabytes, sectors and cylin?
              ders.

       WW      Write partition table to disk (must enter an  upper
              case  W).   Since  this  might  destroy data on the
              disk, you must either confirm or deny the write  by
              entering `yes' or `no'.  If you enter `yes', ccffddiisskk
              will write the partition table to disk and the tell
              the  kernel to re-read the partition table from the
              disk.  The re-reading of the partition table  works
              is  most  cases,  but  I  have seen it fail.  Don't
              panic.  It will be correct  after  you  reboot  the
              system.   In all cases, I still recommend rebooting
              the system--just to be safe.

       _U_p _A_r_r_o_w

       _D_o_w_n _A_r_r_o_w
              Move cursor to the previous or next partition.   If
              there  are more partitions than can be displayed on
              a screen, you can display the next  (previous)  set
              of  partitions  by  moving  down  (up)  at the last
              (first) partition displayed on the screen.

       _C_T_R_L_-_L Redraws the screen.  In case something  goes  wrong
              and  you  cannot read anything, you can refresh the
              screen from the main command line.

       ??      Print the help screen.

       All of the commands can be entered with  either  upper  or
       lower  case  letters  (except for WWrites).  When in a sub-
       menu or at a prompt to enter a filename, you can  hit  the
       _E_S_C key to return to the main command line.

OOPPTTIIOONNSS
       --aa     Use  an  arrow  cursor instead of reverse video for
              highlighting the current partition.

       --gg     Do not use the geometry given by the  disk  driver,
              but  try  to  guess  a  geometry from the partition
              table.

       --vv     Print the version number and copyright.

       --zz     Start with zeroed partition table.  This option  is
              useful  when  you  want  to repartition your entire
              disk.  _N_o_t_e_: this option does not zero  the  parti?
              tion  table  on  the disk; rather, it simply starts
              the program without reading the existing  partition
              table.

       --cc _c_y_l_i_n_d_e_r_s

       --hh _h_e_a_d_s

       --ss _s_e_c_t_o_r_s_-_p_e_r_-_t_r_a_c_k
              Override the number of cylinders, heads and sectors
              per track read from the  BIOS.   If  your  BIOS  or
              adapter  does  not supply this information or if it
              supplies incorrect information, use  these  options
              to set the disk geometry values.

       --PP _o_p_t Prints  the  partition  table in specified formats.
              _o_p_t can be one or more of "r", "s" or "t".  See the
              pprint  command  (above) for more information on the
              print formats.

EEXXIITT SSTTAATTUUSS
       0: No errors; 1: Invocation error; 2: I/O error; 3: cannot
       get geometry; 4: bad partition table on disk.

SSEEEE AALLSSOO
       ffddiisskk(8), ppaarrtteedd(8), ssffddiisskk(8)

BBUUGGSS
       The current version does not support multiple disks.

AAUUTTHHOORR
       Kevin E. Martin (martin at cs.unc.edu)



The BOGUS Linux Release    3 June 1995                  CFDISK(8)


More information about the PLUG mailing list