LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2006, 07:50 AM   #1
emilio68
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
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.
 
Old 11-15-2006, 01:29 AM   #2
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
64mb is plenty enough memory do to simple format jobs. As format is done incrementally and effects a relatively small portion of disk. Its more likely, that the kernel you're using, designed for embedded systems, has a few options stripped off. Say like large disk support.
 
Old 11-15-2006, 09:24 AM   #3
emilio68
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for responding

The strange thing is that the application is the standaard mkfs application from busybox. Increasing the kernel memory even up higher than 64Mb still produces the same error.
There is no evidence of limitation to disk size, but with the current hard disk sizes, i am wondering how this should be done in general and particular for embedded systems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
low level format juanb Linux - General 1 02-08-2006 03:16 AM
low-level format DanTaylor Linux - Newbie 7 01-22-2006 03:52 PM
Unable to format large disk for server wishmaker Debian 1 07-19-2005 06:42 AM
How to print large files to low mem printer? sb73542 Linux - Software 2 03-25-2004 12:12 PM
Perform low level format of a floppy disk in C juby Programming 4 01-09-2003 07:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration