Operating System - HP-UX
1834415 Members
1697 Online
110067 Solutions
New Discussion

Re: Creating large files in HP11.0

 
Peter Remirez
Occasional Advisor

Creating large files in HP11.0

HI,
What is the command used in creating large files on a HP11.0?

I tried doing a dd command, but it produced the errors below:
pghc0001@penang[91]% dd if=/dev/zero of=/tmp/BIG bs=1024 count=2500000
/dev/zero: No such file or directory
dd: cannot open /dev/zero
pghc0001@penang[92]% dd if=/dev/null of=/tmp/BIG bs=1024 count=2500000
0+0 records in
0+0 records out

pghc0001@penang[93]% df -k /tmp
/tmp (/dev/vg00/lvol9 ) : 58689128 total allocated Kb
58666336 free allocated Kb
22792 used allocated Kb
0 % allocation used

pghc0001@penang[94]% dd if=/dev/vg00/lvol9 of=/tmp/BIG bs=1024 count=2500000
/dev/vg00/lvol9: Permission denied
dd: cannot open /dev/vg00/lvol9

Could anyone tell me where did I go wrong?

Thanks
2 REPLIES 2
Ollie R
Respected Contributor

Re: Creating large files in HP11.0

Hi,

By default, there is no /dev/zero with HP-UX 11.00, but there is with 11i.

It can be created as follows:

mknod /dev/zero c 3 0x000004

Ollie.
To err is human but to not award points is unforgivable
Ollie R
Respected Contributor

Re: Creating large files in HP11.0

Hi,

You might also want to look at the "prealloc" command (which is much easier to use than "dd"!).

Ollie.
To err is human but to not award points is unforgivable