369 lines
7.1 KiB
HTML
369 lines
7.1 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Appendix: Using cfdisk to partition your harddisk</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Installing GNU/Linux on the IBM RS/6000 43P model 7248 HOWTO"
|
|
HREF="t1.htm"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Appendix: Updating from YellowDog 2.3 (Dayton) to 3.0 (Sirius)"
|
|
HREF="x861.htm"><LINK
|
|
REL="NEXT"
|
|
TITLE="Appendix: More on partitioning"
|
|
HREF="x947.htm"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Installing GNU/Linux on the IBM RS/6000 43P model 7248 HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x861.htm"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x947.htm"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="CFDISK"
|
|
></A
|
|
>Appendix: Using cfdisk to partition your harddisk</H1
|
|
><A
|
|
NAME="AEN902"
|
|
></A
|
|
><DIV
|
|
CLASS="SECT2"
|
|
><H2
|
|
CLASS="SECT2"
|
|
><A
|
|
NAME="HARDDISK-NAMES"
|
|
></A
|
|
>Hard disk names</H2
|
|
><P
|
|
> SCSI harddisks are named with sdx, where x is a hardisk
|
|
letter. The disk with the lowest SCSI ID on the first
|
|
controller will become sda, the next lower sdb, an so on.
|
|
</P
|
|
><P
|
|
> If you have IDE harddisks, they are called hda, hdb, hdc, and
|
|
so on instead, where hda is the master disk on the first
|
|
controller, hdb is the slave disk on the first controller, hdc
|
|
is the master disk on the second controller, and so on.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT2"
|
|
><H2
|
|
CLASS="SECT2"
|
|
><A
|
|
NAME="HARDDISK-PARTITIONS"
|
|
></A
|
|
>Harddisk partitions</H2
|
|
><P
|
|
> GNU/Linux systems often uses a partition scheme inherited from
|
|
MS-DOS. With this, a harddisk can have up to four primary
|
|
partitions. If you want more, you have to make one of these an
|
|
extended partition where you can make several logical
|
|
partitions. The partitions are named with the disk they belong
|
|
to, and a number. The first primary partition on the first
|
|
SCSI disk is therefore sda1, the second primary partition is
|
|
sda2, and so on. The first and second logical partition on an
|
|
extended partition on the first SCSI disk is sda5 and sda6,
|
|
and so on. If this makes absolutely no sense to you at all,
|
|
try to read <A
|
|
HREF="x947.htm"
|
|
>the Section called <I
|
|
>Appendix: More on partitioning</I
|
|
></A
|
|
>. </P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT2"
|
|
><H2
|
|
CLASS="SECT2"
|
|
><A
|
|
NAME="STARTING-CFDISK"
|
|
></A
|
|
>Starting cfdisk</H2
|
|
><P
|
|
> you start cfdisk from the command line with the command
|
|
<PRE
|
|
CLASS="SCREEN"
|
|
> cfdisk /dev/sdx
|
|
</PRE
|
|
>
|
|
where x is the SCSI hardisk letter, like a, b, c, d, etc. So if I
|
|
want to partition the first harddisk on the SCSI controller, I'll
|
|
enter the command
|
|
<PRE
|
|
CLASS="SCREEN"
|
|
> cfdisk /dev/sda
|
|
</PRE
|
|
>
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT2"
|
|
><H2
|
|
CLASS="SECT2"
|
|
><A
|
|
NAME="USING-CFDISK"
|
|
></A
|
|
>Using cfdisk</H2
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="THE-USER-INTERFACE"
|
|
></A
|
|
>The user interface</H3
|
|
><P
|
|
> After you have started cfdisk you'll get an interface where
|
|
the current partition table is listed with the names and
|
|
some data about each partition, and some command buttons on
|
|
the bottom of the screen. To change between partitions, use
|
|
the up and down arrow keys. To change between commands, use
|
|
the left and right arrow keys.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="DELETING-A-PARTITION"
|
|
></A
|
|
>Deleting a partition</H3
|
|
><P
|
|
> To delete an existing partition, highlight it with the up and down
|
|
keys, select the <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>Delete</I
|
|
></SPAN
|
|
> command with the left and right arrow
|
|
keys, and press Enter.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="MAKING-A-NEW-PARTITION"
|
|
></A
|
|
>Making a new partition</H3
|
|
><P
|
|
> To make a new partition, select the <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>New</I
|
|
></SPAN
|
|
>
|
|
command with the left and right arrow keys, and press
|
|
enter. You'll get the choice between a primary and a logical
|
|
partition. If you want a logical partition, the program will
|
|
automatically make an extended partition for you. Then you
|
|
must choose the size of the partition (in MB). If you can't
|
|
enter a value in MB, return to the main screen with the Esc
|
|
key, and select MB with the <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>Units</I
|
|
></SPAN
|
|
>
|
|
command.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="SET-THE-TYPE-OF-A-PARTITION"
|
|
></A
|
|
>Set the type of a partition</H3
|
|
><P
|
|
> To set the type of a partition, for bootable PReP, Linux
|
|
swap or Linux ext2, highlight the actual partition, and
|
|
select the <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>Type</I
|
|
></SPAN
|
|
> command. You'll get a
|
|
list over different types. Press space, and you'll get even
|
|
more. Find what type you need, and enter the number at the
|
|
prompt.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="MAKE-A-PARTITION-BOOTABLE"
|
|
></A
|
|
>Make a partition bootable</H3
|
|
><P
|
|
> To be able to boot from a primary partition, you need to
|
|
make it bootable. Highlight the actual partition and select
|
|
the <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>Bootable</I
|
|
></SPAN
|
|
> command.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="WRITE-THE-RESULT-TO-DISK-AND-QUIT"
|
|
></A
|
|
>Write the result to disk and quit</H3
|
|
><P
|
|
> When you are content with the layout of the disk, select the
|
|
<SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>Write</I
|
|
></SPAN
|
|
> command. The partition table will
|
|
be written to disk. Remember that <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>this will
|
|
destroy all data on partitions you have deleted</I
|
|
></SPAN
|
|
>
|
|
or changed. You should therefore be very sure that you want
|
|
to do this before actually press the Return key.
|
|
</P
|
|
><P
|
|
> To exit the program, select the <SPAN
|
|
CLASS="emphasis"
|
|
><I
|
|
CLASS="EMPHASIS"
|
|
>Quit</I
|
|
></SPAN
|
|
> command.
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x861.htm"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="t1.htm"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x947.htm"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Appendix: Updating from YellowDog 2.3 (Dayton) to 3.0 (Sirius)</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Appendix: More on partitioning</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |