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

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


  • To: "Nico Kadel-Garcia" <nkadel@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



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

 


Rackspace

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