[OLPC-devel] Booting from uncleanly dismounted flash key.

Ronald G Minnich rminnich at lanl.gov
Sat Aug 26 18:11:46 EDT 2006


Jim Gettys wrote:
> If you have an ext3 image on a flash key and boot via LinuxBIOS, the
> boot fails, and you get dropped into a shell.  fsck -p of the flash key,
> and everything is fine again.
> 
> Is there some way to fix this?  This feels very fragile to me.
>                                - Jim
> 

It's a headache. Part of the problem (Which I have mentioned from time 
to time) is that the boot script does the wrong thing and leaves the USB 
file system in an unclean state.

What it does:
kexec from the usb key

what it should do:

cp bzimage /tmp
cp initrd /tmp
unmount /
kexec /tmp/bzimage "args" /tmp/initrd

This would clean things up quite a bit.

ron



More information about the Devel mailing list