bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fatal: Out of memory


From: Andrew Clausen
Subject: Re: Fatal: Out of memory
Date: Fri, 13 Apr 2001 18:10:21 +1000

Evin Robertson wrote:
> / # parted -s /dev/hda cp /novell/share1/s/lgho/win95.img 1 1
> Fatal: Out of memory.

Unfortunately, the parted FAT resizer is a bit memory hungary.
Is it possible to create some swap space, and use that?

Perhaps I should mention this in the Disk Imaging section...

> It works if I make the new partition the same size as the image, but
> then it'll give me an Out of memory error if I try to resize it beyond
> a couple hundred megs.

That isn't surprising.  The Magic Number TM that determines
how much memory the FAT resizer uses is the number of clusters.

> Has anyone seen a problem like this before?  Is parted unable to
> resize unusually small FAT32 partitions to larger ones?

Also, Parted can't grow the cluster size.  So, if you have
a small image with a small cluster size, then that means a big
partition will have a LOT of clusters, because the cluster size
is small.
 
> I obviously don't have GDB on my boot floppy, or I'd try to debug this
> myself.  (My experience is that something gets upset if I try to munge
> partitions on a drive on which I have a mounted partition, so
> installing linux and running GDB that way doesn't seem easy).

It shouldn't matter... as long as:
(a) you don't touch partitions that you have modified
(b) you don't modify partitions that you are touching

> Alternatively, is there another way to do the equivalent of "sys c:"
> from linux?  That's the only real point of using the small fat32
> partition I made.

I can't think of any.

> Also, is there an easy way to tell parted to use the entire disk for a
> partition, so I don't need extra magic to detect the disk size from my
> script?

No :-/

Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]