From: Luciano Miguel Ferreira Rocha Subject: Re: fdisk hard drive image Date: Fri, 11 Feb 2005 15:41:14 +0000 Message-ID: <20050211154114.GA9297@nsk.no-ip.org> References: <420C9B8C.9020300@sitadelle.com> <20050211125112.GA5033@nsk.no-ip.org> <420CBBEC.5000509@sitadelle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In-Reply-To: <420CBBEC.5000509@sitadelle.com> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org On Fri, Feb 11, 2005 at 03:06:36PM +0100, Gon=E9ri Le Bouder wrote: > Luciano Miguel Ferreira Rocha wrote: >=20 > >On Fri, Feb 11, 2005 at 12:48:28PM +0100, Gon=E9ri Le Bouder wrote: > >=20 > > > >>Hello list, > >> > >> > >>Currently, i use a partition image to run my XenU (/dev/hda2) and "fd= isk=20 > >>-l" return nothing and can't open /dev/hda . > >> > >>I want to use a full hard drive image (not partition image) from my X= en0=20 > >>as hda in my XenU. I want to be able to run fdisk on hda in my XenU t= o=20 > >>list and regenerate partitions. > >> > >> > >>I tried with this (/img is my hard drive image): > >> > >>disk =3D ['/img,hda,w'] > >> > >>disk =3D ['phy:loop3,hda,w'], loop3 is /img attached to /dev/loop3 by= =20 > >>losetup. > >> > >>But, both don't work. > >> > >>Is it possible ? > >> =20 > >> > > > >THe block device isn't exported as an hard disk. Just as a block devic= e > >(like ram*, loop*). > > > >If you want to use several filesystems over a single block device, > >you'll have to use lvm. > > >=20 > Thanks for the answer, >=20 >=20 > In this case, if i use lvm, i still have to create my partitions from=20 > Dom0. Is there a way to create partitions from XenU with fdisk. Not that I know of. (You may run it, but you may have to specify cilinders and heads by hand.) You can create a single partition on dom0, or use the whole disk for lvm under xenU. Regards, Luciano Rocha ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click