bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem booting Win from menu.lst only


From: Bob Berman
Subject: problem booting Win from menu.lst only
Date: Sat, 15 Sep 2001 17:30:25 -0400 (EDT)

I have no problems booting my system from the grub command line, but
if I set up a floppy with the same commands in menu.lst, I can not
boot any of my Windows systems succesfully. My system is:

/dev/sda - entire disk - Win2k
/dev/sdb - entire disk - Win XP
/dev/sdc - entire disk - Linux under LVM & ReiserFS
/dev/sdd - CDRW device
/dev/hda - Linux & Win 98 (IDE disk)
        /dev/hda10 - /
        /dev/hda8 - /home
        /dev/hda9 - /extra
        /dev/hda1 - Win 98
/dev/hdb - CDROM

By BIOS is set to boot floppy ->  SCSI -> IDE

I have an IDE CD ROM which is /dev/hdb (slave)


To boot Win2k I don't use grub or anything. It boots via the NT bootloader
or whatever.

To boot XP I have a floppy with plain vanilla grub installed and I get a grub
command line. If I enter:

    GRUB  version 0.5.96.1  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> 
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
boot

it boots Win XP fine.

So I tried to put the same commands in menu.lst:
#
# Sample boot menu configuration file
#
color white/blue

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Fallback to the second entry.
fallback 1

# For booting Linux
title  Linux
root (hd3,9)
kernel /boot/vmlinuz.2.2.13

# For booting Windows XP
title Windows XP
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1
boot


And it boots Linux just fine, but the Win XP boot hangs.
I have an onboard AIC 7890 SCSI BIOS - (mobo is ASUS P2BLS).

Here is the relevant info from my boot log on Linux:


Uniform Multi-Platform E-IDE driver Revision: 6.20
PIIX4: IDE controller on PCI bus 00 dev 21
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:pio, hdd:pio
hda: Maxtor 91728D8, ATA DISK drive
hdb: CD-ROM 48X/AKU, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: Maxtor 91728D8, 16479MB w/512kB Cache, CHS=2100/255/63
hdb: ATAPI 48X CD-ROM drive, 128kB Cache
Uniform CDROM driver Revision: 2.56
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077


(scsi0) <Adaptec AIC-7890/1 Ultra2 SCSI host adapter> found at PCI 6/0
(scsi0) Wide Channel, SCSI ID=7, 32/255 SCBs
(scsi0) Downloading sequencer code... 374 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.20/3.2.4
       <Adaptec AIC-7890/1 Ultra2 SCSI host adapter>
scsi : 1 host.
(scsi0:0:0:0) Synchronous at 80.0 Mbyte/sec, offset 31.
  Vendor: QUANTUM   Model: ATLAS IV 9 WLS    Rev: 0909
  Type:   Direct-Access                      ANSI SCSI revision: 03
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
(scsi0:0:1:0) Synchronous at 80.0 Mbyte/sec, offset 31.
  Vendor: QUANTUM   Model: ATLAS IV 9 WLS    Rev: 0909
  Type:   Direct-Access                      ANSI SCSI revision: 03
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
(scsi0:0:2:0) Synchronous at 80.0 Mbyte/sec, offset 31.
  Vendor: QUANTUM   Model: ATLAS 10K 18SCA   Rev: UCH0
  Type:   Direct-Access                      ANSI SCSI revision: 03
Detected scsi disk sdc at scsi0, channel 0, id 2, lun 0
(scsi0:0:3:0) Synchronous at 10.0 Mbyte/sec, offset 15.
  Vendor: YAMAHA    Model: CRW6416S          Rev: 1.0b
  Type:   CD-ROM                             ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
scsi : detected 1 SCSI cdrom 3 SCSI disks total.
sr0: scsi3-mmc drive: 16x/16x writer cd/rw xa/form2 cdda tray
SCSI device sda: hdwr sector= 512 bytes. Sectors= 17942584 [8761 MB] [8.8 GB]
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 17942584 [8761 MB] [8.8 GB]
SCSI device sdc: hdwr sector= 512 bytes. Sectors= 35877972 [17518 MB] [17.5 GB]



So my question is: how can I get grub to boot via menu.lst just like it does
via the command line? What is wrong with my menu.lst or do you think this is
related to the other thread about the AHA2940 controller having problems
booting with grub? Except I have no problems at all at the command line. Only
when I put it in menu.lst and create the floppy:

       1. Create filesystem in your floppy disk. For example:

               $ mke2fs /dev/fd0

       2. Mount it on somewhere, say, `/mnt'.

       3. Copy the GRUB images to `/mnt/boot/grub'. Only `stage1',
          `stage2' and `menu.lst' are necessary. You may not copy
          "stage1.5"s.

       4. Run the following command (substitute `/usr/sbin/grub' for
          `/sbin/grub' if you are using an older system):

               $ /sbin/grub --batch <<EOT
               root (fd0)
               setup (fd0)
               quit
               EOT


Any help would be appreciated. Thanks...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]