Fixing your laptop through init


( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105
Call Stack
#TimeMemoryFunctionLocation
10.000153108{main}( )../index.php:0
20.000256548require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.315716855812require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.317316918392include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:43
50.379817038296the_content( )../single.php:16
60.379817040332apply_filters( )../post-template.php:169
70.383617047472call_user_func_array ( )../plugin.php:166
80.383617047656vim_color( )../plugin.php:0
90.383617047992preg_replace ( )../wp-vimcolor.php:143
100.383617055244preg_replace ( )../wp-vimcolor.php:143
110.383617055436vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:1
120.433217071796fread ( )../wp-vimcolor.php:105

( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105
Call Stack
#TimeMemoryFunctionLocation
10.000153108{main}( )../index.php:0
20.000256548require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.315716855812require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.317316918392include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:43
50.379817038296the_content( )../single.php:16
60.379817040332apply_filters( )../post-template.php:169
70.383617047472call_user_func_array ( )../plugin.php:166
80.383617047656vim_color( )../plugin.php:0
90.383617047992preg_replace ( )../wp-vimcolor.php:143
100.434217069960preg_replace ( )../wp-vimcolor.php:143
110.434217070136vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:1
120.438917071836fread ( )../wp-vimcolor.php:105

Today, I ran into a pretty annoying problem with my laptop.
I booted up, and got one of these once-in-every-24-mounts fsck’s of my root
partition. Nothing to worry about, unless it turns out that there is a
non-trivially fixable problem which shows the well-known "enter your root
password to fix or press ctrl-D to continue" line. Again, nothing to worry
about… until you realise that your keboard isn’t available yet at that point
of time in the boot-process! (I don’t have USB support compiled into my kernel,
and Mac connects it’s laptop keyboards through USB.)

Important to note: I was at the airport at that moment, with no other hardware
or cables or whatever with me to help me out. And knowing that you’ll be away
for 4 days (I’m at Open Nordic now), you
really want your laptop to work.

After thinking about it for a while, I got the solution. For some reason, my
keyboard does work while in the GRUB menu. I found out that I could pass about
any script or command to the init kernel parameter.

did the trick. :-)

Note that there are no quotes around the parameter value.

won’t work!

I’m compiling USB support into my kernel right now.

Add a Comment   Trackback  

Add a Comment