2008-09-20-0031Z


Finally got my linux system on my old Compaq Armada M700 laptop to powerdown, using the "apm=on acpi=force apm=power-off" kernel parameters in an "append=" line in lilo.conf. I'd actually made this change long ago, but forgotten to copy the bootblock after running lilo. You see, I'm still using Win2K's boot-select mechanism using a line in \boot.ini:

c:\hda6.bin="God Damn Linux"

Now that I have the poweroff problem fixed, I can make that my default boot by moving it to the top of the file. To copy the bootblock under Cygwin, I had to figure out how /dev/hda6 mapped to Cygwin's /dev/sdaN pseudodevices. Using "head -c 512 | xxd" on each of the /dev/sdaN numbers, I found the LILO-written block at /dev/sda3, and ran: "dd if=/dev/sda3 of=/cygdrive/c/hda6.bin bs=512 count=1" to get the new bootblock. It would have been easier to boot back into Linux and do it from there, but I felt like doing it the hard way.

Back to blog or home page

last updated 2013-01-10 21:17:38. served from tektonic.jcomeau.com