[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Guest O/S Questions
Karsten M. Self wrote: ...or as Ian pointed out off-list, you can use lomount (there's a related losetup command), included in Xen 3. I mentioned the hand-rolled method as lomount isn't generally available in most off-the-shelf distros. It also helps in understanding the concept of partitioned files.4. Find out the image file's partitioning. fdisk's '-u' option gives output in sectors. This helps in the next step. Sample partition table: $ /sbin/fdisk -lu rhel4 You must set cylinders. You can do this from the extra functions menu. Disk rhel4: 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 rhel4p1 * 63 208844 104391 83 Linuxrhel4p2 208845 401624 96390 82 Linux swap / Solarisrhel4p3 401625 4192964 1895670 83 Linux Ignore the cylinder messages (they matter if you're going to modify the partition table). The start sector times the blocksize (512 bytes) gives you the partition offset in bytes. This is used if you want to loopback mount the filesystems to copy them someplace else, which you do. The first partition is /boot, the second is /. I didn't use logical volumes, though it's possible to do so, complicating matters somewhat more. Cheers. -- Karsten M. Self <karsten@xxxxxxxxxxxxx> XenSource, Inc. 2300 Geng Road #250 +1 650.798.5900 x259 Palo Alto, CA 94303 +1 650.493.1579 fax _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |