Re: Reserving space in ext2 or ext3 for a big file.



On 3 Mar 2007 17:20:03 -0800, Andre Abrantes <andreabrantes@xxxxxxxxx> wrote:
| On 3 mar, 11:22, Jean-David Beyer <jeandav...@xxxxxxxxxxx> wrote:
|> Andre Abrantes wrote:
|> > Hi all.
|> > I have the follow problem, my software need make a file with 4GB
|> > and I need reserve space before the file generation finishs.
|>
|> I do not know why you would need to do that, but here are two possibilities
|> for doing it.
|>
|> 1.) Create a partition a little bit larger than you need, and create your
|> file in there as needed. Do not create any other files in that partition. A
|> nice side-effect is that the file you create will be pretty much contiguous.
|>
|> 2.) use DD to copy /dev/zero to a file named as you need. Set the block size
|> and block count to get the number of bytes you need.
|>
|> > I'm testing the quota command for files, but its not works very
|> > well in redhat7.2 for example.
|>
|> I never used Red Hat Linux 7.2, but I ran RHL 7.3 for several years and
|> quotas worked just fine, except in the /tmp directory. Trouble there was
|> that the quota files got deleted on reboot, and perhaps when cron ran tmpwatch.
|>
|> > Exists a command to reserve a space for a file in ext2 or ext3
|> > filesystens?
|>
|> Not specifically, because, as I said before, there should be no reason to do it.
|>
|>
|>
|> > Thanks for all in advance...
|>
|> > André Abrantes
|> > skype:andre.abrantes
|> > email: andreabran...@xxxxxxxxx
|>
|> --
|> .~. Jean-David Beyer Registered Linux User 85642.
|> /V\ PGP-Key: 9A2FC99A Registered Machine 241939.
|> /( )\ Shrewsbury, New Jersey http://counter.li.org
|> ^^-^^ 09:15:01 up 14 days, 21:39, 3 users, load average: 4.18, 4.11, 4.15
|
| Hi Jean!
| Thanks for your good explanation, but now I will be more exact.
| In a computer, runs 3 software that needs each one, create a big file
| with for sample, with 5GB.
| For this sample again, the free space in the partition is 10GB, when
| the first software check the free space with DF command, the file can
| be created. If the second and third softwares check the space without
| the first finishs the file creation, the second and third will start
| the yours files.
| With this, the free space in partition will not able to store the
| files.
| I want reserve the space for first file before create the file with
| 5GB, after this the second software can create the file and then, when
| third try to create, return a message with can´t create a file.
| A file with 5GB spend time to be created, but if I can reserve the
| space before, the problem will be solved.
|
| Thanks for all again... see you...


It sounds like the best solution would be to add more disk space...


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
.



Relevant Pages

  • Re: Reserving space in ext2 or ext3 for a big file.
    ... Do not create any other files in that partition. ... | the first software check the free space with DF command, ... Reverend Paul Colquhoun, ULC. ...
    (comp.os.linux.misc)
  • Re: disk has low idle time?
    ... recommended to have paging file size equal to the physical memory. ... NTFS performance is effected by the time you get to 30% free space. ... Please detail partition sizes and percentage free space. ... Independent Experts (MVPs do not work for MS) ...
    (microsoft.public.windows.server.sbs)
  • Re: Newbie help on partitioning.
    ... space is free space, not a formatted partition. ... but when I first installed SuSE 7.1 (my first foray into Linux), ... I shut down the install session. ...
    (alt.os.linux.suse)
  • Re: Free space disappearing
    ... You need to increase your free space on C to 1,300 mb. ... Select Start, All Programs, Accessories, System Tools, Disk CleanUp to Empty your Recycle Bin and Remove Temporary Internet Files. ... Ways to increase free disk space on your C partition can be achieved by relocation of folders. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Space required by windows xp
    ... How large is your D partition and how much free space? ... It is likely that an allocation of 12% has been made to System Restore on ... drive (where windows is located) is 13.7 gig with 1.25 gig of free space. ...
    (microsoft.public.windowsxp.general)