Hi all,
Its time for another random update! Yes!
Actually I was told to install red hat and setup the boot loader in my lab. So I decided to write a simple script that will do configure the boot loader. Here is my script if you are interested
#!/bin/bash
rm /boot/grub/grub.conf
cp /media/TOSHIBA/grub.conf /boot/grub/grub.conf
rm /root/Desktop/file2.sh
reboot
And here is my grub.conf file
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
showmenu
title Red Hat Enterprise Linux Server (2.6.18-128.el5PAE)
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-128.el5PAE ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-128.el5PAE.img
title Window XP
rootnoverify (hd0,0)
chainloader +1
Its time for another random update! Yes!
Actually I was told to install red hat and setup the boot loader in my lab. So I decided to write a simple script that will do configure the boot loader. Here is my script if you are interested
#!/bin/bash
rm /boot/grub/grub.conf
cp /media/TOSHIBA/grub.conf /boot/grub/grub.conf
rm /root/Desktop/file2.sh
reboot
And here is my grub.conf file
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
showmenu
title Red Hat Enterprise Linux Server (2.6.18-128.el5PAE)
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-128.el5PAE ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-128.el5PAE.img
title Window XP
rootnoverify (hd0,0)
chainloader +1
Comments
Post a Comment