LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to change the boot OS name (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-the-boot-os-name-286545/)

aoeshang 02-05-2005 09:01 AM

How to change the boot OS name
 
I installed WinXp first and then Red Hat 9. During boot up, the Red Hat boot
loader asked me which OS i want to boot. At the beginning, there are two
choices: Red Hat_<version no.> and DOS. When I boot to Red Hat, it asked
me to updated my Red Hat, I did it and now, during boot up, I got three
selections:

1) Red Hat_<new version No.>
2) Red Hat_<old version No.>
3) DOS (I set it as default boot)

My questions:
1) can I delete the boot option for the "RedHat _<old version NO.>"?
2) CanI change the name "DOS" to like "Windows XP"?

In my case, WinXP is installed in Master drive and Linux installed in slave
drive.

Thanks for help!

nazir 02-05-2005 09:06 AM

what are you using? lilo or grub?

aoeshang 02-05-2005 09:13 AM

Quote:

Originally posted by nazir
what are you using? lilo or grub?
I'm using Grub

nazir 02-05-2005 09:21 AM

if lilo:

edit /etc/lilo.conf
1) find something like that
Code:

image=/boot/vmlinuz
        label="Red Hat_<old version No.>"
        root=/dev/hda7
        ...
        ...

and delete it
2) find and change label="Dos" to label="Windows XP"

then save changes and as root type at console
Code:

lilo
if using grub, find something like /boot/grub/menu.lst or /etc/grub/menu.lst or similar (i don't know how it is in RH)
1) find something like that and delete:
Code:

title Red Hat_<old version No.>
  root (hd0,3)
  kernel /boot/vmlinuz root=/dev/hda3

2) find something like that and change the title
Code:

title Dos
    rootnoverify (hd0,0)


reddazz 02-05-2005 09:37 AM

Another method would be to delete the old kernel by doing,
$rpm -qa | grep -i kernel
#rpm -e kernel-version(name of the old kernel)
This removes the old kernel and it's grub entry.

aoeshang 02-05-2005 09:54 AM

Quote:

if using grub, find something like /boot/grub/menu.lst or /etc/grub/menu.lst or similar (i don't know how it is in RH)
Thanks nazir! your memory is good, its /boot/grub/menu.lst

I did it and now the boot up looks nicer!
Cheers!

ve6gil 02-05-2005 08:00 PM

Aoeshang, thanks for asking one of the questions I had rattling around in the back of my mind.

Redazz, good info. I appreciate the explicit examples. Gives one confidence in what you suggest. It worked nicely too. Thanks!

...Gil


All times are GMT -5. The time now is 06:21 AM.