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!
Thanks, good catch! I've updated the text to reflect this, should show up on the size in about half an hour.