Getting to know /var


( ! ) 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.000153060{main}( )../index.php:0
20.000256500require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.181716855804require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.183316918384include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:43
50.218317036280the_content( )../single.php:16
60.218417038104apply_filters( )../post-template.php:169
70.223017044840call_user_func_array ( )../plugin.php:166
80.223017045024vim_color( )../plugin.php:0
90.223017045360preg_replace ( )../wp-vimcolor.php:143
100.223017051952preg_replace ( )../wp-vimcolor.php:143
110.223017052148vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:3
120.229817068532fread ( )../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.000153060{main}( )../index.php:0
20.000256500require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.181716855804require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.183316918384include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:43
50.218317036280the_content( )../single.php:16
60.218417038104apply_filters( )../post-template.php:169
70.223017044840call_user_func_array ( )../plugin.php:166
80.223017045024vim_color( )../plugin.php:0
90.223017045360preg_replace ( )../wp-vimcolor.php:143
100.230717066768preg_replace ( )../wp-vimcolor.php:143
110.230717066948vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:3
120.234917068476fread ( )../wp-vimcolor.php:105

Today I found out the best way to find out what /var really means on
a Gentoo system: I removed it.

Something strange happened. There was a shortage of disk space on the
/ partition, which also housed /var, so I created
/home/var on a different partition, did


, added

to /etc/fstab and rebooted into single user mode. There, umounted
/var to get back to the original partition (of course, the new
fstab-rule as followed already), and rm -rf‘d /var.

So far, so good.

Reboot…

Empty /var!

This means that almost no services can start up (no ssh, no syslog, no
portmap, no nothing…) as things like /var/spool, /var/log,
/var/run and /var/lock are gone an away…

But what’s worse: /var/www is bye-bye (luckily it contained only
localhost-websites) and /var/lib/portage/world as well. Now, portage
thinks nothing is installed and wants to re-emerge every tiny little dependency
out there. regenworld, I hear you think? Won’t work.
/var/log/emerge.log is gone, remember?

Add a Comment   Trackback  

Add a Comment