Operating System - HP-UX
1834463 Members
2304 Online
110067 Solutions
New Discussion

creating large empty files to reserve disk space

 
ikeleong
Advisor

creating large empty files to reserve disk space

Hello;

for unix/hpux, how can you create large files to reserve disk space within a mountpoint/directory

I've had a brain fart and have forgotten what the command line is
4 REPLIES 4
siva0123
Trusted Contributor

Re: creating large empty files to reserve disk space

Hi,

dd if=/dev/zero of=/tmp bs=1024k count=650

Will create a empty file in /tmp dir with a size of 650*1024K

Thanks,
Siva
Jeff_Traigle
Honored Contributor

Re: creating large empty files to reserve disk space

Or perhaps you are thinking of the prealloc command.
--
Jeff Traigle
Jim Mallett
Honored Contributor

Re: creating large empty files to reserve disk space

Take a look at the prealloc command.

man prealloc
Hindsight is 20/20
siva0123
Trusted Contributor

Re: creating large empty files to reserve disk space

Hello,

It seems that your profile shows that you havent assigned points to any of your responses.(0 out of 27 responses)

Do assign some points for the people spending some time for you to keep the forum spirit going.

Thanks,
Siva