[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fatal: Out of memory
From: |
Evin Robertson |
Subject: |
Fatal: Out of memory |
Date: |
Thu, 12 Apr 2001 12:23:07 -0700 |
I'm using Parted 1.4.11 from a bootdisk I made. I'm trying to load
disk images for windows machine via a novell network. I'd like to use
Parted to manage making the partition bootable, and then dropping a
tar.gz on top for the OS and applications. I'm mostly following
instructions from the user guide's Disk Imaging chapter.
So I used win95dos fdisk /fprmt to make a 85 MB fat32 partition and
another larger partition to write the image to. Formatted and filled
up the 85 MB partition, which now boots win95dos.
I booted from my floppy, mounted the larger partition, and did:
dd if=/dev/zero of=/mnt/win95.img bs=1M count=87
parted /mnt/image mklabel msdos mkpart primary fat 0 86
parted /mnt/image cp /dev/hda 1 1
which seems to have to have worked fine. I copied the image to the
novell server, unmounted /mnt, and had Parted delete all the
partitions. Then:
/ # parted -s /dev/hda mklabel msdos mkpartfs primary fat 0 4121
Warning: The filesystem is going to be too big for FAT16, so FAT32 will...
/dev/ide/host0/bus0/target0/lun0: p1
/ # parted -s /dev/hda cp /novell/share1/s/lgho/win95.img 1 1
Fatal: Out of memory.
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.
Has anyone seen a problem like this before? Is parted unable to
resize unusually small FAT32 partitions to larger ones?
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).
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.
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?
------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/
- Fatal: Out of memory,
Evin Robertson <=