Re: /dev/nvram on my Celebris

Colin Plumb (colin@nyx.net)
Mon, 23 Nov 1998 02:01:44 -0700 (MST)


> /dev/nvram, while no doubt it works, is broken, at least on my Digital
> Celebris P133.

> I tried to cat a string into the device (after compiling a new kernel
> with support for it, of course), and I could read it back. Great, I
> though. But when I rebooted, POST failed, the BIOS drive setup were
> horribly messed up, and suddenly I had a BIOS password.

> Apparently, /dev/nvram overwrites important BIOS configurations, surely,
> this isn't intended?

It absolutely *is* intended. The purpose of it is to read and possibly
modify the BIOS settings in NVRAM. If you do stupid things while root
(it *is* root-writeable-only, right?), Linux is not going to try to
save you.

Messing about with things in /dev that you don't understand is a good
way to mess up your system badly. (You're lucky that you didn't
have the /dev/bios patch installed and try playing with that.)

You can get a similar effect by sending strings to /dev/hda. They'll
read back, and your computer will work fine until the next time you try
to boot and discover that you just destroyed your boot sector and
partition table.

Other good things to play with if you want an unbootable system
are /boot/map, /vmlinuz, /sbin/init and /lib/ld.so

(BTW, most motherboards have a "reset the BIOS" jumper that you
install or remove for a few seconds, then you should be able
to boot with the factory default settings.)

-- 
	-Colin

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/