Site Home Page
What it's good for
Case Studies
Kernel Capabilities
Downloading it
Running it
Compiling
Installation
Building filesystems
Troubles
User Contributions
Related Links
The ToDo list
Projects
Diary
Thanks
Contacts
Tutorials
The HOWTO (html)
The HOWTO (text)
Host file access
Device inputs
Sharing filesystems
Creating filesystems
Virtual Networking
Management Console
Kernel Debugging
gprof and gcov
Running X
Diagnosing problems
Configuration
Installing Slackware
Porting UML
IO memory emulation
UML on 2G/2G hosts
Adding a UML system call
Running nested UMLs
How you can help
Overview
Documentation
Utilities
Kernel bugs
Kernel projects
Screenshots
A virtual network
An X session
Transcripts
A login session
A debugging session
Slackware installation
Reference
Kernel switches
Slackware README
Papers
ALS 2000 paper (html)
ALS 2000 paper (TeX)
ALS 2000 slides
LCA 2001 slides
OLS 2001 paper (html)
OLS 2001 paper (TeX)
ALS 2001 paper (html)
ALS 2001 paper (TeX)
UML security (html)
LCA 2002 (html)
WVU 2002 (html)
Security Roundtable (html)
Fun and Games
Kernel Hangman
Disaster of the Month
The December 2001 Disaster
This month's disaster involves a trashed filesystem. To create the disaster, boot up UML with a COW-ed or copied root filesystem, and zero out the root filesystem's superblock:
dd if=/dev/zero of=/dev/ubd/0 seek=1 bs=1024 count=1
You will then get all kinds of nasty-loooking stuff in the kernel log such as:
                
EXT2-fs error (device ubd(98,0)): ext2_write_inode: bad inode number: 50571
EXT2-fs error (device ubd(98,0)): ext2_write_inode: bad inode number: 33108
EXT2-fs error (device ubd(98,0)): ext2_write_inode: bad inode number: 32987
EXT2-fs error (device ubd(98,0)): ext2_write_inode: bad inode number: 33165
EXT2-fs error (device ubd(98,0)): ext2_write_inode: bad inode number: 33112
EXT2-fs error (device ubd(98,0)): ext2_write_inode: bad inode number: 34175
EXT2-fs error (device ubd(98,0)): ext2_new_block: block(1006) >= blocks count(0) - block_group = 0, es == a0a8c400 
EXT2-fs error (device ubd(98,0)): ext2_new_block: block(1116) >= blocks count(0) - block_group = 0, es == a0a8c400 

              
You can try running halt, but it probably won't work, so shut it down with the mconsole instead:
                
(debian) sysrq u
OK 
(debian) halt
OK 

              
Your mission, should you choose to accept it, is to restore this filesystem to health.
Hosted at SourceForge Logo