Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

e2fsck slows boot

Hi,

I'm working with the Cyclone II Dev board and a Compact Flash (ext3 formatted - journalling). We use ext3 because I am writing data to a file on the CF and when we lose power and we reboot we can do an "e2fsck.ext3" and 'fix the file and disk.'

The board is a data recorder and we want it to boot fast and start recording data to the Compact Flash. I've gotten the boot time down to 8-9 seconds without the CF being written to.

I've found that if the power cycle comes shortly after I've been recording the 'e2fsck' doesn't take too long (10-15 seconds). BUT if I've been recording for a minute or two and power cycle IT CAN TAKE OVER 30 SECONDS to recover the journal.

I've tried differen setting with "tune2fs" with no luck. So is there any exper out there that can HELP ME !! Or suggest things to try.

I've found I have to perform the "e2fsck" or I won't boot.

Is it possible to "mark as fix later" so I can boot faster? Eventually the disk will come back to the lab where we can run a full disk fix and we retrieve the data, but while its "out recording in the system" it needs to not lose data.

I saw ext4 in the "make menuconfig - filesystems" but it appears that the "e2fsck tools" don't support that. Would going to ext4 help me and if so how do I get the tools updated?

Thanks in advance

12 Replies