/[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.80 Revision 1.86
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.80 2010/09/26 22:59:23 jkt Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/altinstall.xml,v 1.86 2012/07/01 18:05:02 swift Exp $ -->
4 4
5<guide> 5<guide>
6
7<title>The Gentoo Linux alternative installation method HOWTO</title> 6<title>The Gentoo Linux alternative installation method HOWTO</title>
8 7
9<author title="Contributor"> 8<author title="Contributor">
10 <mail link="gerrynjr@gentoo.org">Gerald Normandin Jr.</mail> 9 <mail link="gerrynjr@gentoo.org">Gerald Normandin Jr.</mail>
11</author> 10</author>
57 56
58<!-- The content of this document is licensed under the CC-BY-SA license --> 57<!-- The content of this document is licensed under the CC-BY-SA license -->
59<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 58<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
60<license/> 59<license/>
61 60
62<version>5</version> 61<version>11</version>
63<date>2010-09-26</date> 62<date>2012-07-01</date>
64 63
65<chapter> 64<chapter>
66<title>About this document</title> 65<title>About this document</title>
67<section> 66<section>
68<body> 67<body>
226# <i>mount -o bind /proc /mnt/gentoo/proc</i> 225# <i>mount -o bind /proc /mnt/gentoo/proc</i>
227</pre> 226</pre>
228 227
229<p> 228<p>
230When you're ready to unpack the stage tarball in <uri 229When you're ready to unpack the stage tarball in <uri
231link="/doc/en/handbook/handbook-x86.xml?part=1&amp;chap=5_sect4">part 5</uri>, you 230link="/doc/en/handbook/handbook-x86.xml?part=1&amp;chap=5#doc_chap2_sect2">part
232will need to use a different <c>tar</c> command to ensure that proper group IDs 2315</uri>, you will need to use a different <c>tar</c> command to ensure that
233are enforced on the unpacked stage: 232proper group IDs are enforced on the unpacked stage:
234</p> 233</p>
235 234
236<pre caption="Unpacking the stage tarball"> 235<pre caption="Unpacking the stage tarball">
237# <i>tar --numeric-owner -xvjpf stage3-*.tar.bz2</i> 236# <i>tar --numeric-owner -xvjpf stage3-*.tar.bz2</i>
238</pre> 237</pre>
245</p> 244</p>
246 245
247<pre caption="Chrooting into the new environment"> 246<pre caption="Chrooting into the new environment">
248<comment>(Some LiveCDs use a funny environment setup, hence the -i option for 247<comment>(Some LiveCDs use a funny environment setup, hence the -i option for
249cleaning it up to a reasonable state.)</comment> 248cleaning it up to a reasonable state.)</comment>
250# <i>chroot / /bin/env -i TERM=TERM /bin/bash</i> 249# <i>chroot /mnt/gentoo /bin/env -i TERM=$TERM /bin/bash</i>
251# <i>env-update</i> 250# <i>env-update</i>
252# <i>source /etc/profile</i> 251# <i>source /etc/profile</i>
253# <i>export PS1="(chroot) $PS1"</i> 252# <i>export PS1="(chroot) $PS1"</i>
254</pre> 253</pre>
255 254
292<section> 291<section>
293<title>Requirements</title> 292<title>Requirements</title>
294<body> 293<body>
295 294
296<p> 295<p>
297You will need a network card on the diskless client that uses the PXE protocol 296PXE (Preboot eXecution Environment) is a method for booting computers over
298to boot, like many 3com cards. You will also need a BIOS that supports booting 297a PXE-capable network interface (and using a PXE-supporting BIOS). It is
299from PXE. 298also supported as a boot method from block devices (like CDs or USBs) in
299case the system does not support PXE boot from the network interface or
300BIOS. In such cases, a minimal boot environment mimics the PXE supporting
301network card (see also <uri link="http://etherboot.org">Etherboot/gPXE</uri>).
300</p> 302</p>
301 303
302</body> 304</body>
303</section> 305</section>
304<section> 306<section>
348} 350}
349</pre> 351</pre>
350 352
351<p> 353<p>
352Next you'll need to configure your interface in <path>/etc/conf.d/net</path> so 354Next you'll need to configure your interface in <path>/etc/conf.d/net</path> so
353that it doesn't get cleared at bootup. See <path>/etc/conf.d/net.example</path> 355that it doesn't get cleared at bootup. See
354for more information. 356<path>/usr/share/doc/openrc-*/net.example.bz2</path> for more information.
355</p> 357</p>
356 358
357<pre caption="/etc/conf.d/net"> 359<pre caption="/etc/conf.d/net">
358<comment>(Replace eth0 with the correct interface)</comment> 360<comment>(Replace eth0 with the correct interface)</comment>
359config_eth0=( "noop" ) 361config_eth0=( "noop" )
428You might want to reboot the server with a Gentoo Install CD, although you can 430You might want to reboot the server with a Gentoo Install CD, although you can
429very well continue immediately if you know how to proceed with the Gentoo 431very well continue immediately if you know how to proceed with the Gentoo
430Installation Instructions from an existing installation. Follow the standard 432Installation Instructions from an existing installation. Follow the standard
431install procedure as explained in the <uri link="/doc/en/handbook/">Gentoo 433install procedure as explained in the <uri link="/doc/en/handbook/">Gentoo
432Handbook</uri> BUT with the following differences: 434Handbook</uri> BUT with the following differences:
433When you mount the file system, do the following (where <path>hdaX</path> is 435When you mount the file system, do the following (where <path>sdaX</path> is
434the partition where you created the <path>/diskless</path> directory). You do 436the partition where you created the <path>/diskless</path> directory). You do
435not need to mount any other partitions as all of the files will reside in the 437not need to mount any other partitions as all of the files will reside in the
436<path>/diskless/eta</path> directory. 438<path>/diskless/eta</path> directory.
437</p> 439</p>
438 440
439<pre caption="Mounting the filesystem"> 441<pre caption="Mounting the filesystem">
440#<i> mount /dev/hdaX /mnt/gentoo</i> 442#<i> mount /dev/sdaX /mnt/gentoo</i>
441</pre> 443</pre>
442 444
443<p> 445<p>
444Stage tarballs and chroot: This example uses a stage3 tarball. Mount 446Stage tarballs and chroot: This example uses a stage3 tarball. Mount
445<path>/proc</path> to your diskless directory and chroot into it to continue 447<path>/proc</path> to your diskless directory and chroot into it to continue
494</p> 496</p>
495 497
496<pre caption="/etc/fstab"> 498<pre caption="/etc/fstab">
497# <i>nano -w /etc/fstab</i> 499# <i>nano -w /etc/fstab</i>
498/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 500/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
499proc /proc proc defaults 0 0
500tmpfs /dev/shm tmpfs nodev,nosuid,noexec 0 0
501</pre> 501</pre>
502 502
503<p> 503<p>
504You also need to prevent the client to run a filesystem check: 504You also need to prevent the client to run a filesystem check:
505</p> 505</p>
594that later. 594that later.
595</p> 595</p>
596 596
597<pre caption="Filesystem information"> 597<pre caption="Filesystem information">
598# <i>mount</i> 598# <i>mount</i>
599/dev/hdb2 on / type ext3 (rw) 599/dev/sdb2 on / type ext3 (rw)
600none on /proc type proc (rw) 600none on /proc type proc (rw)
601none on /dev/pts type devpts (rw,gid=5,mode=620) 601none on /dev/pts type devpts (rw,gid=5,mode=620)
602none on /dev/shm type tmpfs (rw,nodev,nosuid,noexec) 602none on /dev/shm type tmpfs (rw,nodev,nosuid,noexec)
603# <i>df -h </i> 603# <i>df -h </i>
604Filesystem Size Used Avail Use% Mounted on 604Filesystem Size Used Avail Use% Mounted on
605/dev/hdb2 4.0G 1.9G 2.4G 82% / 605/dev/sdb2 4.0G 1.9G 2.4G 82% /
606none 38M 0 38M 0% /dev/shm 606none 38M 0 38M 0% /dev/shm
607</pre> 607</pre>
608 608
609<p> 609<p>
610As we can see, the partition mounted as <path>/</path> named 610As we can see, the partition mounted as <path>/</path> named
611<path>/dev/hdb2</path> has 2.4 gigabytes free. In my case, I think I will 611<path>/dev/sdb2</path> has 2.4 gigabytes free. In my case, I think I will
612resize it as to leave 400Megs free of space, therefore allocating 2 gigabytes 612resize it as to leave 400Megs free of space, therefore allocating 2 gigabytes
613for Gentoo. Not bad, I could have quite some stuff installed. However, I think 613for Gentoo. Not bad, I could have quite some stuff installed. However, I think
614that even one gigabyte is enough for most users. So let's partition this thing! 614that even one gigabyte is enough for most users. So let's partition this thing!
615</p> 615</p>
616 616
698we have created above and type <c>mount /dev/fd0 /floppy</c> to have parted 698we have created above and type <c>mount /dev/fd0 /floppy</c> to have parted
699under <path>/floppy</path>. There you go. Run parted and you will be able to 699under <path>/floppy</path>. There you go. Run parted and you will be able to
700resize your partition. Once this lenghty process done, we are ready to have the 700resize your partition. Once this lenghty process done, we are ready to have the
701real fun, by installing Gentoo. Reboot back into your old Linux system for now. 701real fun, by installing Gentoo. Reboot back into your old Linux system for now.
702The drive you wish to operate on is the drive containing the partition we want 702The drive you wish to operate on is the drive containing the partition we want
703to resize. For example, if we want to resize /dev/hda3, the drive is /dev/hda. 703to resize. For example, if we want to resize /dev/sda3, the drive is /dev/sda.
704</p> 704</p>
705 705
706<pre caption="Commands to run once logged into mininux system"> 706<pre caption="Commands to run once logged into mininux system">
707# <i>mount /dev/fd0 /floppy </i> 707# <i>mount /dev/fd0 /floppy </i>
708# <i>cd /floppy; ./parted [drive you wish to operate on]</i> 708# <i>cd /floppy; ./parted [drive you wish to operate on]</i>
709(parted) <i> print </i> 709(parted) <i> print </i>
710Disk geometry for /dev/hdb: 0.000-9787.148 megabytes 710Disk geometry for /dev/sdb: 0.000-9787.148 megabytes
711Disk label type: msdos 711Disk label type: msdos
712Minor Start End Type Filesystem Flags 712Minor Start End Type Filesystem Flags
7131 0.031 2953.125 primary ntfs 7131 0.031 2953.125 primary ntfs
7143 2953.125 3133.265 primary linux-swap 7143 2953.125 3133.265 primary linux-swap
7152 3133.266 5633.085 primary ext3 7152 3133.266 5633.085 primary ext3

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.86

  ViewVC Help
Powered by ViewVC 1.1.20