| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 | |
3 | |
| 4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.13 2004/12/31 02:42:21 vapier Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.14 2005/01/01 15:23:55 cam Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>1.10</version> |
11 | <version>1.10</version> |
| 12 | <date>2004-12-30</date> |
12 | <date>2004-12-30</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Introduction to Block Devices</title> |
15 | <title>Introduction to Block Devices</title> |
| 16 | <subsection> |
16 | <subsection> |
| 17 | <title>Block Devices</title> |
17 | <title>Block Devices</title> |
| 18 | <body> |
18 | <body> |
| 19 | |
19 | |
| 20 | <p> |
20 | <p> |
| 21 | We'll take a good look at disk-oriented aspects of Gentoo Linux |
21 | We'll take a good look at disk-oriented aspects of Gentoo Linux |
| 22 | and Linux in general, including Linux filesystems, partitions and block devices. |
22 | and Linux in general, including Linux filesystems, partitions and block devices. |
| … | |
… | |
| 452 | a DOS disklabel. |
452 | a DOS disklabel. |
| 453 | </p> |
453 | </p> |
| 454 | |
454 | |
| 455 | <pre caption="Creating a DOS disklabel"> |
455 | <pre caption="Creating a DOS disklabel"> |
| 456 | Command (m for help): <i>o</i> |
456 | Command (m for help): <i>o</i> |
| 457 | Building a new DOS disklabel. |
457 | Building a new DOS disklabel. |
| 458 | </pre> |
458 | </pre> |
| 459 | |
459 | |
| 460 | <p> |
460 | <p> |
| 461 | We start with deleting all partitions. The following shows how to delete |
461 | We start with deleting all partitions. The following shows how to delete |
| 462 | a partition (in the example we use '1'). Repeat the process to delete all |
462 | a partition (in the example we use '1'). Repeat the process to delete all |
| 463 | other partitions. |
463 | other partitions. |
| 464 | </p> |
464 | </p> |
| 465 | |
465 | |
| 466 | <p> |
466 | <p> |
| 467 | Use <c>p</c> to view all existing paritions. <c>d</c> is used to delete a partition. |
467 | Use <c>p</c> to view all existing partitions. <c>d</c> is used to delete a |
|
|
468 | partition. |
| 468 | </p> |
469 | </p> |
| 469 | |
470 | |
| 470 | <pre caption="Deleting a partition"> |
471 | <pre caption="Deleting a partition"> |
| 471 | command (m for help): <i>p</i> |
472 | command (m for help): <i>p</i> |
| 472 | |
473 | |
| 473 | Disk /dev/sda: 9150 MB, 9150996480 bytes |
474 | Disk /dev/sda: 9150 MB, 9150996480 bytes |
| 474 | 64 heads, 32 sectors/track, 8727 cylinders |
475 | 64 heads, 32 sectors/track, 8727 cylinders |
| 475 | Units = cylinders of 2048 * 512 = 1048576 bytes |
476 | Units = cylinders of 2048 * 512 = 1048576 bytes |
| 476 | |
477 | |
| 477 | Device Boot Start End Blocks Id System |
478 | Device Boot Start End Blocks Id System |
| 478 | /dev/sda1 1 478 489456 83 Linux |
479 | /dev/sda1 1 478 489456 83 Linux |
| 479 | /dev/sda2 479 8727 8446976 5 Extended |
480 | /dev/sda2 479 8727 8446976 5 Extended |
| 480 | /dev/sda5 479 1433 977904 83 Linux Swap |
481 | /dev/sda5 479 1433 977904 83 Linux Swap |
| 481 | /dev/sda6 1434 8727 7469040 83 Linux |
482 | /dev/sda6 1434 8727 7469040 83 Linux |
| 482 | |
483 | |