Bother! Clicked the wrong button!

On Thursday 21 April 2011 21:12:12 Neal Murphy wrote:

> Suppose you have a 100MB disk image file. In parted, you can:

You can make a GPT partition table:
  mklabel gpt
  mkpart boot ext2 1mb 20mb
  mkpart swap linux-swap 20mb 30mb
  mkpart root ext4 30mb 50mb
  mkpart root-1 ext4 50mb 75mb
  mkpart root-2 ext4 75mb 100mb
  toggle 1 boot
  print
  quit

A PC98 table is similar, except it sets all partitions bootable by default and 
doesn't seem to understand filesystem names:
  mklabel pc98
  mkpart boot ext2 1mb 20mb
  mkpart swap linux-swap 20mb 30mb
  mkpart root ext4 30mb 50mb
  mkpart root-1 ext4 50mb 75mb
  mkpart root-2 ext4 75mb 100mb
  toggle 2 boot
  toggle 3 boot
  toggle 4 boot
  toggle 5 boot
  print
  quit

Or you can use the traditional MSDOS partition scheme.
  mklabel msdos
  mkpart primary ext2 1mb 20mb
  mkpart primary linux-swap 20mb 30mb
  mkpart primary 30mb 50mb
  mkpart extended 50mb 100mb
  mkpart logical 51mb 75mb
  mkpart logical 76mb 100mb
  toggle 1 boot
  print
  quit

Your VM should boot from any of them.

Parted also seems to understand the difference between decimal (MB) and binary 
(MiB).

If it doesn't work, I've a large selection of hats to choose for a snack.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to