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.
Now, I'd like to transfer some files I created in the true hose system
into the disc image. I used fdisk to list the volumes (partitions)
in the disc image, and tried to use the offsets it gave me in order
to do loop mounts. Some of the mounts work, and some do not, and I'm
a little confused.
Here's what fdisk thinks about the disc image I created:
$ ls -l disc.img
-rw-r--r-- 1 jmccarty jmccarty 42949672960 Apr 21 18:52 disc.img
$ /sbin/fdisk -ul disc.img
You must set cylinders.
You can do this from the extra functions menu.
Disk disc.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
disc.img1 * 63 192779 96358+ 83 Linux
disc.img2 192780 19727819 9767520 83 Linux
Partition 2 has different physical/logical endings:
phys=(1023, 254, 63) logical=(1227, 254, 63)
disc.img3 19727820 39262859 9767520 83 Linux
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(1023, 254, 63) logical=(1228, 0, 1)
Partition 3 has different physical/logical endings:
phys=(1023, 254, 63) logical=(2443, 254, 63)
disc.img4 39262860 83875364 22306252+ 5 Extended
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(1023, 254, 63) logical=(2444, 0, 1)
Partition 4 has different physical/logical endings:
phys=(1023, 254, 63) logical=(5220, 254, 63)
disc.img5 39262923 83875364 22306221 83 Linux
You must set cylinders.
You can do this from the extra functions menu.
As you can see, fdisk is not exactly happy with the volumes.
I can mount 1, and 2, but I cannot mount 3 or 5 using the
listed offsets. The listed offsets correspond to the
logical (C,H,S) listed, and I tried the offsets corresponding
to the physical (C,H,S), but with no luck.
Does anyone have a suggestion?
This is not much of an issue, since I'm really only using partition
2. I intended 1 as /boot, 2 as /, 3 as / (alternate for trying new
versions), and 5 as /home. At present, only 2 is mounted
(as /media/lfs) for purposes of build, and I've successfully transferred
some files into there, so not a problem.
However, I'd like to understand just what is going on.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page