pavva94 / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 1 forks source link

mkfs.ext3 /mkfs.ext2 fail with a 2TB HDD and 32MB RAM #266

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
Using the conrad hardware with 32MB Ram, cant test with other hardware.

2.
# mkfs.ext3 /dev/sda1 
mke2fs 1.41.8 (11-July-2009)
Killed
# 

3.
-- syslog:
Jan 3 18:37:51 kernel: Out of Memory: Kill process 880 (mkfs.ext3) score 961 
and children.
Jan 3 18:37:51 kernel: Out of memory: Killed process 880 (mkfs.ext3).

What is the expected output? What do you see instead?
--On Webinterface there is no Error in the Messages, but there should:

Disabling AUTOMOUNT... done!
Removing old partitions on /dev/sda disk... done!
Creating new partition /dev/sda1... done!
Formatting new /dev/sda1 partition as EXT3... 

Partition created!
Enabling AUTOMOUNT... done!

--This should be changed!

What version of the product are you using? On what operating system?
--snakeos-gnsd630-V1.3.2-20120102-from-original.bin

Original issue reported on code.google.com by mkhom...@googlemail.com on 3 Jan 2012 at 5:49

GoogleCodeExporter commented 8 years ago
If this is caused by the large size there's probably not much I can do,. sorry.

Try doing this before running mkfs.
echo 2 >  /proc/sys/vm/overcommit_memory
Might make it output a slightly more useful error message.

Google turned up this:
http://lists.busybox.net/pipermail/busybox/2006-February/052331.html
The busybox version of the e2fsprogs can't do ext3 so it wouldn't be an option 
anyway.

And yes.. that log message should be changed.

Original comment by stefansc...@googlemail.com on 5 Jan 2012 at 6:20

GoogleCodeExporter commented 8 years ago
Whats about simply using the exitcode for end Message:

The exit code returned by mkfs is 0 on success and 1 on failure

So we can write "Partition creation error" if exitcode is != 0!

Original comment by mkhom...@googlemail.com on 6 Jan 2012 at 9:52

GoogleCodeExporter commented 8 years ago

I guess this should do

http://code.google.com/p/snake-os/source/diff?spec=svn409&r=409&format=side&path
=/trunk/rootfs/default/usr/share/snake/formatdisk

Original comment by stefansc...@googlemail.com on 6 Jan 2012 at 5:42

GoogleCodeExporter commented 8 years ago
Closed

Original comment by mkhom...@googlemail.com on 17 Jan 2012 at 7:03