How about use the following two steps,

1. Boot Linux use "linux rescue"
2. input command "chroot /mnt/sysimage"
3. input command "grub-install /dev/sda", where /dev/sda/ is the boot
disk with MBR. I suppose that u installed windows on /dev/sda

Z. He


Michael Mansour wrote:

> Hi,
>
> I built a box last night with the following config:
>
> 4x 9gb UW2 scsi drives off an adaptec controller
>
> First drive (/dev/sda) or hd(0,0) in grub.conf, I
> installed Windows 2000 professional. I made this a
> primary partition.
>
> Second and third drives (/dev/sdb and /dev/sdc) or
> hd(1,0) under grub.conf I created a Linux software
> raid 1 mirror and installed Red Hat Linux 8.0. Also
> made this a primary partition.
>
> I seemingly mistakenly installed grub on /dev/sdb.
>
> When booting the machine, Windows 2000 automatically
> boots, when what I really want is for grub's menu to
> kick in and allow me to choose it, defaulting to
> Linux.
>
> I realise now I should have chosen /dev/sda to install
> grub on the redhat linux install (if it would allow
> me) but am now trying to get grub installed on
> /dev/sda, and realise I don't know how to do this
> without re-installing linux.
>
> Anyone know how to do this?
>
> Googling I came up with grubconfig, which is a script
> that installs grub into an MBR, but this does not seem
> to work for software raid under /dev/md0 (which really
> resides under /dev/sdb and /dev/sdc).
>
> At the moment I'm booting the system from the boot
> floppy, which only seems to start one cpu (it's a dual
> system). I also tried changing the boot drive on
> adaptec's controller to 1, but that didn't work
> either.
>
> Any ideas how I can install grub into this type of MBR
> combination?
>
> I've added my fstab, raidtab and grub.conf below for
> you.
>
> fstab:
>
> /dev/md3                /                       ext3
>  defaults        1 1
> /dev/md0                /boot                   ext3
>  defaults        1 2
> none                    /dev/pts                devpts
>  gid=5,mode=620  0 0
> /dev/md5                /home                   ext3
>  defaults        1 2
> none                    /proc                   proc
>  defaults        0 0
> none                    /dev/shm                tmpfs
>  defaults        0 0
> /dev/md1                /usr                    ext3
>  defaults        1 2
> /dev/md2                /var                    ext3
>  defaults        1 2
> /dev/md4                swap                    swap
>  defaults        0 0
> /dev/cdrom              /mnt/cdrom
> iso9660 noauto,owner,kudzu,ro 0 0
> /dev/fd0                /mnt/floppy             auto
>  noauto,owner,kudzu 0 0
>
> /etc/raidtab:
>
> raiddev            /dev/md3
> raid-level          1
> nr-raid-disks       2
> chunk-size          64k
> persistent-superblock       1
> nr-spare-disks      0
>     device         /dev/sdb5
>     raid-disk     0
>     device         /dev/sdc5
>     raid-disk     1
> raiddev            /dev/md0
> raid-level          1
> nr-raid-disks       2
> chunk-size          64k
> persistent-superblock       1
> nr-spare-disks      0
>     device         /dev/sdb1
>     raid-disk     0
>     device         /dev/sdc1
>     raid-disk     1
> raiddev            /dev/md5
> raid-level          1
> nr-raid-disks       2
> chunk-size          64k
> persistent-superblock       1
> nr-spare-disks      0
>     device         /dev/sdb7
>     raid-disk     0
>     device         /dev/sdc7
>     raid-disk     1
> raiddev            /dev/md1
> raid-level          1
> nr-raid-disks       2
> chunk-size          64k
> persistent-superblock       1
> nr-spare-disks      0
>     device         /dev/sdb2
>     raid-disk     0
>     device         /dev/sdc2
>     raid-disk     1
> raiddev            /dev/md2
> raid-level          1
> nr-raid-disks       2
> chunk-size          64k
> persistent-superblock       1
> nr-spare-disks      0
>     device         /dev/sdb3
>     raid-disk     0
>     device         /dev/sdc3
>     raid-disk     1
> raiddev            /dev/md4
> raid-level          1
> nr-raid-disks       2
> chunk-size          64k
> persistent-superblock       1
> nr-spare-disks      0
>     device         /dev/sdb6
>     raid-disk     0
>     device         /dev/sdc6
>     raid-disk     1
>
> /etc/grub.conf:
>
> # Note that you do not have to rerun grub after making
> changes to this file
> # NOTICE:  You have a /boot partition.  This means
> that
> #          all kernel and initrd paths are relative to
> /boot/, eg.
> #          root (hd1,0)
> #          kernel /vmlinuz-version ro root=/dev/md3
> #          initrd /initrd-version.img
> #boot=/dev/sdb
> default=1
> timeout=10
> splashimage=(hd1,0)/grub/splash.xpm.gz
> title Red Hat Linux (2.4.20-20.8)
>         root (hd1,0)
>         kernel /vmlinuz-2.4.20-20.8 ro root=/dev/md3
>         initrd /initrd-2.4.20-20.8.img
> title Red Hat Linux (2.4.20-20.8smp)
>         root (hd1,0)
>         kernel /vmlinuz-2.4.20-20.8smp ro
> root=/dev/md3
>         initrd /initrd-2.4.20-20.8smp.img
> title Red Hat Linux (2.4.18-14smp)
>         root (hd1,0)
>         kernel /vmlinuz-2.4.18-14smp ro root=/dev/md3
>         initrd /initrd-2.4.18-14smp.img
> title Red Hat Linux-up (2.4.18-14)
>         root (hd1,0)
>         kernel /vmlinuz-2.4.18-14 ro root=/dev/md3
>         initrd /initrd-2.4.18-14.img
> title Windows 2000
>         rootnoverify (hd0,0)
>         chainloader +1
>
> Any help is appreciated.
>
> Michael.
>
> http://search.yahoo.com.au - Yahoo! Search
> - Looking for more? Try the new Yahoo! Search
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to