WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] fdisk hard drive image

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] fdisk hard drive image
From: Luciano Miguel Ferreira Rocha <strange@xxxxxxxxxxxxx>
Date: Fri, 11 Feb 2005 15:41:14 +0000
Delivery-date: Fri, 11 Feb 2005 15:43:15 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <420CBBEC.5000509@xxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Mail-followup-to: Luciano Miguel Ferreira Rocha <strange@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
References: <420C9B8C.9020300@xxxxxxxxxxxxx> <20050211125112.GA5033@xxxxxxxxxxxxx> <420CBBEC.5000509@xxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Fri, Feb 11, 2005 at 03:06:36PM +0100, Gonéri Le Bouder wrote:
> Luciano Miguel Ferreira Rocha wrote:
> 
> >On Fri, Feb 11, 2005 at 12:48:28PM +0100, Gonéri Le Bouder wrote:
> > 
> >
> >>Hello list,
> >>
> >>
> >>Currently, i use a partition image to run my XenU (/dev/hda2) and "fdisk 
> >>-l" return nothing and can't open /dev/hda .
> >>
> >>I want to use a full hard drive image (not partition image) from my Xen0 
> >>as hda in my XenU. I want to be able to run fdisk on hda in my XenU to 
> >>list and regenerate partitions.
> >>
> >>
> >>I tried with this (/img is my hard drive image):
> >>
> >>disk = ['/img,hda,w']
> >>
> >>disk = ['phy:loop3,hda,w'], loop3 is /img attached to /dev/loop3 by 
> >>losetup.
> >>
> >>But, both don't work.
> >>
> >>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.
> >
> 
> Thanks for the answer,
> 
> 
> In this case, if i use lvm, i still have to create my partitions from 
> 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_ide95&alloc_id396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>