I enjoy the convenience of mkfile command found in Irix and BSD based distros.
This command allows me to make files of any size;
usage: mkfile [-nv] size[b|k|m|g] filename ...
I've looked here and there and can't seem to find it for Centos.
Any one have ideas on were I can get at least the source for it?
I got something off a BSD ports page but its for BSD type systems.
aurfalien@gmail.com wrote:
I enjoy the convenience of mkfile command found in Irix and BSD based distros.
This command allows me to make files of any size;
usage: mkfile [-nv] size[b|k|m|g] filename ...
I've looked here and there and can't seem to find it for Centos.
Any one have ideas on were I can get at least the source for it?
I got something off a BSD ports page but its for BSD type systems.
dd's syntax is a little weird but it should do the job:
dd if=/dev/zero of=your_filename bs=1K count=size_in_KB
== Les Mikesell lesmikesell@gmail.com
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets, please share.
On Oct 5, 2009, at 11:10 AM, Les Mikesell wrote:
aurfalien@gmail.com wrote:
I enjoy the convenience of mkfile command found in Irix and BSD based distros.
This command allows me to make files of any size;
usage: mkfile [-nv] size[b|k|m|g] filename ...
I've looked here and there and can't seem to find it for Centos.
Any one have ideas on were I can get at least the source for it?
I got something off a BSD ports page but its for BSD type systems.
dd's syntax is a little weird but it should do the job:
dd if=/dev/zero of=your_filename bs=1K count=size_in_KB
== Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
----- aurfalien@gmail.com wrote:
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets,
please share.
Why not write a shell script called 'mkfile' that handles the CLI syntax like the real mkfile but simply uses dd under the hood? :-)
--Tim
Hi Tim,
You know, I didn't even think of that one.
Thanks for the idea.
On Oct 5, 2009, at 11:18 AM, Tim Nelson wrote:
----- aurfalien@gmail.com wrote:
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets,
please share.
Why not write a shell script called 'mkfile' that handles the CLI syntax like the real mkfile but simply uses dd under the hood? :-)
--Tim _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
On Mon, 2009-10-05 at 11:14 -0700, aurfalien@gmail.com wrote:
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets, please share.
qemu-img create -f <fmt> <imagefile> [size] is more elegant :)
Kind Regards,
Michel van Deventer
Hi Michel,
Indeed, excellent idea!
Thanks!
On Oct 5, 2009, at 11:22 AM, Michel van Deventer wrote:
Hi,
On Mon, 2009-10-05 at 11:14 -0700, aurfalien@gmail.com wrote:
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets, please share.
qemu-img create -f <fmt> <imagefile> [size] is more elegant :)
Kind Regards,
Michel van Deventer
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi all,
As I sat down to write it and started to struggle a bit (of course), I found this, tested and it works.
Its a bash script for mkfile.
I'm always testing fs/net perf and like the flex of having a simple command like mkfile.
On Oct 5, 2009, at 11:22 AM, Michel van Deventer wrote:
Hi,
On Mon, 2009-10-05 at 11:14 -0700, aurfalien@gmail.com wrote:
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets, please share.
qemu-img create -f <fmt> <imagefile> [size] is more elegant :)
Kind Regards,
Michel van Deventer
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Am Montag, den 05.10.2009, 20:22 +0200 schrieb Michel van Deventer:
Hi,
On Mon, 2009-10-05 at 11:14 -0700, aurfalien@gmail.com wrote:
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets, please share.
qemu-img create -f <fmt> <imagefile> [size] is more elegant :)
Or even more fancy use virt-install to do everything in one command line to set up virtual machines.
Chris
financial.com AG
Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553
Hi Chris,
I'm actually just needing to create files of various sizes, not to be used in Xen tho.
More for testing I/O chars of various thing.
On Oct 5, 2009, at 4:11 PM, Christoph Maser wrote:
Am Montag, den 05.10.2009, 20:22 +0200 schrieb Michel van Deventer:
Hi,
On Mon, 2009-10-05 at 11:14 -0700, aurfalien@gmail.com wrote:
Hi Les,
Yes, I do run dd to create Xen image files but was hoping to use a more elegant solution.
Looks like I'll continue with dd but if any one else has some secrets, please share.
qemu-img create -f <fmt> <imagefile> [size] is more elegant :)
Or even more fancy use virt-install to do everything in one command line to set up virtual machines.
Chris
financial.com AG
Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/ Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
aurfalien@gmail.com wrote:
Hi Chris,
I'm actually just needing to create files of various sizes, not to be used in Xen tho.
More for testing I/O chars of various thing.
Just recall your last dd command back to the command line (ctl-r dd) and edit the number you put at the end for the 'count' argument.
well, i actually found this;
hope its helpful to others.
its a bash script doing dd, but in a more friendly way.
On Oct 5, 2009, at 4:35 PM, Les Mikesell wrote:
aurfalien@gmail.com wrote:
Hi Chris,
I'm actually just needing to create files of various sizes, not to be used in Xen tho.
More for testing I/O chars of various thing.
Just recall your last dd command back to the command line (ctl-r dd) and edit the number you put at the end for the 'count' argument.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos