/[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.20 Revision 1.21
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.20 2003/11/15 00:35:18 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/altinstall.xml,v 1.21 2004/02/19 14:30:59 swift Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5 5
6<guide link="/doc/en/altinstall.xml"> 6<guide link="/doc/en/altinstall.xml">
7<title>The Gentoo Linux alternative installation method HOWTO</title> 7<title>The Gentoo Linux alternative installation method HOWTO</title>
20This HOWTO is meant to be a repository of alternative Gentoo installation 20This HOWTO is meant to be a repository of alternative Gentoo installation
21methods, for those with special installation needs such as lack of a cdrom 21methods, for those with special installation needs such as lack of a cdrom
22or a computer that can't boot cds. 22or a computer that can't boot cds.
23</abstract> 23</abstract>
24 24
25<license/>
26
25<version>0.35</version> 27<version>0.35</version>
26<date>October 31, 2003</date> 28<date>October 31, 2003</date>
27
28<license/>
29 29
30<chapter> 30<chapter>
31<title>About this document</title> 31<title>About this document</title>
32<section> 32<section>
33<body> 33<body>
550none 38M 0 38M 0% /dev/shm 550none 38M 0 38M 0% /dev/shm
551</pre> 551</pre>
552 552
553<p>As we can see, the partition mounted as <path>/</path> named <path>/dev/hdb2</path> has 2.4 gigabytes free. In my case, I think I will resize it as to leave 400Megs free of space, therefore allocating 2 gigabytes for Gentoo. Not bad, I could have quite some stuff installed. However, think that even one gigabyte is enough for most users. So let's partition this thing! </p> 553<p>As we can see, the partition mounted as <path>/</path> named <path>/dev/hdb2</path> has 2.4 gigabytes free. In my case, I think I will resize it as to leave 400Megs free of space, therefore allocating 2 gigabytes for Gentoo. Not bad, I could have quite some stuff installed. However, think that even one gigabyte is enough for most users. So let's partition this thing! </p>
554 554
555</body> </section>
556
557<section> <title> Building parted to resize partition </title>
558<body> 555</body>
556</section>
557
558<section>
559<title>Building parted to resize partition</title>
560<body>
561
562<p>
559<p>Parted is an utility supplied by the GNU foundation, an old and respectable huge project whose software you are using in this very moment. There is one tool, however, that is extremely useful for us at the moment. It's called parted, partition editor and we can get it from <uri> 563Parted is an utility supplied by the GNU foundation, an old and respectable huge project whose software you are using in this very moment. There is one tool, however, that is extremely useful for us at the moment. It's called parted, partition editor and we can get it from <uri>http://www.gnu.org/software/parted/</uri>
560http://www.gnu.org/software/parted/</uri>
561</p> 564</p>
565
566<note>
562<note> There are other tools for doing resize of partitions as well, but author 567There are other tools for doing resize of partitions as well, but author
563is unsure/uninterested whether PartitionMagic(tm) or other software of the kind 568is unsure/uninterested whether PartitionMagic(tm) or other software of the kind
564do the job. It's the reader's job to check them out </note> 569do the job. It's the reader's job to check them out
570</note>
565 571
566<p> 572<p>
567Look up on that page the type of filesystem you want to resize and see if parted 573Look up on that page the type of filesystem you want to resize and see if parted
568can do it. If not, you're out of luck, you will have to destroy some partition 574can do it. If not, you're out of luck, you will have to destroy some partition
569to make space for Gentoo, and reinstall back. Go ahead by downloading the 575to make space for Gentoo, and reinstall back. Go ahead by downloading the
573However, if you can unmount the partition while still in Linux you are lucky, 579However, if you can unmount the partition while still in Linux you are lucky,
574you don't need to do what follows. Just compile parted and run it on an 580you don't need to do what follows. Just compile parted and run it on an
575unmounted partition you chose to resize. Here's how I did it for my system. 581unmounted partition you chose to resize. Here's how I did it for my system.
576</p> 582</p>
577 583
584<impo>
578<impo> Make sure that the operations you want to do on your partition are 585Make sure that the operations you want to do on your partition are
579supported by parted! </impo> 586supported by parted!
587</impo>
580 588
581<p> Get tomsrtbt boot/root disk (free of charge) from <uri> 589<p>
582http://freshmeat.net/tomsrtbt </uri>, create a floppy as suggested in the 590Get tomsrtbt boot/root disk (free of charge) from <uri>http://freshmeat.net/tomsrtbt </uri>, create a floppy as suggested in the Documentation that accompanies the software package and insert a new floppy in the drive for the next step.
583Documentation that accompanies the software package and insert a new floppy in 591</p>
584the drive for the next step. </p>
585 592
593<note>
586<note> Note again that Linux is synonym of "There's one more way to do it". Your 594Note again that Linux is synonym of "There's one more way to do it". Your
587objective is to run parted on an unmounted partition so it can do its work. You 595objective is to run parted on an unmounted partition so it can do its work. You
588might use some other boot/root diskset other than tomsrtbt. You might not even 596might use some other boot/root diskset other than tomsrtbt. You might not even
589need to do this step at all, that is only umount the filesystem you want to 597need to do this step at all, that is only umount the filesystem you want to
590repartition in your Linux session and run parted on it. </note> 598repartition in your Linux session and run parted on it.
599</note>
591 600
592<pre caption="Utility disk creation"> 601<pre caption="Utility disk creation">
593# <i>mkfs.minix /dev/fd0</i> 602# <i>mkfs.minix /dev/fd0</i>
594480 inodes 603480 inodes
5951440 blocks 6041440 blocks
596Firstdatazone=19 (19) 605Firstdatazone=19 (19)
597Zonesize=1024 606Zonesize=1024
598Maxsize=268966912 607Maxsize=268966912
599</pre> 608</pre>
600 609
610<p>
601We will now proceed with the build of parted. If it's not already downloaded and untarred, do so now and cd into the corresponding directory. Now run the following set of commands to build the utility and copy it to your floppy disk. 611We will now proceed with the build of parted. If it's not already downloaded and untarred, do so now and cd into the corresponding directory. Now run the following set of commands to build the utility and copy it to your floppy disk.
612</p>
602 613
603<pre caption="Building the utility floppy"> 614<pre caption="Building the utility floppy">
604# <i> mkdir /floppy; mount -t minix /dev/fd0 /floppy &amp;&amp; 615# <i> mkdir /floppy; mount -t minix /dev/fd0 /floppy &amp;&amp;
605export CFLAGS="-O3 -pipe -fomit-frame-pointer -static" &amp;&amp; ./configure 616export CFLAGS="-O3 -pipe -fomit-frame-pointer -static" &amp;&amp; ./configure
606&amp;&amp; make &amp;&amp; cp parted/parted /floppy &amp;&amp; umount /floppy </i> 617&amp;&amp; make &amp;&amp; cp parted/parted /floppy &amp;&amp; umount /floppy </i>

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20