Messages in this thread | | | Date | Thu, 18 Feb 1999 14:45:02 -0500 (EST) | From | "Richard B. Johnson" <> | Subject | Re: 2.2.1 mkfs.ext2 out of memory |
| |
On Thu, 18 Feb 1999, Jon P. deOng wrote:
> Hi, > I'm running a pII 400 with 256Mb of ram with a vanilla 2.2.1 kernel > Im trying to create a raid5 array with 4 9gig scsi seagate cheetah drives > connected to the external adapter of an adaptec 2940uw controller. My os > drive is also a 9gig scsi cheetah on the internal ultra scsi adapter. I > have no scsi2 devices at all. I have verified proper termination and turned > off the auto term in the adaptec bios. > Now I have no problems with mkraid, mdadd, or mdrun. All of these raid tools > report no errors. The problem comes when i try to format /dev/md0 > my syntax is > mkfs.ext2 /dev/md0 > mkfs gets almost halfway through writing the inode tables and then i get > this output > > Writing inode tabels: 1969/3254 > Out of Memory for mkfs.ext2 > Killed
Yep! First make a big swap partition or a big swap file. There is, roughly 4096 bytes of memory required for every megabyte of file-system space when you execute mkfs.ext2. This depends upon the allocation-unit size, but it's a reasonable rule-of-thumb.
Then boot into single-user mode with no network daemons running. Make sure your swap partition is activated, then make the file-system. You should be sucessful.
Cheers, Dick Johnson ***** FILE SYSTEM WAS MODIFIED ***** Penguin : Linux version 2.2.1 on an i686 machine (400.59 BogoMips). Warning : It's hard to remain at the trailing edge of technology. Wisdom : It's not a Y2K problem. It's a Y2Day problem.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |