Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464780 - Error in: "Code Listing 4.5: Creating the partitions"
Summary: Error in: "Code Listing 4.5: Creating the partitions"
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 22:47 UTC by Peter Nepokroeff
Modified: 2013-04-06 07:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nepokroeff 2013-04-05 22:47:48 UTC
In "Code Listing 4.5: Creating the partitions" creating a linux-swap partition there is a miscalculation:

# Create a 512 mbyte swap partition
(parted) mkpart primary linux-swap 32mb 542mb

If beginning at 32mb and ending at 542mb the resulting partition size is 510mb instead of the intended 512mb.  I believe the explanation should read:

# Create a 512 mbyte swap partition
(parted) mkpart primary linux-swap 32mb 544mb

Note the change from 542mb to 544mb.  In addition please note the starting size in the following code should be modified to reflect the change as well: 

# Create a partition that spans the remaining disk.
# -1s (minus one s) means the end of the disk
(parted) mkpart primary ext4 542mb -1s

Thanks!
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2013-04-06 07:53:16 UTC
Thanks, good catch! I've updated the text to reflect this, should show up on the size in about half an hour.