| ( ! ) 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3137 | 14185800 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3137 | 14185936 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:1 |
| 12 | 0.3181 | 14187340 | 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3185 | 14185812 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3185 | 14185968 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:3 |
| 12 | 0.3228 | 14187388 | 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3235 | 14185788 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3235 | 14185924 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:1 |
| 12 | 0.3277 | 14187328 | 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3281 | 14185864 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3281 | 14186040 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:3 |
| 12 | 0.3323 | 14187480 | 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3329 | 14185788 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3329 | 14185924 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:1 |
| 12 | 0.3371 | 14187328 | 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3375 | 14185788 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3375 | 14185924 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:1 |
| 12 | 0.3416 | 14187328 | 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3426 | 14185792 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3426 | 14185932 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:1 |
| 12 | 0.3469 | 14187340 | 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.1505 | 13966560 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1520 | 14036436 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.3015 | 14151460 | the_content( ) | ../archive.php:35 |
| 6 | 0.3018 | 14156904 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.3137 | 14168484 | call_user_func_array
( ) | ../plugin.php:166 |
| 8 | 0.3137 | 14168668 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.3137 | 14169004 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 10 | 0.3473 | 14186832 | preg_replace
( ) | ../wp-vimcolor.php:143 |
| 11 | 0.3473 | 14187292 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:6 |
| 12 | 0.3518 | 14189068 | fread
( ) | ../wp-vimcolor.php:105 |
On my laptop (a macbook), I dual boot between Mac OS X and Gentoo.
Up to last week I only booted into Mac OS X once a month to see if there were
any firmware updates (which only come in .dmg archives), so in fact I was
single booting Gentoo.
Last week, of course in front of a customer, grub failed for no apparent reason.
I just shut down my laptop cleanly in the morning and in the afternoon it
didn’t want to work any more. Luckily, I could still boot into Mac OS X, so
not all was lost.
When I realised that I couldn’t access my Linux partitions from within Mac OS
X (due to imcompatible partitioning scheme types (GPT <vs> MBR)), I knew this
problem wouldn’t be that easy to fix, especially because of this extra
handicap: no CD-drive to boot a Linux rescue CD from. I had the same DVD stuck
into my macbooks internal superdrive for over 4 months (yes, Thomas, this was your qeimc DVD :-p). After having it surgically
removed by S&S they told me I would never be
able to use my internal superdrive again, because the drive itself got
displaced so it doesn’t fit with the opening in the casing any more.
Another thing I suddenly realised was that I did have good backups of all my
data… but not of my working environment (/etc, dotfiles, $HOME/bin, …).
That made me really want to get my Gentoo working again.
First try: boot into a rescue system. I tried with two bootable USB disks,
which work nicely on another PC at the office. My macbook choked on both with a nice
“boot error”.
Second try was at Barcamp.
Thomas (another one) was so kind to bring along an
external firewire cd drive, so I could boot into a resuce system and fix my
grub. No candy. I sure got the live CDs (tried multiple ones) in my rEFIt boot manager, but actually booting from
one was too hard a task for mr. macbook.
Third try: to the rescue! Here’s what I did.
Disk: /dev/rdisk0 geometry: 9729/255/63 [156301488 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>
2: AF 25 127 15 - 1023 254 63 [ 409640 - 60817408] HFS+
3: 83 1023 254 63 - 1023 254 63 [ 61227048 - 54685260] Linux files*
*4: 83 1023 254 63 - 1023 254 63 [ 115912308 - 40384077] Linux files*
I knew the start and size columns were expressed in sectors.
Then there’s . I knew I needed something like
The manual explains that works with 512-byte blocks. So I
only needed to figure out what the relation was between 512-byte blocks and
sectors. told me just that!
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/disk0s2 60817408 54925160 5380248 91% /
Seems like partition disk0s2 has 60817408 512-byte blocks and 60817408
sectors. Therefore 1 sector = 1 512-byte block.
The manual also told me that the start-column is 0-based
and the size-column 1-based. Bringing all this together brought me to
and yup… these dd images on elisa (another PC on our network) are
loop-mountable.
Okay, my laptop isn’t fixed yet, but now at least I can try out some things
without having to fear losing all my precious stuff! :-)