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-users

Re: [Xen-users] RHEL5 as PVM on RHEL5 xen

To: "Nico Kadel-Garcia" <nkadel@xxxxxxxxx>
Subject: Re: [Xen-users] RHEL5 as PVM on RHEL5 xen
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: Wed, 11 Apr 2007 13:00:06 +0530
Cc: Xen list <Xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 11 Apr 2007 00:28:59 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=tQcXnq2TmDwuwNuLgvx0dxhBXYF3e+o/CkcbvdN2y+3VN3LPyUx0IqhZjlZ/5BIIDouIFPtjC1MsJgh2zywMAbqj0pM7nIJ115uQSdNraNx6+tn/IKHCk3Jq4exL6w0fXee48P4KIqNiPOfj9fw3X/HtE5SmpWNkr1+h8lIZJFs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=QKRItLyO/V3h64ks4aru8Xy1xigKryT0U4m74MQ/c53In1MVO3mIpPtc1RKE4ZEZTBFG5ad0KVXl301/i/r72NL+tvbpKvDHQsSLgNiTRzxu8puVXiZR3+AT/4qXJGx2LPr+aHQ6rVz1EqB9zUJFUpaQTmfsJgwUIHucoh2rsDA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <460CEDC7.6040108@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f58fc26d0703300244r760b02b1vf4784d41e5eb738c@xxxxxxxxxxxxxx> <907625E08839C4409CE5768403633E0B018E1B58@xxxxxxxxxxxxxxxxx> <f58fc26d0703300252v6eeb6b8k2f52a8982e6b73d1@xxxxxxxxxxxxxx> <460CEDC7.6040108@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On 3/30/07, Nico Kadel-Garcia <nkadel@xxxxxxxxx> wrote:
trilok nuwal wrote:
> Ya,  this is a file disk made by "dd" and then formatted ext3 file
> system. Thats why i  able to mount this as i mention in earlier mail.
By the way, there are a lot of instructions about doing this out there
in the wild that insist on using "dd if=/dev/zero count=[some big
number]" to fill the entire disk image. Don't do that unless you want to
waste aa lot of time!

Unless you're creating swap partitions, or you want to zero partitions
for security reasons, you should skip all of the blocks  in the middle.
For example, to use 1 MB sized blocks for ease of counting, and to make
a 10 GB partition, do this::

    dd bs=1048576 count=1 seek=102339 if=/dev/zero of=targetfile

Here i did not get, how to select theses values to create a 4GB disks. As in your's example it looks like all are random values. Could you please elabrate this a bit ?
 

Voila. All that's been written to disk is the description of the file,
information about the loations of its blocks, and the end of the file.
There are no *contents* in it except for what's been left on disk by
previous applications, which for most applications you don't care about.
This is *MUCH, MUCH, MUCH* faster than the way stated by almost every
old webpage about creating disk partitions in the world.

Sometimes, it helps to remember when the original shell commands were
written....

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users