/[gentoo]/xml/htdocs/doc/en/altinstall.xml
Gentoo

Diff of /xml/htdocs/doc/en/altinstall.xml

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

Revision 1.74 Revision 1.75
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/altinstall.xml,v 1.74 2008/01/09 20:36:44 jkt Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/altinstall.xml,v 1.75 2008/05/23 20:29:44 swift Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/altinstall.xml"> 5<guide link="/doc/en/altinstall.xml">
6 6
7<title>The Gentoo Linux alternative installation method HOWTO</title> 7<title>The Gentoo Linux alternative installation method HOWTO</title>
82<title>Booting the Install CD with Smart BootManager</title> 82<title>Booting the Install CD with Smart BootManager</title>
83<section> 83<section>
84<body> 84<body>
85 85
86<p> 86<p>
87Download Smart BootManager available from 87Download Smart BootManager available from
88<uri>http://btmgr.sourceforge.net/download.html</uri>. 88<uri>http://btmgr.sourceforge.net/download.html</uri>.
89Linux source or binary format and windows .exe versions are available as well 89Linux source or binary format and windows .exe versions are available as well
90as many language packs. However, at this time, the preferred method would be to 90as many language packs. However, at this time, the preferred method would be to
91use the binary format, as the source will not compile with newer versions of 91use the binary format, as the source will not compile with newer versions of
92NASM. 92NASM.
100 100
101<pre caption="Smart BootManager Options"> 101<pre caption="Smart BootManager Options">
102sbminst [-t theme] [-d drv] [-b backup_file] [-u backup_file] 102sbminst [-t theme] [-d drv] [-b backup_file] [-u backup_file]
103 103
104 -t theme select the theme to be used, in which the theme could be: 104 -t theme select the theme to be used, in which the theme could be:
105 us = English theme de = German theme 105 us = English theme de = German theme
106 hu = Hungarian theme zh = Chinese theme 106 hu = Hungarian theme zh = Chinese theme
107 ru = Russian theme cz = Czech theme 107 ru = Russian theme cz = Czech theme
108 es = Spanish theme fr = French theme 108 es = Spanish theme fr = French theme
109 pt = Portuguese theme 109 pt = Portuguese theme
110 110
111 111
112 -d drv set the drive that you want to install Smart BootManager on; 112 -d drv set the drive that you want to install Smart BootManager on;
113 for Linux: 113 for Linux:
114 /dev/fd0 is the first floppy driver, 114 /dev/fd0 is the first floppy driver,
115 /dev/hda is the first IDE harddisk driver. 115 /dev/hda is the first IDE harddisk driver.
116 /dev/sda is the first SCSI harddisk driver. 116 /dev/sda is the first SCSI harddisk driver.
117 for DOS: 117 for DOS:
118 0 is the first floppy drive 118 0 is the first floppy drive
119 128 is the first hard drive; 119 128 is the first hard drive;
131<pre caption="Using sbminst to build the boot floppy"> 131<pre caption="Using sbminst to build the boot floppy">
132# <i>sbminst -t us -d /dev/fd0</i> 132# <i>sbminst -t us -d /dev/fd0</i>
133</pre> 133</pre>
134 134
135<note> 135<note>
136Replace <path>fd0</path> with your respective floppy device name if yours is different. 136Replace <path>fd0</path> with your respective floppy device name if yours is
137different.
137</note> 138</note>
138 139
139<p> 140<p>
140Now simply place the floppy in the floppy drive of the computer you'd like to 141Now simply place the floppy in the floppy drive of the computer you'd like to
141boot the Install CD on, as well as placing the Install CD in the CD-ROM and boot 142boot the Install CD on, as well as placing the Install CD in the CD-ROM and boot
161<title>Knoppix Installation</title> 162<title>Knoppix Installation</title>
162<section> 163<section>
163<body> 164<body>
164 165
165<note> 166<note>
166Knoppix is only available for x86 users. 167Knoppix is only available for x86 users.
167</note> 168</note>
168 169
169<!-- this works with knoppix 3.6+ and gentoo 2004.3, 2005.0--> 170<!-- this works with knoppix 3.6+ and gentoo 2004.3, 2005.0-->
170 171
171<p> 172<p>
189kernel is too old. If, however, you have Knoppix 3.9+, this step is 190kernel is too old. If, however, you have Knoppix 3.9+, this step is
190unnecessary, since the 2.6 kernel is default. 191unnecessary, since the 2.6 kernel is default.
191</p> 192</p>
192 193
193<p> 194<p>
194By default Knoppix boots into a KDE desktop. Open a <c>konsole</c> and <c>su -</c> 195By default Knoppix boots into a KDE desktop. Open a <c>konsole</c> and <c>su
195so you can change your password. This lets you set the root password for 196-</c> so you can change your password. This lets you set the root password for
196Knoppix. You can now configure <c>sshd</c> for remote login, at your 197Knoppix. You can now configure <c>sshd</c> for remote login, at your
197preference. 198preference.
198</p> 199</p>
199 200
200<pre caption="Creating the /mnt/gentoo mountpoint"> 201<pre caption="Creating the /mnt/gentoo mountpoint">
217watch out for <c>userpriv</c> and <c>usersandbox</c>. If you find yourself 218watch out for <c>userpriv</c> and <c>usersandbox</c>. If you find yourself
218getting errors, it might be wise to disable some or all of the optional 219getting errors, it might be wise to disable some or all of the optional
219features. 220features.
220</p> 221</p>
221 222
222<!-- 223<!--
223 Commenting out due to #78716. If it needs to be restated again, note 224 Commenting out due to #78716. If it needs to be restated again, note
224 that some will require to bind-mount it, others don't, and that you have 225 that some will require to bind-mount it, others don't, and that you have
225 a 50-50 chance of winning the gold strike. 226 a 50-50 chance of winning the gold strike.
226 227
227 228
228<p> 229<p>
229You will also need to bind-mount the device tree to resolve permission issues 230You will also need to bind-mount the device tree to resolve permission issues
230with various device files. 231with various device files.
231</p> 232</p>
284<path>/etc/dhcp/dhcpd.conf</path>. 285<path>/etc/dhcp/dhcpd.conf</path>.
285</p> 286</p>
286 287
287<note> 288<note>
288This provide a static IP address for the client and the path of a PXE boot 289This provide a static IP address for the client and the path of a PXE boot
289image, here <path>pxegrub</path>. You have to replace the MAC address of the Ethernet card 290image, here <path>pxegrub</path>. You have to replace the MAC address of the
290of the client and the directory where you will put the client files with the 291Ethernet card of the client and the directory where you will put the client
291one you use. 292files with the one you use.
292</note> 293</note>
293 294
294<p> 295<p>
295For DHCPd, run <c>emerge dhcp</c> (or any other DHCP server of your choice). 296For DHCPd, run <c>emerge dhcp</c> (or any other DHCP server of your choice).
296Make sure that the correct interface is selected in 297Make sure that the correct interface is selected in
383<section> 384<section>
384<title>Creating the system on the server</title> 385<title>Creating the system on the server</title>
385<body> 386<body>
386 387
387<p> 388<p>
388You might want to reboot the server with a Gentoo Install CD, although you can 389You might want to reboot the server with a Gentoo Install CD, although you can
389very well continue immediately if you know how to proceed with the Gentoo 390very well continue immediately if you know how to proceed with the Gentoo
390Installation Instructions from an existing installation. Follow the standard 391Installation Instructions from an existing installation. Follow the standard
391install procedure as explained in the <uri link="/doc/en/handbook/">Gentoo Handbook</uri> BUT with the 392install procedure as explained in the <uri link="/doc/en/handbook/">Gentoo
392following differences: 393Handbook</uri> BUT with the following differences:
393When you mount the file system, do the following (where <path>hdaX</path> is the partition 394When you mount the file system, do the following (where <path>hdaX</path> is
394where you created the <path>/diskless</path> directory). You do not need to mount any other 395the partition where you created the <path>/diskless</path> directory). You do
395partitions as all of the files will reside in the <path>/diskless/eta</path> 396not need to mount any other partitions as all of the files will reside in the
396directory. 397<path>/diskless/eta</path> directory.
397</p> 398</p>
398 399
399<pre caption="Mounting the filesystem"> 400<pre caption="Mounting the filesystem">
400#<i> mount /dev/hdaX /mnt/gentoo</i> 401#<i> mount /dev/hdaX /mnt/gentoo</i>
401</pre> 402</pre>
447[*] Root file system on NFS 448[*] Root file system on NFS
448</pre> 449</pre>
449 450
450<p> 451<p>
451Save the kernel in your chrooted <path>/</path> (not in <path>/boot</path>) 452Save the kernel in your chrooted <path>/</path> (not in <path>/boot</path>)
452according to the pxegrub setting defined earlier. Next configure your 453according to the pxegrub setting defined earlier. Next configure your
453diskless client's <path>/etc/fstab</path>. 454diskless client's <path>/etc/fstab</path>.
454</p> 455</p>
455 456
456<pre caption="/etc/fstab"> 457<pre caption="/etc/fstab">
457# <i>nano -w /etc/fstab</i> 458# <i>nano -w /etc/fstab</i>
509</body> 510</body>
510</section> 511</section>
511</chapter> 512</chapter>
512 513
513<chapter> 514<chapter>
514<title>Installing Gentoo from an existing Linux distribution</title> 515<title>Installing Gentoo from an existing Linux distribution</title>
515<section> 516<section>
516<title>Requirements</title> 517<title>Requirements</title>
517<body> 518<body>
518 519
519<p> 520<p>
531<title>Overview</title> 532<title>Overview</title>
532<body> 533<body>
533 534
534<p> 535<p>
535We will first allocate a partition to Gentoo by resizing our existing Linux 536We will first allocate a partition to Gentoo by resizing our existing Linux
536partition, mount the partition, untar the tarball to the partition that is mounted, chroot 537partition, mount the partition, untar the tarball to the partition that is
537inside the pseudo-system and start building. Once the bootstrap process is 538mounted, chroot inside the pseudo-system and start building. Once the bootstrap
538done, we will do some final configuration on the system so as to make sure it 539process is done, we will do some final configuration on the system so as to
539boots, then we are ready to reboot and use Gentoo. 540make sure it boots, then we are ready to reboot and use Gentoo.
540</p> 541</p>
541 542
542</body> 543</body>
543</section> 544</section>
544<section> 545<section>
545<title>How should we make space for Gentoo?</title> 546<title>How should we make space for Gentoo?</title>
546<body> 547<body>
547 548
548<p> 549<p>
549The root partition is the filesystem mounted under <path>/</path>. A quick run 550The root partition is the filesystem mounted under <path>/</path>. A quick run
550of <c>mount</c> on my system shows what I am talking about. We well also use <c>df</c> (disk 551of <c>mount</c> on my system shows what I am talking about. We well also use
551free) to see how much space I have left and how I will be resizing. Note that 552<c>df</c> (disk free) to see how much space I have left and how I will be
552it is not mandatory to resize your root partition! You could be resizing 553resizing. Note that it is not mandatory to resize your root partition! You
553anything else supported by our resizer, but let's talk about that later. 554could be resizing anything else supported by our resizer, but let's talk about
555that later.
554</p> 556</p>
555 557
556<pre caption="Filesystem information"> 558<pre caption="Filesystem information">
557# <i>mount</i> 559# <i>mount</i>
558/dev/hdb2 on / type ext3 (rw) 560/dev/hdb2 on / type ext3 (rw)
559none on /proc type proc (rw) 561none on /proc type proc (rw)
560none on /dev/pts type devpts (rw,gid=5,mode=620) 562none on /dev/pts type devpts (rw,gid=5,mode=620)
561none on /dev/shm type tmpfs (rw,nodev,nosuid,noexec) 563none on /dev/shm type tmpfs (rw,nodev,nosuid,noexec)
562# <i>df -h </i> 564# <i>df -h </i>
563Filesystem Size Used Avail Use% Mounted on 565Filesystem Size Used Avail Use% Mounted on
564/dev/hdb2 4.0G 1.9G 2.4G 82% / 566/dev/hdb2 4.0G 1.9G 2.4G 82% /
565none 38M 0 38M 0% /dev/shm 567none 38M 0 38M 0% /dev/shm
566</pre> 568</pre>
567 569
568<p> 570<p>
569As we can see, the partition mounted as <path>/</path> named 571As we can see, the partition mounted as <path>/</path> named
570<path>/dev/hdb2</path> has 2.4 gigabytes free. In my case, I think I will 572<path>/dev/hdb2</path> has 2.4 gigabytes free. In my case, I think I will
574</p> 576</p>
575 577
576</body> 578</body>
577</section> 579</section>
578<section> 580<section>
579<title>Building parted to resize partition</title> 581<title>Building parted to resize partition</title>
580<body> 582<body>
581 583
582<p> 584<p>
583Parted is an utility supplied by the GNU foundation, an old and respectable 585Parted is an utility supplied by the GNU foundation, an old and respectable
584huge project whose software you are using in this very moment. There is one 586huge project whose software you are using in this very moment. There is one
588</p> 590</p>
589 591
590<note> 592<note>
591There are other tools for doing resize of partitions as well, but the author is 593There are other tools for doing resize of partitions as well, but the author is
592unsure/uninterested whether PartitionMagic(tm) or other software of the kind do 594unsure/uninterested whether PartitionMagic(tm) or other software of the kind do
593the job. It's the reader's job to check them out 595the job. It's the reader's job to check them out
594</note> 596</note>
595 597
596<p> 598<p>
597Look up on that page the type of filesystem you want to resize and see if 599Look up on that page the type of filesystem you want to resize and see if
598parted can do it. If not, you're out of luck, you will have to destroy some 600parted can do it. If not, you're out of luck, you will have to destroy some
599partition to make space for Gentoo, and reinstall back. Go ahead by downloading 601partition to make space for Gentoo, and reinstall back. Go ahead by downloading
600the software, install it. Here we have a problem. We want to resize our Linux 602the software, install it. Here we have a problem. We want to resize our Linux
601root partition, therefore we must boot from a floppy disk a minimal linux 603root partition, therefore we must boot from a floppy disk a minimal linux
620 622
621<note> 623<note>
622Note again that Linux is synonym of "There's one more way to do it". Your 624Note again that Linux is synonym of "There's one more way to do it". Your
623objective is to run parted on an unmounted partition so it can do its work. You 625objective is to run parted on an unmounted partition so it can do its work. You
624might use some boot/root diskset other than mininux. You might not even 626might use some boot/root diskset other than mininux. You might not even
625need to do this step at all, ie. you might only have umount the filesystem you want to 627need to do this step at all, ie. you might only have umount the filesystem you
626repartition in your Linux session and run parted on it. 628want to repartition in your Linux session and run parted on it.
627</note> 629</note>
628 630
629<pre caption="Utility disk creation"> 631<pre caption="Utility disk creation">
630# <i>mkfs.minix /dev/fd0</i> 632# <i>mkfs.minix /dev/fd0</i>
631480 inodes 633480 inodes
635Maxsize=268966912 637Maxsize=268966912
636</pre> 638</pre>
637 639
638<p> 640<p>
639We will now proceed with the build of parted. If it's not already downloaded 641We will now proceed with the build of parted. If it's not already downloaded
640and untarred, do so now and <c>cd</c> into the corresponding directory. Now run the 642and untarred, do so now and <c>cd</c> into the corresponding directory. Now run
641following set of commands to build the utility and copy it to your floppy disk. 643the following set of commands to build the utility and copy it to your floppy
644disk.
642</p> 645</p>
643 646
644<pre caption="Building the utility floppy"> 647<pre caption="Building the utility floppy">
645# <i> mkdir /floppy; mount -t minix /dev/fd0 /floppy &amp;&amp; 648# <i> mkdir /floppy; mount -t minix /dev/fd0 /floppy &amp;&amp;
646export CFLAGS="-O3 -pipe -fomit-frame-pointer -static" &amp;&amp; ./configure 649export CFLAGS="-O3 -pipe -fomit-frame-pointer -static" &amp;&amp; ./configure
647&amp;&amp; make &amp;&amp; cp parted/parted /floppy &amp;&amp; umount /floppy </i> 650&amp;&amp; make &amp;&amp; cp parted/parted /floppy &amp;&amp; umount /floppy </i>
648</pre> 651</pre>
649 652
650<p> 653<p>
651Congratulations, you are ready to reboot and resize your partition. Do this 654Congratulations, you are ready to reboot and resize your partition. Do this
652only after taking a quick look at the parted documentation on the GNU website. 655only after taking a quick look at the parted documentation on the GNU website.
653The resize should take under 30 minutes for the largest hard-drives, be 656The resize should take under 30 minutes for the largest hard-drives, be
654patient. Reboot your system with the mininux boot disk (just pop it inside), 657patient. Reboot your system with the mininux boot disk (just pop it inside),
655and once you are logged in, switch the disk in the drive with your utility disk 658and once you are logged in, switch the disk in the drive with your utility disk
656we have created above and type <c>mount /dev/fd0 /floppy</c> to have parted under 659we have created above and type <c>mount /dev/fd0 /floppy</c> to have parted
657<path>/floppy</path>. There you go. Run parted and you will be able to resize your 660under <path>/floppy</path>. There you go. Run parted and you will be able to
658partition. Once this lenghty process done, we are ready to have the real fun, 661resize your partition. Once this lenghty process done, we are ready to have the
659by installing Gentoo. Reboot back into your old Linux system for now. The drive you 662real fun, by installing Gentoo. Reboot back into your old Linux system for now.
660wish to operate on is the drive containing the partition we want to resize. For 663The drive you wish to operate on is the drive containing the partition we want
661example, if we want to resize /dev/hda3, the drive is /dev/hda 664to resize. For example, if we want to resize /dev/hda3, the drive is /dev/hda.
662</p> 665</p>
663 666
664<pre caption="Commands to run once logged into mininux system"> 667<pre caption="Commands to run once logged into mininux system">
665# <i>mount /dev/fd0 /floppy </i> 668# <i>mount /dev/fd0 /floppy </i>
666# <i>cd /floppy; ./parted [drive you wish to operate on]</i> 669# <i>cd /floppy; ./parted [drive you wish to operate on]</i>
667(parted) <i> print </i> 670(parted) <i> print </i>
668Disk geometry for /dev/hdb: 0.000-9787.148 megabytes 671Disk geometry for /dev/hdb: 0.000-9787.148 megabytes
669Disk label type: msdos 672Disk label type: msdos
670Minor Start End Type Filesystem Flags 673Minor Start End Type Filesystem Flags
6711 0.031 2953.125 primary ntfs 6741 0.031 2953.125 primary ntfs
6723 2953.125 3133.265 primary linux-swap 6753 2953.125 3133.265 primary linux-swap
6732 3133.266 5633.085 primary ext3 6762 3133.266 5633.085 primary ext3
6744 5633.086 9787.148 extended 6774 5633.086 9787.148 extended
6755 5633.117 6633.210 logical 6785 5633.117 6633.210 logical
6766 6633.242 9787.148 logical ext3 6796 6633.242 9787.148 logical ext3
677(parted) <i> help resize </i> 680(parted) <i> help resize </i>
678 resize MINOR START END resize filesystem on partition MINOR 681 resize MINOR START END resize filesystem on partition MINOR
679 682
680 MINOR is the partition number used by Linux. On msdos disk labels, the 683 MINOR is the partition number used by Linux. On msdos disk labels, the
681 primary partitions number from 1-4, and logical partitions are 5 684 primary partitions number from 1-4, and logical partitions are 5

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75

  ViewVC Help
Powered by ViewVC 1.1.20