|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] RHEL5 as PVM on RHEL5 xen
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
|
|
|
|
|