From: Luciano Miguel Ferreira Rocha Subject: Re: fdisk hard drive image Date: Fri, 11 Feb 2005 12:51:12 +0000 Message-ID: <20050211125112.GA5033@nsk.no-ip.org> References: <420C9B8C.9020300@sitadelle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <420C9B8C.9020300@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 12:48:28PM +0100, Gon=E9ri Le Bouder wrote: > Hello list, >=20 >=20 > Currently, i use a partition image to run my XenU (/dev/hda2) and "fdis= k=20 > -l" return nothing and can't open /dev/hda . >=20 > I want to use a full hard drive image (not partition image) from my Xen= 0=20 > as hda in my XenU. I want to be able to run fdisk on hda in my XenU to=20 > list and regenerate partitions. >=20 >=20 > I tried with this (/img is my hard drive image): >=20 > disk =3D ['/img,hda,w'] >=20 > disk =3D ['phy:loop3,hda,w'], loop3 is /img attached to /dev/loop3 by=20 > losetup. >=20 > But, both don't work. >=20 > Is it possible ? THe block device isn't exported as an hard disk. Just as a block device (like ram*, loop*). If you want to use several filesystems over a single block device, you'll have to use lvm. 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