Re: Boot Loader

From: Arthur Hagen (art_at_broomstick.com)
Date: 05/24/05


Date: Mon, 23 May 2005 22:47:01 -0400

houghi <houghi@houghi.org.invalid> wrote:
>
> During instalation you can change that. After that you can do it in
> Yast. Go to the Boot Loader Setup and doubleclick on Boot Loader
> Location.
>
> I however think it strange that you think choosing is that hard. If
> you want to boot into Windows automagically, just change the order of
> booting. You can even change the time so that if your SO boots it will
> only take 2 seconds more.
>
> You the have 2 seconds if you want SUSE to start.

2 seconds might not be enough. There's wireless keyboards that take 5
seconds or more to establish a connection when you press the first key.

> That brings me to another question. What must I put in
> /boot/grub/menu.lst so I can boot from CD or DVD? This when I want to
> test a Live CD or DVD. If I could do it with stuff in mbr, I do not
> need to change my BIOS every time I do this (and change it back)

The short (and incorrect) answer is that you can't. It would defeat the
purpose of turning off CD boot in the BIOS and protect the BIOS with a
password.

A slightly longer (and incomplete) answer: grub expects to find a stage2 on
the boot media, or a chainloadable boot loader. You can put those on a
bootable CD/DVD and boot it through the grub menu, if you have a new enough
version of grub (or patch it with the iso9660 patch yourself). However,
that's not how most CDs boot -- there is no bootloader as a file, but an
embedded floppy image that the BIOS fetches.

What you probably tried is something like:

title Boot from CD
    chainloader (hd1)+1 # substitute with your cd/dvd drive

... which will work if the CD/DVD contains a normal boot block, and doesn't
rely on special BIOS support for booting an embedded floppy image. It'll
work only if it's a very speshul CD that pretends it's a HD, which is almost
certainly not the case.

That said, there is a way, using Smart Boot Manager (available from
http://btmgr.webframe.org/) and MEMDISK (available from
http://syslinux.zytor.com/memdisk.php). Install memdisk and cdboot.raw in
/boot, and add the following:

title Boot from CD
    kernel /boot/memdisk floppy
    initrd /boot/cdboot.raw

This should work for CDs that use a 1.44 or 2.88 MB emulated floppy image
for booting, which are most of them. And yes, it bypasses BIOS password
protection which normally prevents you from booting from a CD. And yes,
I'll probably go to heck for telling you. :-)

Regards,

-- 
*Art


Relevant Pages

  • Re: Suggestions for PII 400 boot failure
    ... I have put together an old PII 400 with three 20GB drives and a CDROM that I'd like to run BSD on. ... burned CDs of them and when I try to run them it starts to boot and then freezes tighter than a muskrat's arse. ... It just don't like booting to that OS." ... The first thing your PC does after being powered on or when rebooting is the motherboard BIOS ROM chip gets control and it interrogates all the hardware ports on the motherboard to determine what I/O devices are attached. ...
    (freebsd-questions)
  • Re: 2 wondows versions detected on pc startup?
    ... if not put there by the BIOS? ... BIOS examines the very first sector of the disk for a Master Boot Record ... table which describes the layout of the fixed disk and the partition loader ... This is where Windows and NTLDR comes in, ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Windows server 2003 service pack 1 problems
    ... You can get through part of the boot, ... Booting in safe mode ends with the same effect. ... So I went to the BIOS and configured the BIOS with the setting saying ...
    (microsoft.public.windowsupdate)
  • Re: data corruption with nvidia chipsets and IDE/SATA drives // memory hole mapping related bug?!
    ... We could not reproduce the data corruption anymore if we boot the machines ... with the kernel parameter "iommu=soft" i.e. if we use software bounce ... booting with mem=2G => works fine,... ... When I set IOMMU to disabled in the BIOS the error is not solved- ...
    (Linux-Kernel)
  • Re: maximum hard drive size in Latitude cpi
    ... > actually written a boot loader they won't be so adamant about how "Windows ... > of the disk, and while it is being read off of the disk the machine is ... > limitatoins of that BIOS. ... After that the kernel takes over. ...
    (comp.sys.laptops)