[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] create a partition on a file disk

  • To: "Xen list" <Xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
  • Date: Fri, 20 Apr 2007 12:44:27 +0530
  • Delivery-date: Fri, 20 Apr 2007 00:13:59 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=TM+2ItT3Vlhgpx7t7VKETqf05nIaKFO0cXS9lnSAoi0D4zEtqzYsuvTJUcBi6qyledlAzU1Vs4cLtaUMNTlaAxKuA6qxZpQRqsLJ5ibMS8Q3ZGjjegRccg3mBlY9DT/ksrUNHmflPtH9SPyOwH1oWuVP8fW0D1iPS3Fp5njBS0I=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>


I want to install a OS on file disk as HVM domain.

I create a file disk useing dd and create a partition on top of this using fdisk. I want to create the file system on this partition. How i can do this, in google i found that using "losetup" we can do this.

#dd if=/dev/zero of=/opt/rhel5 count=1 bs=1 seek=4000

#then i set 'cylenders' 4000 on this disk using fdisk exta function features.

#then create a partition on this
fdisk -l /opt/rhel5

Disk /opt/rhel5: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/opt/rhel5p1               1        4000    32129968+  83  Linux

Can anybody tell me how i can craete the file system on this partition. Sorry this is not exactly related with  xen.


Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.