format large disk when kernel memory is low
Hello all,
I need to prepare a harddisk of 160Gb for an embedded cable settopbox. For this i have written service software running on this target on a Linux based SDK for a Mips based microprocessor.
For the harddisk i have used the Linux fdisk to create a first partition of 128Mb (bootloader section) and a second partition for the remaining space on disk (>150Gb).
The problem is that the standard mkfs application will not allow me to format this partition, it simply fails on a malloc call for memory space to create a FAT32 format table.
The system kernel memory can not be expanded further than 64Mb. Does anyone know what i can do to get this partition formatted without having to modify the mkfs application it self? Are there other tools available?
So far i have tried to create extra memory useing swap space and even lowlevel formatting (mkfs on a file, then binary copy the releavnt data to the disk), all failed.
|