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 | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 53108 | {main}( ) | ../index.php:0 |
| 2 | 0.0002 | 56548 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.3157 | 16855812 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.3173 | 16918392 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:43 |
| 5 | 0.3798 | 17038296 | the_content( ) | ../single.php:16 |
| 6 | 0.3798 | 17040332 | apply_filters( ) | ../post-template.php:169 |
| 7 | 0.3836 | 17047472 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.3836 | 17047656 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3836 | 17047992 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3836 | 17055244 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3836 | 17055436 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:1 |
| 12 | 0.4332 | 17071796 | fread ( ) | ../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 | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 53108 | {main}( ) | ../index.php:0 |
| 2 | 0.0002 | 56548 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.3157 | 16855812 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.3173 | 16918392 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:43 |
| 5 | 0.3798 | 17038296 | the_content( ) | ../single.php:16 |
| 6 | 0.3798 | 17040332 | apply_filters( ) | ../post-template.php:169 |
| 7 | 0.3836 | 17047472 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.3836 | 17047656 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3836 | 17047992 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.4342 | 17069960 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.4342 | 17070136 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:1 |
| 12 | 0.4389 | 17071836 | fread ( ) | ../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.