* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2011-08-23 17:31 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2011-08-23 17:31 UTC (permalink / raw
To: gentoo-doc-cvs
swift 11/08/23 17:31:34
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #370479 - Introduce partitioning with parted too (at least for x86/amd64) and mention the use case of >2TB
Revision Changes Path
1.15 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.14&r2=1.15
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- hb-install-x86+amd64-disk.xml 22 Aug 2011 17:18:23 -0000 1.14
+++ hb-install-x86+amd64-disk.xml 23 Aug 2011 17:31:34 -0000 1.15
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.14 2011/08/22 17:18:23 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.15 2011/08/23 17:31:34 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>7</version>
-<date>2011-08-22</date>
+<version>8</version>
+<date>2011-08-23</date>
<section>
<title>Introduction to Block Devices</title>
@@ -118,7 +118,10 @@
If you are interested in knowing how big a partition should be, or even how
many partitions you need, read on. Otherwise continue now with partitioning
your disk by reading <uri link="#fdisk">Using fdisk to Partition your
-Disk</uri>.
+Disk</uri> or <uri link="#parted">Using parted to Partition your Disk</uri>
+(both are partitioning tools, <c>fdisk</c> is well known and stable,
+<c>parted</c> is a bit more recent but supports partitions larger than
+2TB).
</p>
</body>
@@ -209,9 +212,16 @@
<subsection>
<body>
+<impo>
+If your environment will deal with partitions larger than 2 TB, please
+use the <uri link="#parted">Using parted to Partition your Disk</uri>
+instructions instead. <c>fdisk</c> is not able to deal with larger
+partitions.
+</impo>
+
<p>
The following parts explain how to create the example partition layout
-described previously, namely:
+using <c>fdisk</c>. The example partition layout was mentioned earlier:
</p>
<table>
@@ -466,6 +476,204 @@
</body>
</subsection>
</section>
+<section id="parted">
+<title>Using parted to Partition your Disk</title>
+<subsection>
+<body>
+
+<p>
+In this chapter, we guide you through the creation of the example partition
+layout mentioned earlier in the instructions. Unlike the previous chapter, we
+describe the method using the <c>parted</c> application instead. Both
+<c>parted</c> and <c>fdisk</c> offer the same functions, so if you partitioned
+your system using <c>fdisk</c> already, you can skip this section and continue
+with <uri link="#filesystems">Creating Filesystems</uri>.
+</p>
+
+<p>
+The example partition layout we use is shown in the next table:
+</p>
+
+<table>
+<tr>
+ <th>Partition</th>
+ <th>Description</th>
+</tr>
+<tr>
+ <ti><path>/dev/sda1</path></ti>
+ <ti>Boot partition</ti>
+</tr>
+<tr>
+ <ti><path>/dev/sda2</path></ti>
+ <ti>Swap partition</ti>
+</tr>
+<tr>
+ <ti><path>/dev/sda3</path></ti>
+ <ti>Root partition</ti>
+</tr>
+</table>
+
+<p>
+Change your partition layout according to your own preference.
+</p>
+
+</body>
+</subsection>
+<subsection>
+<title>Viewing the Current Partition Layout</title>
+<body>
+
+<p>
+The <c>parted</c> application is a somewhat more modern variant of
+<c>fdisk</c>. It offers a simpler interface for partitioning your disks and
+supports very large partitions (more than 2 TB). Fire up <c>parted</c> on your
+disk (in our example, we use <path>/dev/sda</path>):
+</p>
+
+<pre caption="Starting parted">
+# <i>parted /dev/sda</i>
+GNU Parted 2.3
+Using /dev/vda
+Welcome to GNU Parted! Type 'help' to view a list of commands.
+</pre>
+
+<p>
+To find out about all options supported by <c>parted</c>, type <c>help</c> and
+press return. For now, we just continue by asking <c>parted</c> to show the
+partitions currently in use on the selected disk. The <c>print</c> command can
+be used for that.
+</p>
+
+<pre caption="An example partition configuration shown by parted">
+(parted) <i>print</i>
+Model: SCSI Block Device
+Disk /dev/sda: 21.5GB
+Sector size (logical/physical): 512B/512B
+Partition Table: msdos
+
+Number Start End Size Type File system Flags
+ 1 512B 2148MB 2148MB primary ext4
+ 2 2148MB 3222MB 1074MB primary linux-swap(v1)
+ 3 3222MB 21.5GB 18.3GB primary lvm
+</pre>
+
+</body>
+</subsection>
+<subsection>
+<title>Optional: Setting the GPT Label</title>
+<body>
+
+<p>
+Most disks on x86/amd64 are prepared using an <e>msdos</e> label. However, if
+you plan on creating huge partitions (2 TB and more), you must use a <e>gpt</e>
+label (the <e>GUID Partition Type</e>) for your disk. Using <c>parted</c>, this
+can be accomplished with <c>mklabel gpt</c>:
+</p>
+
+<warn>
+Changing the partition type will remove all partitions from your disk. All data
+on the disk will be lost.
+</warn>
+
+<pre caption="Setting the GPT label">
+(parted) <i>mklabel gpt</i>
+</pre>
+
+</body>
+</subsection>
+<subsection>
+<title>Removing all Partitions</title>
+<body>
+
+<p>
+If this isn't done yet (for instance through the <c>mklabel</c> operation
+earlier, or because the disk is a freshly formatted one), we will first
+remove all existing partitions from the disk. Type <c>rm <number></c>
+where <number> is the partition you want to remove.
+</p>
+
+<pre caption="Removing a partition from the disk">
+(parted) <i>rm 2</i>
+</pre>
+
+<p>
+Do the same for all other partitions that you don't need. However, make sure you
+do not make any mistakes here - <c>parted</c> executes the changes immediate
+(unlike <c>fdisk</c> which stages them, allowing a user to "undo" his changes
+before saving or exiting <c>fdisk</c>).
+</p>
+
+</body>
+</subsection>
+<subsection>
+<title>Creating the Partitions</title>
+<body>
+
+<p>
+Now let's create the partitions we mentioned earlier. Creating partitions with
+<c>parted</c> isn't very difficult - all we need to do is inform <c>parted</c>
+about the following settings:
+</p>
+
+<ul>
+ <li>
+ The <e>partition type</e> to use. This usually is <e>primary</e> in case you
+ are not going to have more than 4 partitions (with the <e>msdos</e>
+ partition label). Otherwise, you will need to make your fourth partition an
+ <e>extended</e> one which hosts the rest of the disk, and create
+ <e>logical</e> partitions inside it. If you use a <e>gpt</e>-labeled
+ partition, then there is no limit on the number of primary partitions.
+ </li>
+ <li>
+ The <e>file system type</e> to use. The <c>parted</c> application supports
+ most common file systems and knows which kind of partition ID it needs to
+ use for these partitions. This does <e>not</e> mean that <c>parted</c> will
+ create a file system on the partition (you can with the <c>mkpartfs</c>
+ command, but we'll use the regular <c>mkfs.*</c> commands later for this
+ purpose). The partition ID is often used by auto-detection tools to know
+ what to do with a particular partition.
+ </li>
+ <li>
+ The start location of a partition (which can be expressed in MB or GB)
+ </li>
+ <li>
+ The end location of the partition (which can be expressed in MB or GB)
+ </li>
+</ul>
+
+<p>
+One advantage of <c>parted</c> is that you can easily just use the partition
+sizes to automatically find the correct start and end location as you will see
+in the next example.
+</p>
+
+<pre caption="Creating the partitions">
+<comment># Create a 32 mbyte /boot partition</comment>
+(parted) <i>mkpart primary ext2 0 32mb</i>
+Warning: The resulting partition is not properly aligned for best performance.
+Ignore/Cancel? <i>i</i>
+
+<comment># Create a 512 mbyte swap partition</comment>
+(parted) <i>mkpart primary linux-swap 32mb 542mb</i>
+
+<comment># Create a partition that spans the remaining disk.
+# -1s (minus one s) means the end of the disk</comment>
+(parted) <i>mkpart primary ext4 542mb -1s</i>
+Warning: You requested a partition from 542MB to 21.5GB.
+The closest location we can manage is 542MB to 21.5GB.
+Is this still acceptable to you?
+Yes/No? <i>y</i>
+</pre>
+
+<p>
+You can now <c>print</c> the partition layout again to validate if everything is
+as expected. When you are satisfied, use the <c>quit</c> command to exit
+<c>parted</c>.
+</p>
+
+</body>
+</subsection>
+</section>
<section id="filesystems">
<title>Creating Filesystems</title>
<subsection>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2014-01-23 19:43 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2014-01-23 19:43 UTC (permalink / raw
To: gentoo-doc-cvs
swift 14/01/23 19:43:16
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #496564 - More truthful explanation of MBR and 32-bit stuff
Revision Changes Path
1.40 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.40&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.40&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.39&r2=1.40
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- hb-install-x86+amd64-disk.xml 31 Dec 2013 20:43:07 -0000 1.39
+++ hb-install-x86+amd64-disk.xml 23 Jan 2014 19:43:16 -0000 1.40
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.39 2013/12/31 20:43:07 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.40 2014/01/23 19:43:16 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>31</version>
-<date>2013-12-31</date>
+<version>32</version>
+<date>2014-01-23</date>
<section>
<title>Introduction to Block Devices</title>
@@ -37,7 +37,8 @@
<p>
The <e>MBR (Master Boot Record)</e> setup uses 32-bit identifiers for
-partitions, and supports three partition types: <e>primary</e>,
+the start sector and length of the partitions, and supports three partition
+types: <e>primary</e>,
<e>extended</e> and <e>logical</e>. Primary partitions have their information
stored in the master boot record itself - a very small (usually 512 bytes)
location at the very beginning of a disk. Due to this small space, only four
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-31 20:43 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-31 20:43 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/31 20:43:07
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #496574 - Fix caption for BIOS boot partition
Revision Changes Path
1.39 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.39&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.39&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.38&r2=1.39
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- hb-install-x86+amd64-disk.xml 31 Dec 2013 20:37:40 -0000 1.38
+++ hb-install-x86+amd64-disk.xml 31 Dec 2013 20:43:07 -0000 1.39
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.38 2013/12/31 20:37:40 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.39 2013/12/31 20:43:07 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>30</version>
+<version>31</version>
<date>2013-12-31</date>
<section>
@@ -685,7 +685,7 @@
detect this partition as being available for its use.
</note>
-<pre caption="Creating the boot partition">
+<pre caption="Creating the BIOS boot partition">
Command (m for help): <i>n</i>
Command action
e extended
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-31 20:37 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-31 20:37 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/31 20:37:40
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #496572 - Parted uses locations, not sizes
Revision Changes Path
1.38 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.38&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.38&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.37&r2=1.38
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- hb-install-x86+amd64-disk.xml 31 Dec 2013 20:34:17 -0000 1.37
+++ hb-install-x86+amd64-disk.xml 31 Dec 2013 20:37:40 -0000 1.38
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.37 2013/12/31 20:34:17 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.38 2013/12/31 20:37:40 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>29</version>
+<version>30</version>
<date>2013-12-31</date>
<section>
@@ -479,7 +479,7 @@
<p>
Do the same for the boot partition (128 MB), swap partition (in the example,
512 MB) and the root partition that spans the remaining disk (for which the
-end size is marked as <c>-1</c>, meaning the end of the disk minus one MB,
+end location is marked as <c>-1</c>, meaning the end of the disk minus one MB,
which is the farthest a partition can go).
</p>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-31 20:34 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-31 20:34 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/31 20:34:18
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #496570 - Correct caption
Revision Changes Path
1.37 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.37&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.37&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.36&r2=1.37
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- hb-install-x86+amd64-disk.xml 31 Dec 2013 20:33:00 -0000 1.36
+++ hb-install-x86+amd64-disk.xml 31 Dec 2013 20:34:17 -0000 1.37
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.36 2013/12/31 20:33:00 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.37 2013/12/31 20:34:17 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>28</version>
+<version>29</version>
<date>2013-12-31</date>
<section>
@@ -462,7 +462,7 @@
from 1 MB and end at 3 MB (creating a partition of 2 MB in size).
</p>
-<pre caption="Creating a 128 MB partition">
+<pre caption="Creating a 2 MB partition">
(parted) <i>mkpart primary 1 3</i>
(parted) <i>name 1 grub</i>
(parted) <i>set 1 bios_grub on</i>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-31 20:33 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-31 20:33 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/31 20:33:00
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #496566 - Make size expressions non-limitative
Revision Changes Path
1.36 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.36&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.36&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.35&r2=1.36
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- hb-install-x86+amd64-disk.xml 30 Dec 2013 15:54:39 -0000 1.35
+++ hb-install-x86+amd64-disk.xml 31 Dec 2013 20:33:00 -0000 1.36
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.35 2013/12/30 15:54:39 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.36 2013/12/31 20:33:00 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>27</version>
-<date>2013-12-30</date>
+<version>28</version>
+<date>2013-12-31</date>
<section>
<title>Introduction to Block Devices</title>
@@ -439,10 +439,10 @@
a partition <e>extended</e> and create <e>logical</e> partitions inside it.
</li>
<li>
- The start location of a partition (which can be expressed in MB or GB)
+ The start location of a partition (which can be expressed in MB, GB, ...)
</li>
<li>
- The end location of the partition (which can be expressed in MB or GB)
+ The end location of the partition (which can be expressed in MB, GB, ...)
</li>
</ul>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-30 15:54 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-30 15:54 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/30 15:54:39
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #496482 - Second partition bootable, not first
Revision Changes Path
1.35 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.35&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.35&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.34&r2=1.35
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- hb-install-x86+amd64-disk.xml 29 Dec 2013 11:20:26 -0000 1.34
+++ hb-install-x86+amd64-disk.xml 30 Dec 2013 15:54:39 -0000 1.35
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.34 2013/12/29 11:20:26 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.35 2013/12/30 15:54:39 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>26</version>
-<date>2013-12-29</date>
+<version>27</version>
+<date>2013-12-30</date>
<section>
<title>Introduction to Block Devices</title>
@@ -750,7 +750,7 @@
<p>
We need to make this partition bootable. Type <c>a</c> to toggle the bootable
-flag on a partition and select <c>1</c>. If you press <c>p</c> again, you will
+flag on a partition and select <c>2</c>. If you press <c>p</c> again, you will
notice that an <e>*</e> is placed in the "Boot" column.
</p>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-29 11:20 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-29 11:20 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/29 11:20:27
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #496338 - Correct instructions for bios boot partition (2M in size, not 32M). Thanks to "BT" for reporting.
Revision Changes Path
1.34 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.34&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.34&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.33&r2=1.34
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- hb-install-x86+amd64-disk.xml 22 Dec 2013 18:57:54 -0000 1.33
+++ hb-install-x86+amd64-disk.xml 29 Dec 2013 11:20:26 -0000 1.34
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.33 2013/12/22 18:57:54 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.34 2013/12/29 11:20:26 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>25</version>
-<date>2013-12-22</date>
+<version>26</version>
+<date>2013-12-29</date>
<section>
<title>Introduction to Block Devices</title>
@@ -676,7 +676,7 @@
partition, then <c>p</c> to select a primary partition, followed by <c>1</c> to
select the first primary partition. When prompted for the first sector, make sure
it starts from <c>2048</c> (which is needed for the boot loader) and hit enter. When
-prompted for the last sector, type <c>+32M</c> to create a partition 32 Mbyte
+prompted for the last sector, type <c>+2M</c> to create a partition 2 Mbyte
in size:
</p>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-19 13:33 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-19 13:33 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/19 13:33:34
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #494742 - Remove example df output as it still confuses users
Revision Changes Path
1.32 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.32&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.32&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.31&r2=1.32
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- hb-install-x86+amd64-disk.xml 18 Dec 2013 15:01:59 -0000 1.31
+++ hb-install-x86+amd64-disk.xml 19 Dec 2013 13:33:33 -0000 1.32
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.31 2013/12/18 15:01:59 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.32 2013/12/19 13:33:33 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>23</version>
+<version>24</version>
<date>2013-12-18</date>
<section>
@@ -243,35 +243,6 @@
labels.
</p>
-<p>
-As an example partitioning, we show you one for a 20GB disk, used as a
-demonstration laptop (containing webserver, mailserver, gnome, ...):
-</p>
-
-<pre caption="Filesystem usage example">
-$ <i>df -h</i>
-Filesystem Type Size Used Avail Use% Mounted on
-/dev/sda5 ext4 509M 132M 351M 28% /
-/dev/sda2 ext4 5.0G 3.0G 1.8G 63% /home
-/dev/sda7 ext4 7.9G 6.2G 1.3G 83% /usr
-/dev/sda8 ext4 1011M 483M 477M 51% /opt
-/dev/sda9 ext4 2.0G 607M 1.3G 32% /var
-/dev/sda1 ext2 51M 17M 31M 36% /boot
-/dev/sda6 swap 1516M 12M 1.4G 1% <not mounted>
-<comment>(Unpartitioned space for future usage: 1 GB)</comment>
-</pre>
-
-<p>
-<path>/usr</path> is rather full (83% used) here, but once
-all software is installed, <path>/usr</path> doesn't tend to grow that much.
-Although allocating a few gigabytes of disk space for <path>/var</path> may
-seem excessive, remember that Portage uses this partition by default for
-compiling packages. If you want to keep <path>/var</path> at a more reasonable
-size, such as 1GB, you will need to alter your <c>PORTAGE_TMPDIR</c> variable
-in <path>/etc/portage/make.conf</path> to point to the partition with enough
-free space for compiling extremely large packages such as LibreOffice.
-</p>
-
</body>
</subsection>
<subsection>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-18 15:01 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-18 15:01 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/18 15:01:59
Modified: hb-install-x86+amd64-disk.xml
Log:
Use GRUB2 naming consistently
Revision Changes Path
1.31 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.31&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.31&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.30&r2=1.31
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- hb-install-x86+amd64-disk.xml 18 Dec 2013 11:40:44 -0000 1.30
+++ hb-install-x86+amd64-disk.xml 18 Dec 2013 15:01:59 -0000 1.31
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.30 2013/12/18 11:40:44 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.31 2013/12/18 15:01:59 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>22</version>
+<version>23</version>
<date>2013-12-18</date>
<section>
@@ -304,7 +304,7 @@
<p>
A BIOS boot partition is a very small (1 to 2 MB) partition in which
-bootloaders like GRUB can put additional data that doesn't fit in the
+bootloaders like GRUB2 can put additional data that doesn't fit in the
allocated storage (a few hundred bytes in case of MBR) and cannot place
elsewhere.
</p>
@@ -318,8 +318,8 @@
<p>
For completeness, we can say that the BIOS boot partition is needed when
-GPT partition layout is used with GRUB, or when the MBR partition layout
-is used with GRUB when the first partition starts earlier than the 1 MB
+GPT partition layout is used with GRUB2, or when the MBR partition layout
+is used with GRUB2 when the first partition starts earlier than the 1 MB
location on the disk.
</p>
@@ -483,7 +483,7 @@
</pre>
<p>
-Now create a 2 MB partition that will be used by the GRUB bootloader later.
+Now create a 2 MB partition that will be used by the GRUB2 bootloader later.
We use the <c>mkpart</c> command for this, and inform <c>parted</c> to start
from 1 MB and end at 3 MB (creating a partition of 2 MB in size).
</p>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-18 11:40 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-18 11:40 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/18 11:40:44
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix vda->sda typo
Revision Changes Path
1.30 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.30&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.30&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.29&r2=1.30
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- hb-install-x86+amd64-disk.xml 18 Dec 2013 10:13:54 -0000 1.29
+++ hb-install-x86+amd64-disk.xml 18 Dec 2013 11:40:44 -0000 1.30
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.29 2013/12/18 10:13:54 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.30 2013/12/18 11:40:44 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>21</version>
+<version>22</version>
<date>2013-12-18</date>
<section>
@@ -380,7 +380,7 @@
<pre caption="Starting parted">
# <i>parted -a optimal /dev/sda</i>
GNU Parted 2.3
-Using /dev/vda
+Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
</pre>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-17 10:09 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-17 10:09 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/17 10:09:50
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix typo (bug #489782)
Revision Changes Path
1.28 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.28&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.28&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.27&r2=1.28
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- hb-install-x86+amd64-disk.xml 17 Dec 2013 10:08:59 -0000 1.27
+++ hb-install-x86+amd64-disk.xml 17 Dec 2013 10:09:49 -0000 1.28
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.27 2013/12/17 10:08:59 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.28 2013/12/17 10:09:49 swift Exp $ -->
<sections>
@@ -634,7 +634,7 @@
<p>
Do the same for all other partitions that you don't need. However, make sure you
-do not make any mistakes here - <c>parted</c> executes the changes immediate
+do not make any mistakes here - <c>parted</c> executes the changes immediately
(unlike <c>fdisk</c> which stages them, allowing a user to "undo" his changes
before saving or exiting <c>fdisk</c>).
</p>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-17 9:26 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-17 9:26 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/17 09:26:33
Modified: hb-install-x86+amd64-disk.xml
Log:
fdisk now uses sectors, need to have initial sector at 2048 or later for GRUB2
Revision Changes Path
1.26 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.26&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.26&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.25&r2=1.26
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- hb-install-x86+amd64-disk.xml 17 Dec 2013 09:13:22 -0000 1.25
+++ hb-install-x86+amd64-disk.xml 17 Dec 2013 09:26:33 -0000 1.26
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.25 2013/12/17 09:13:22 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.26 2013/12/17 09:26:33 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>18</version>
+<version>19</version>
<date>2013-12-17</date>
<section>
@@ -389,8 +389,9 @@
<p>
We first create a small boot partition. Type <c>n</c> to create a new partition,
then <c>p</c> to select a primary partition, followed by <c>1</c> to select the
-first primary partition. When prompted for the first cylinder, hit enter. When
-prompted for the last cylinder, type <c>+32M</c> to create a partition 32 Mbyte
+first primary partition. When prompted for the first sector, make sure it starts
+from <c>2048</c> (which is needed for the boot loader) and hit enter. When
+prompted for the last sector, type <c>+32M</c> to create a partition 32 Mbyte
in size:
</p>
@@ -401,9 +402,8 @@
p primary partition (1-4)
<i>p</i>
Partition number (1-4): <i>1</i>
-First cylinder (1-3876, default 1): <comment>(Hit Enter)</comment>
-Using default value 1
-Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): <i>+32M</i>
+First sector (64-10486533532, default 64): <i>2048</i>
+Last sector, +sectors +size{M,K,G} (4096-10486533532, default 10486533532): <i>+32M</i>
</pre>
<p>
@@ -437,8 +437,8 @@
Let's now create the swap partition. To do this, type <c>n</c> to create a new
partition, then <c>p</c> to tell fdisk that you want a primary partition. Then
type <c>2</c> to create the second primary partition, <path>/dev/sda2</path> in
-our case. When prompted for the first cylinder, hit enter. When prompted for
-the last cylinder, type <c>+512M</c> (or any other size you need for the swap
+our case. When prompted for the first sector, hit enter. When prompted for
+the last sector, type <c>+512M</c> (or any other size you need for the swap
space) to create a partition 512MB in size.
</p>
@@ -471,8 +471,8 @@
Finally, let's create the root partition. To do this, type <c>n</c> to create a
new partition, then <c>p</c> to tell fdisk that you want a primary partition.
Then type <c>3</c> to create the third primary partition, <path>/dev/sda3</path>
-in our case. When prompted for the first cylinder, hit enter. When prompted for
-the last cylinder, hit enter to create a partition that takes up the rest of the
+in our case. When prompted for the first sector, hit enter. When prompted for
+the last sector, hit enter to create a partition that takes up the rest of the
remaining space on your disk. After completing these steps, typing <c>p</c>
should display a partition table that looks similar to this:
</p>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-17 9:13 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-17 9:13 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/17 09:13:22
Modified: hb-install-x86+amd64-disk.xml
Log:
Move swap info to its own section
Revision Changes Path
1.25 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.25&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.25&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.24&r2=1.25
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- hb-install-x86+amd64-disk.xml 17 Dec 2013 09:10:19 -0000 1.24
+++ hb-install-x86+amd64-disk.xml 17 Dec 2013 09:13:22 -0000 1.25
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.24 2013/12/17 09:10:19 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.25 2013/12/17 09:13:22 swift Exp $ -->
<sections>
@@ -13,7 +13,7 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>17</version>
+<version>18</version>
<date>2013-12-17</date>
<section>
@@ -214,6 +214,30 @@
</body>
</subsection>
+<subsection>
+<title>What about swap space?</title>
+<body>
+
+<p>
+There is no perfect value for the swap partition. The purpose of swap space is
+to provide disk storage to the kernel when internal memory (RAM) is under
+pressure. A swap space allows for the kernel to move memory pages that are
+not likely to be accessed soon to disk (swap or page-out), freeing memory. Of
+course, if that memory is suddenly needed, these pages need to be put back in
+memory (page-in) which will take a while (as disks are very slow compared to
+internal memory).
+</p>
+
+<p>
+If you are not going to run memory intensive applications or you have lots of
+memory available, then you probably do not need much swap space. However, swap
+space is also used to store the entire memory in case of hibernation. If you
+plan on using hibernation, you will need a bigger swap space, often at least
+the amount of memory you have in your system.
+</p>
+
+</body>
+</subsection>
</section>
<section id="fdisk">
<title>Using fdisk to Partition your Disk</title>
@@ -414,25 +438,8 @@
partition, then <c>p</c> to tell fdisk that you want a primary partition. Then
type <c>2</c> to create the second primary partition, <path>/dev/sda2</path> in
our case. When prompted for the first cylinder, hit enter. When prompted for
-the last cylinder, type <c>+512M</c> to create a partition 512MB in size.
-</p>
-
-<p>
-There is no perfect value for the swap partition. The purpose of swap space is
-to provide disk storage to the kernel when internal memory (RAM) is under
-pressure. A swap space allows for the kernel to move memory pages that are
-not likely to be accessed soon to disk (swap or page-out), freeing memory. Of
-course, if that memory is suddenly needed, these pages need to be put back in
-memory (page-in) which will take a while (as disks are very slow compared to
-internal memory).
-</p>
-
-<p>
-If you are not going to run memory intensive applications or you have lots of
-memory available, then you probably do not need much swap space. However, swap
-space is also used to store the entire memory in case of hibernation. If you
-plan on using hibernation, you will need a bigger swap space, often at least
-the amount of memory you have in your system.
+the last cylinder, type <c>+512M</c> (or any other size you need for the swap
+space) to create a partition 512MB in size.
</p>
<p>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-12-17 9:10 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-12-17 9:10 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/12/17 09:10:19
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #445626 - Add info on swap space and possible sizing
Revision Changes Path
1.24 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.24&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.24&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.23&r2=1.24
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- hb-install-x86+amd64-disk.xml 11 Apr 2013 18:25:12 -0000 1.23
+++ hb-install-x86+amd64-disk.xml 17 Dec 2013 09:10:19 -0000 1.24
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.23 2013/04/11 18:25:12 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.24 2013/12/17 09:10:19 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>16</version>
-<date>2013-04-11</date>
+<version>17</version>
+<date>2013-12-17</date>
<section>
<title>Introduction to Block Devices</title>
@@ -103,7 +103,7 @@
<tr>
<ti><path>/dev/sda2</path></ti>
<ti>(swap)</ti>
- <ti>512M</ti>
+ <ti>512M or higher</ti>
<ti>Swap partition</ti>
</tr>
<tr>
@@ -197,8 +197,8 @@
/dev/sda8 ext4 1011M 483M 477M 51% /opt
/dev/sda9 ext4 2.0G 607M 1.3G 32% /var
/dev/sda1 ext2 51M 17M 31M 36% /boot
-/dev/sda6 swap 516M 12M 504M 2% <not mounted>
-<comment>(Unpartitioned space for future usage: 2 GB)</comment>
+/dev/sda6 swap 1516M 12M 1.4G 1% <not mounted>
+<comment>(Unpartitioned space for future usage: 1 GB)</comment>
</pre>
<p>
@@ -414,8 +414,29 @@
partition, then <c>p</c> to tell fdisk that you want a primary partition. Then
type <c>2</c> to create the second primary partition, <path>/dev/sda2</path> in
our case. When prompted for the first cylinder, hit enter. When prompted for
-the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After
-you've done this, type <c>t</c> to set the partition type, <c>2</c> to select
+the last cylinder, type <c>+512M</c> to create a partition 512MB in size.
+</p>
+
+<p>
+There is no perfect value for the swap partition. The purpose of swap space is
+to provide disk storage to the kernel when internal memory (RAM) is under
+pressure. A swap space allows for the kernel to move memory pages that are
+not likely to be accessed soon to disk (swap or page-out), freeing memory. Of
+course, if that memory is suddenly needed, these pages need to be put back in
+memory (page-in) which will take a while (as disks are very slow compared to
+internal memory).
+</p>
+
+<p>
+If you are not going to run memory intensive applications or you have lots of
+memory available, then you probably do not need much swap space. However, swap
+space is also used to store the entire memory in case of hibernation. If you
+plan on using hibernation, you will need a bigger swap space, often at least
+the amount of memory you have in your system.
+</p>
+
+<p>
+After you've done this, type <c>t</c> to set the partition type, <c>2</c> to select
the partition you just created and then type in <c>82</c> to set the partition
type to "Linux Swap". After completing these steps, typing <c>p</c> should
display a partition table that looks similar to this:
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-04-11 18:25 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-04-11 18:25 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/04/11 18:25:12
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #465410 - Slightly misleading sentence in creating partition, thanks to Vladimir for reporting
Revision Changes Path
1.23 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.23&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.23&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.22&r2=1.23
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- hb-install-x86+amd64-disk.xml 6 Apr 2013 07:52:47 -0000 1.22
+++ hb-install-x86+amd64-disk.xml 11 Apr 2013 18:25:12 -0000 1.23
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.22 2013/04/06 07:52:47 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.23 2013/04/11 18:25:12 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>15</version>
-<date>2013-04-06</date>
+<version>16</version>
+<date>2013-04-11</date>
<section>
<title>Introduction to Block Devices</title>
@@ -367,7 +367,7 @@
then <c>p</c> to select a primary partition, followed by <c>1</c> to select the
first primary partition. When prompted for the first cylinder, hit enter. When
prompted for the last cylinder, type <c>+32M</c> to create a partition 32 Mbyte
-in size and set its bootable flag:
+in size:
</p>
<pre caption="Creating the boot partition">
@@ -400,7 +400,7 @@
<p>
We need to make this partition bootable. Type <c>a</c> to toggle the bootable
flag on a partition and select <c>1</c>. If you press <c>p</c> again, you will
-notice that an <path>*</path> is placed in the "Boot" column.
+notice that an <e>*</e> is placed in the "Boot" column.
</p>
</body>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2013-04-06 7:52 Sven Vermeulen (swift)
0 siblings, 0 replies; 18+ messages in thread
From: Sven Vermeulen (swift) @ 2013-04-06 7:52 UTC (permalink / raw
To: gentoo-doc-cvs
swift 13/04/06 07:52:47
Modified: hb-install-x86+amd64-disk.xml
Log:
Fix bug #464780 - Update miscalculation on partition size thanks to Peter Nepokroeff
Revision Changes Path
1.22 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.22&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.22&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.21&r2=1.22
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- hb-install-x86+amd64-disk.xml 23 Feb 2013 18:38:22 -0000 1.21
+++ hb-install-x86+amd64-disk.xml 6 Apr 2013 07:52:47 -0000 1.22
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.21 2013/02/23 18:38:22 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.22 2013/04/06 07:52:47 swift Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>14</version>
-<date>2013-02-23</date>
+<version>15</version>
+<date>2013-04-06</date>
<section>
<title>Introduction to Block Devices</title>
@@ -662,13 +662,13 @@
Ignore/Cancel? <i>i</i>
<comment># Create a 512 mbyte swap partition</comment>
-(parted) <i>mkpart primary linux-swap 32mb 542mb</i>
+(parted) <i>mkpart primary linux-swap 32mb 544mb</i>
<comment># Create a partition that spans the remaining disk.
# -1s (minus one s) means the end of the disk</comment>
-(parted) <i>mkpart primary ext4 542mb -1s</i>
-Warning: You requested a partition from 542MB to 21.5GB.
-The closest location we can manage is 542MB to 21.5GB.
+(parted) <i>mkpart primary ext4 544mb -1s</i>
+Warning: You requested a partition from 544MB to 21.5GB.
+The closest location we can manage is 544MB to 21.5GB.
Is this still acceptable to you?
Yes/No? <i>y</i>
</pre>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml
@ 2009-01-09 18:12 Xavier Neys (neysx)
0 siblings, 0 replies; 18+ messages in thread
From: Xavier Neys (neysx) @ 2009-01-09 18:12 UTC (permalink / raw
To: gentoo-doc-cvs
neysx 09/01/09 18:12:12
Modified: hb-install-x86+amd64-disk.xml
Log:
Bootable flag needs to be on.
We all thought it was a thing of the past...
My brand new intel itx motherboard with dual-code atom 330 will not boot HD if flag is not on :-(
Revision Changes Path
1.12 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.11&r2=1.12
Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- hb-install-x86+amd64-disk.xml 2 May 2008 08:04:23 -0000 1.11
+++ hb-install-x86+amd64-disk.xml 9 Jan 2009 18:12:12 -0000 1.12
@@ -4,7 +4,7 @@
<!-- The content of this document is licensed under the CC-BY-SA license -->
<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.11 2008/05/02 08:04:23 nightmorph Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.12 2009/01/09 18:12:12 neysx Exp $ -->
<sections>
@@ -13,8 +13,8 @@
This chapter describes how to partition a disk for future usage.
</abstract>
-<version>6.1</version>
-<date>2008-05-02</date>
+<version>6.2</version>
+<date>2009-01-09</date>
<section>
<title>Introduction to Block Devices</title>
@@ -271,8 +271,8 @@
Disk /dev/sda: 240 heads, 63 sectors, 2184 cylinders
Units = cylinders of 15120 * 512 bytes
-Device Boot Start End Blocks Id System
-/dev/sda1 1 14 105808+ 83 Linux
+ Device Boot Start End Blocks Id System
+/dev/sda1 * 1 14 105808+ 83 Linux
/dev/sda2 15 49 264600 82 Linux swap
/dev/sda3 50 70 158760 83 Linux
/dev/sda4 71 2184 15981840 5 Extended
@@ -349,7 +349,7 @@
then <c>p</c> to select a primary partition, followed by <c>1</c> to select the
first primary partition. When prompted for the first cylinder, hit enter. When
prompted for the last cylinder, type <c>+32M</c> to create a partition 32 Mbyte
-in size:
+in size and set its bootable flag:
</p>
<pre caption="Creating the boot partition">
@@ -375,13 +375,13 @@
240 heads, 63 sectors/track, 3876 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
-Device Boot Start End Blocks Id System
-/dev/sda1 1 14 105808+ 83 Linux
+ Device Boot Start End Blocks Id System
+/dev/sda1 1 14 105808+ 83 Linux
</pre>
<p>
We need to make this partition bootable. Type <c>a</c> to toggle the bootable
-flag on a partition and select <c>1</c>. If you press <c>p</c> again, you will
+flag on a partition and select <c>1</c>. If you press <c>p</c> again, you will
notice that an <path>*</path> is placed in the "Boot" column.
</p>
@@ -410,9 +410,9 @@
240 heads, 63 sectors/track, 3876 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
-Device Boot Start End Blocks Id System
-/dev/sda1 * 1 14 105808+ 83 Linux
-/dev/sda2 15 81 506520 82 Linux swap
+ Device Boot Start End Blocks Id System
+/dev/sda1 * 1 14 105808+ 83 Linux
+/dev/sda2 15 81 506520 82 Linux swap
</pre>
</body>
@@ -438,10 +438,10 @@
240 heads, 63 sectors/track, 3876 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
-Device Boot Start End Blocks Id System
-/dev/sda1 * 1 14 105808+ 83 Linux
-/dev/sda2 15 81 506520 82 Linux swap
-/dev/sda3 82 3876 28690200 83 Linux
+ Device Boot Start End Blocks Id System
+/dev/sda1 * 1 14 105808+ 83 Linux
+/dev/sda2 15 81 506520 82 Linux swap
+/dev/sda3 82 3876 28690200 83 Linux
</pre>
</body>
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2014-01-23 19:43 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-23 17:31 [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en/handbook: hb-install-x86+amd64-disk.xml Sven Vermeulen (swift)
-- strict thread matches above, loose matches on Subject: below --
2014-01-23 19:43 Sven Vermeulen (swift)
2013-12-31 20:43 Sven Vermeulen (swift)
2013-12-31 20:37 Sven Vermeulen (swift)
2013-12-31 20:34 Sven Vermeulen (swift)
2013-12-31 20:33 Sven Vermeulen (swift)
2013-12-30 15:54 Sven Vermeulen (swift)
2013-12-29 11:20 Sven Vermeulen (swift)
2013-12-19 13:33 Sven Vermeulen (swift)
2013-12-18 15:01 Sven Vermeulen (swift)
2013-12-18 11:40 Sven Vermeulen (swift)
2013-12-17 10:09 Sven Vermeulen (swift)
2013-12-17 9:26 Sven Vermeulen (swift)
2013-12-17 9:13 Sven Vermeulen (swift)
2013-12-17 9:10 Sven Vermeulen (swift)
2013-04-11 18:25 Sven Vermeulen (swift)
2013-04-06 7:52 Sven Vermeulen (swift)
2009-01-09 18:12 Xavier Neys (neysx)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox