On Thursday 21 April 2011 19:58:13 Mike McCarty wrote:
> I've started in building 6.8 using a VM (qemu).
> 
> I built the pseudo disc file using the raw disc image creator supplied
> with the VM. I set up an ISO image of the LFS LiveCD as the boot
> disc, attached the raw disc image to /dev/hda, and booted up. I then
> ran cfdisk to create volumes, and formatted them as ext3.
> 
> ...
>
> > However, I'd like to understand just what is going on.

If you have parted handy, I'd suggest using it instead. Fdisk and sfdisk are 
still married to CHS, whereas nearly all modern hard drives treat the disk as 
a sequence of 512B sectors. I know sfdisk *insists* on aligning partitions to 
its concept of cylinder boundaries, blindly changing your selected sizes as it 
sees fit; fdisk may allow starts/ends on non-cylinder boundaries, but will 
forever kvetch about them. Parted can also use the 'more flexible' GNU 
Partition type (gpt), which allows many more partitions. Parted is, to be 
sure, not perfect. But I've found it to be much better than the ancient 
programs.

Suppose you have a 100MB disk image file. In parted, you can:
  mkpart boot 64kib 30mb
-- 
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