/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-mips-disk.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-mips-disk.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.25 Revision 1.26
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/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-mips-disk.xml,v 1.25 2008/04/01 08:53:46 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-mips-disk.xml,v 1.26 2008/05/02 08:04:23 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>3.0</version> 11<version>3.1</version>
12<date>2008-04-01</date> 12<date>2008-05-02</date>
13 13
14<section> 14<section>
15<title>Introduction to Block Devices</title> 15<title>Introduction to Block Devices</title>
16 16
17<subsection> 17<subsection>
266need to bear in mind. 266need to bear in mind.
267</p> 267</p>
268 268
269<ul> 269<ul>
270 <li> 270 <li>
271 Cobalt firmware will expect <path>/dev/hda1</path> to be a Linux partition 271 Cobalt firmware will expect <path>/dev/sda1</path> to be a Linux partition
272 formatted <e>EXT2 Revision 0</e>. <e>EXT2 Revision 1 partitions will NOT 272 formatted <e>EXT2 Revision 0</e>. <e>EXT2 Revision 1 partitions will NOT
273 WORK!</e> (The Cobalt BOOTROM only understands EXT2r0) 273 WORK!</e> (The Cobalt BOOTROM only understands EXT2r0)
274 </li> 274 </li>
275 <li> 275 <li>
276 The above said partition must contain a gzipped ELF image, 276 The above said partition must contain a gzipped ELF image,
285allows you to run a modern filesystem (EXT3 or ReiserFS) for your root 285allows you to run a modern filesystem (EXT3 or ReiserFS) for your root
286filesystem. 286filesystem.
287</p> 287</p>
288 288
289<p> 289<p>
290I will assume you have created <path>/dev/hda1</path> to mount later as a 290I will assume you have created <path>/dev/sda1</path> to mount later as a
291<path>/boot</path> partition. If you wish to make this <path>/</path>, you'll 291<path>/boot</path> partition. If you wish to make this <path>/</path>, you'll
292need to keep the PROM's expectations in mind. 292need to keep the PROM's expectations in mind.
293</p> 293</p>
294 294
295<p> 295<p>
296So, continuing on... To create the partitions you type <c>fdisk /dev/hda</c> at 296So, continuing on... To create the partitions you type <c>fdisk /dev/sda</c> at
297the prompt. The main commands you need to know are these: 297the prompt. The main commands you need to know are these:
298</p> 298</p>
299 299
300<ul> 300<ul>
301 <li> 301 <li>
324 <c>w</c>: Quit -- writing partition table in the process. 324 <c>w</c>: Quit -- writing partition table in the process.
325 </li> 325 </li>
326</ul> 326</ul>
327 327
328<pre caption="Partitioning the disk"> 328<pre caption="Partitioning the disk">
329# <i>fdisk /dev/hda</i> 329# <i>fdisk /dev/sda</i>
330 330
331The number of cylinders for this disk is set to 19870. 331The number of cylinders for this disk is set to 19870.
332There is nothing wrong with that, but this is larger than 1024, 332There is nothing wrong with that, but this is larger than 1024,
333and could in certain setups cause problems with: 333and could in certain setups cause problems with:
3341) software that runs at boot time (e.g., old versions of LILO) 3341) software that runs at boot time (e.g., old versions of LILO)
352 352
353<comment>(You can now verify the partition table is empty using the 'p' command)</comment> 353<comment>(You can now verify the partition table is empty using the 'p' command)</comment>
354 354
355Command (m for help): <i>p</i> 355Command (m for help): <i>p</i>
356 356
357Disk /dev/hda: 10.2 GB, 10254827520 bytes 357Disk /dev/sda: 10.2 GB, 10254827520 bytes
35816 heads, 63 sectors/track, 19870 cylinders 35816 heads, 63 sectors/track, 19870 cylinders
359Units = cylinders of 1008 * 512 = 516096 bytes 359Units = cylinders of 1008 * 512 = 516096 bytes
360 360
361 Device Boot Start End Blocks Id System 361 Device Boot Start End Blocks Id System
362 362
375Last cylinder or +size or +sizeM or +sizeK (1-19870, default 19870): <i>+20M</i> 375Last cylinder or +size or +sizeM or +sizeK (1-19870, default 19870): <i>+20M</i>
376 376
377<comment>(and now if we type 'p' again, we should see the new partition)</comment> 377<comment>(and now if we type 'p' again, we should see the new partition)</comment>
378Command (m for help): <i>p</i> 378Command (m for help): <i>p</i>
379 379
380Disk /dev/hda: 10.2 GB, 10254827520 bytes 380Disk /dev/sda: 10.2 GB, 10254827520 bytes
38116 heads, 63 sectors/track, 19870 cylinders 38116 heads, 63 sectors/track, 19870 cylinders
382Units = cylinders of 1008 * 512 = 516096 bytes 382Units = cylinders of 1008 * 512 = 516096 bytes
383 383
384 Device Boot Start End Blocks Id System 384 Device Boot Start End Blocks Id System
385/dev/hda1 1 40 20128+ 83 Linux 385/dev/sda1 1 40 20128+ 83 Linux
386 386
387<comment>(The rest, I prefer to put in an extended partition, so I'll create that)</comment> 387<comment>(The rest, I prefer to put in an extended partition, so I'll create that)</comment>
388 388
389Command (m for help): <i>n</i> 389Command (m for help): <i>n</i>
390Command action 390Command action
432<comment>(Now, if we check our partition table, everything should mostly be ship 432<comment>(Now, if we check our partition table, everything should mostly be ship
433shape except for one thing...)</comment> 433shape except for one thing...)</comment>
434 434
435Command (m for help): <i>p</i> 435Command (m for help): <i>p</i>
436 436
437Disk /dev/hda: 10.2 GB, 10254827520 bytes 437Disk /dev/sda: 10.2 GB, 10254827520 bytes
43816 heads, 63 sectors/track, 19870 cylinders 43816 heads, 63 sectors/track, 19870 cylinders
439Units = cylinders of 1008 * 512 = 516096 bytes 439Units = cylinders of 1008 * 512 = 516096 bytes
440 440
441Device Boot Start End Blocks ID System 441Device Boot Start End Blocks ID System
442/dev/hda1 1 21 10552+ 83 Linux 442/dev/sda1 1 21 10552+ 83 Linux
443/dev/hda2 22 19870 10003896 5 Extended 443/dev/sda2 22 19870 10003896 5 Extended
444/dev/hda5 22 1037 512032+ 83 Linux 444/dev/sda5 22 1037 512032+ 83 Linux
445/dev/hda6 1038 5101 2048224+ 83 Linux 445/dev/sda6 1038 5101 2048224+ 83 Linux
446/dev/hda7 5102 9165 2048224+ 83 Linux 446/dev/sda7 5102 9165 2048224+ 83 Linux
447/dev/hda8 9166 13229 2048224+ 83 Linux 447/dev/sda8 9166 13229 2048224+ 83 Linux
448/dev/hda9 13230 17293 2048224+ 83 Linux 448/dev/sda9 13230 17293 2048224+ 83 Linux
449/dev/hda10 17294 19870 1298776+ 83 Linux 449/dev/sda10 17294 19870 1298776+ 83 Linux
450 450
451<comment>(Notice how #10, our swap partition is still type 83?)</comment> 451<comment>(Notice how #10, our swap partition is still type 83?)</comment>
452 452
453Command (m for help): <i>t</i> 453Command (m for help): <i>t</i>
454Partition number (1-10): <i>10</i> 454Partition number (1-10): <i>10</i>
457 457
458<comment>(That should fix it... just to verify...)</comment> 458<comment>(That should fix it... just to verify...)</comment>
459 459
460Command (m for help): <i>p</i> 460Command (m for help): <i>p</i>
461 461
462Disk /dev/hda: 10.2 GB, 10254827520 bytes 462Disk /dev/sda: 10.2 GB, 10254827520 bytes
46316 heads, 63 sectors/track, 19870 cylinders 46316 heads, 63 sectors/track, 19870 cylinders
464Units = cylinders of 1008 * 512 = 516096 bytes 464Units = cylinders of 1008 * 512 = 516096 bytes
465 465
466Device Boot Start End Blocks ID System 466Device Boot Start End Blocks ID System
467/dev/hda1 1 21 10552+ 83 Linux 467/dev/sda1 1 21 10552+ 83 Linux
468/dev/hda2 22 19870 10003896 5 Extended 468/dev/sda2 22 19870 10003896 5 Extended
469/dev/hda5 22 1037 512032+ 83 Linux 469/dev/sda5 22 1037 512032+ 83 Linux
470/dev/hda6 1038 5101 2048224+ 83 Linux 470/dev/sda6 1038 5101 2048224+ 83 Linux
471/dev/hda7 5102 9165 2048224+ 83 Linux 471/dev/sda7 5102 9165 2048224+ 83 Linux
472/dev/hda8 9166 13229 2048224+ 83 Linux 472/dev/sda8 9166 13229 2048224+ 83 Linux
473/dev/hda9 13230 17293 2048224+ 83 Linux 473/dev/sda9 13230 17293 2048224+ 83 Linux
474/dev/hda10 17294 19870 1298776+ 82 Linux Swap 474/dev/sda10 17294 19870 1298776+ 82 Linux Swap
475 475
476<comment>(Now, we write out the new partition table.)</comment> 476<comment>(Now, we write out the new partition table.)</comment>
477 477
478Command (m for help): <i>w</i> 478Command (m for help): <i>w</i>
479The partition table has been altered! 479The partition table has been altered!
565Now create the filesystems on your newly created partitions (or logical 565Now create the filesystems on your newly created partitions (or logical
566volumes). 566volumes).
567</p> 567</p>
568 568
569<warn> 569<warn>
570If you're installing on a Cobalt server, remember <path>/dev/hda1</path> MUST 570If you're installing on a Cobalt server, remember <path>/dev/sda1</path> MUST
571be of type <e>EXT2 revision 0</e>; Anything else (e.g. EXT2 revision 1, EXT3, 571be of type <e>EXT2 revision 0</e>; Anything else (e.g. EXT2 revision 1, EXT3,
572ReiserFS, XFS, JFS and others) <e>WILL NOT WORK!</e> You can format the 572ReiserFS, XFS, JFS and others) <e>WILL NOT WORK!</e> You can format the
573partition using the command: <c>mke2fs -r 0 /dev/hda1</c>. 573partition using the command: <c>mke2fs -r 0 /dev/sda1</c>.
574</warn> 574</warn>
575 575
576</body> 576</body>
577</subsection> 577</subsection>
578<subsection> 578<subsection>

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20