LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 02-27-2003, 03:26 PM   #1
explorer
Member
 
Registered: Feb 2003
Posts: 229

Rep: Reputation: 34
Cool Mandrake 9 - Edit boot option in grub


I'm running Mandrake 9 on an Omnibook 6000 with Grub as the boot manager. I've used RedHat 8 before and was able to edit my boot options in the grub.conf file in the /etc directory. There is no grub.conf file to edit on my Mandrake system. How do you edit the grub boot options that show up at boot time ? preferable non-gui but anyway will do....
 
Old 02-27-2003, 03:33 PM   #2
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
Have a look in:

/boot/grub/menu.lst

or make one if there isn't one.
 
Old 02-27-2003, 04:03 PM   #3
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Arrow Doesn't Change Options

I found the file menu.lst. It resembles the grub.conf file in RedHat. I made the changes to the file that I wanted, timeout and default, saved the changes and rebooted, but the changes don't show up at boot time. There must be more to it than just editing this file.....
 
Old 02-27-2003, 05:38 PM   #4
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
Nope. It's just a matter of editing the file.

If you want, you can rerun the install program:

grub-install /dev/hda

but you don't need to.

If it doesn't work out, post the output of

fdisk -l /dev/hda

and post the output of

more /boot/grub/menu.lst

and we'll work it out. Try changing a few options first.
 
Old 02-28-2003, 12:36 PM   #5
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Red face Output

Before modifying the menu.lst file, my grub screen at boot up shows the following choices:
linux
failsafe
NT
floppy

linux is the default and the timeout is counting down from 10 seconds:

After modifying the menu.lst file as shown below, the grub screen at boot up shows the same thing:
linux
failsafe
NT
floppy

linux is the default and the timeout is counting down from 10 seconds again.

The only things I modified was the linux and NT titles, and the number of seconds till timeout.....
-----------------------------------------
Output of /boot/grub/menu.lst before modification:
*************************
timeout 10
color black/cyan yellow/cyan
i18n (hd0,4)/boot/grub/messages
keytable (hd0,4)/boot/us.klt
altconfigfile (hd0,4)/boot/grub/menu.once
default 0

title linux
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 devfs=mount
initrd (hd0,4)/boot/initrd.img

title failsafe
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 failsafe devfs=nomount
initrd (hd0,4)/boot/initrd.img

title NT
root (hd0,1)
makeactive
chainloader +1

title floppy
root (fd0)
chainloader +1

----------------------------------------
Output of /boot/grub/menu.lst after modification:
*********
timeout 20
color black/cyan yellow/cyan
i18n (hd0,4)/boot/grub/messages
keytable (hd0,4)/boot/us.klt
altconfigfile (hd0,4)/boot/grub/menu.once
default 0

title Mandrake
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 devfs=mount
initrd (hd0,4)/boot/initrd.img

title failsafe
kernel (hd0,4)/boot/vmlinuz root=/dev/hda5 failsafe devfs=nomount
initrd (hd0,4)/boot/initrd.img

title Windows2000
root (hd0,1)
makeactive
chainloader +1

title floppy
root (fd0)
chainloader +1
--------------------------------------------
Output of fdisk -l /dev/hda:
*********
Disk /dev/hda: 240 heads, 63 sectors, 2584 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2 15088+ 12 Compaq diagnostics
/dev/hda2 3 1390 10493280 7 HPFS/NTFS
/dev/hda3 1391 2584 9026640 5 Extended
/dev/hda5 1391 2104 5397808+ 83 Linux
/dev/hda6 2105 2137 249448+ 82 Linux swap
/dev/hda7 2138 2584 3379288+ 83 Linux
 
Old 02-28-2003, 03:10 PM   #6
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Angry Lilo

My apologies Q Bert - i just THOUGHT I was using Grub, actually it's Lilo. I edited my lilo.conf, ran lilo then robooted and my changes had been made. Thanks for the information regarding the menu.lst file for grub though. I hate making these kind of mistakes but I guess I'm not the first one.......
 
Old 02-28-2003, 03:36 PM   #7
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
It works now. So that's ok. Lots of people are confused by the lilo/grub thing.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Right way to edit /boot/grub/menu.lst ? eeried Linux - Software 2 02-07-2007 08:59 AM
How to edit /boot/grub/menu.lst of the host satimis Linux From Scratch 1 09-25-2005 07:21 AM
Using grub to boot.. How do I edit to get mandrake to boot? rrfish72 Linux - General 3 10-29-2004 02:00 AM
How do I edit the grub boot in SuSE Linux trespasser Linux - Newbie 3 04-12-2004 12:58 PM
Grub in Mandrake doesn't give Red Hat boot option webwolf70 Mandriva 5 03-11-2004 03:44 AM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration