[NTLUG:Discuss] Boot Loader
George Lass
George.Lass at osc.com
Thu Aug 7 11:45:19 CDT 2003
> >>
> > What he means is to open a terminal, su to root, and type the command:
> > grub --install
> >
> > It's just that simple.
In order to verify what needs to be in my grub.conf file I
installed grub on a floppy:
dd if=stage1 of=/dev/fd0 bs=512 count=1
dd if=stage2 of=/dev/fd0 bs=512 seek=1
built the following grup.conf file:
splashimage=(hd1,0)/grub/splash.xpm.gz
title DELL-DIAG
rootnoverify (hd0,0)
chainloader +1
title WIN-XP
rootnoverify (hd0,1)
chainloader +1
title CURRENT_LINUX
root (hd1,0)
kernel /vmlinuz-2.4.20-8 root=/dev/hdb2 ro
booted from the floppy and at the grub prompt I entered:
configfile (hd1,1)/etc/grub.conf
everything worked just fine. Now to actually install grub
on one of my hard drives. can it really be as simple as
grub --install ?? I don't want to wipe out the loader for
WIN XP (not yet anyway). Here is how Liunx fdisk sees things:
Device Boot Start End Blocks Id System
/dev/hda1 1 5 40131 6 FAT16
/dev/hda2 * 6 7294 58548892+ 7 HPFS/NTFS
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 905 7164990 83 Linux
/dev/hdb3 906 1035 1044225 82 Linux swap
/dev/hdb4 1036 4865 30764475 83 Linux
and here is how I mount / and /boot:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdb2 7052496 2022600 4671648 31% /
/dev/hdb1 101089 25955 69915 28% /boot
It should be noted that the only boot options in the PC's BIOS
are floppy, CD-ROM, and Hard-Disk c:
George
More information about the Discuss
mailing list