LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2009, 12:43 AM   #1
rabiticide
Member
 
Registered: Dec 2008
Posts: 42

Rep: Reputation: 15
tweaking grub... (apps?)


Here's my specific problem: I installed Slackware which put LiLo in my mbr and, of course, all my other distro's went away. Things didn't work how I liked but, like a good boy, I had backed up my mbr and put everything back the way it was.

I want to be able to put the slack installation into my grub menu so I can play with it while still having working distros. There is nothing like an initrd in slackware as far as I can tell and the lilo.conf doesn't translate to grub.conf, at least not to me.

My general problem is that I often want to add things to my grub menu and editing the text files is too difficult for me.

Is there a gui, or at least a menu driven app which makes this easier? I know the ubuntu installer does a nice job of gathering all the distros together, but I don't want to go through all that...
 
Old 09-30-2009, 02:43 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
So, you want "automatic" or ... a menu driven app
- which you still would need to tell which part or file is which and belongs to where...
you still need to have some control over such an automatic solution (configuring it for example) which in turn would need some interaction on your part.

There is no automatic solution I'm aware of.

To understand better what the problem is to you:

how is
writing the information (which you have to have) to a text file
different from
doing clicks to do essentially the same in a menu driven app?

In both cases you still have to gather the info yourself, manually.
The only difference is between "writing" and "clicking".

You needn't learn "vi" or "nano" if that is what scares you - it can be any text editor you are comfortable with in you GUI environment - such as the standard editor in Gnome or KDE.
And the syntax of the grub configuration file is fairly simple.

Is it the syntax you don't understand?
 
Old 09-30-2009, 03:10 AM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
What did you find difficult to add a new distros to you're menu.lst ?
As stated before you can use nano or pico for it .
You even can use kwrite to do the trick.
It works as , as long as you use a real linux text editor
There are many ways to to chain loading .
One way is

root (hd?,?) ? depending on the drive and partition
title linux X
configfile /boot/grub/menu.lst (the menu.lst of the distro you are adding )

so if are using nano nano /boot/grub/menu.st (menu.lst from the distro you are booting from)
 
Old 09-30-2009, 12:47 PM   #4
rabiticide
Member
 
Registered: Dec 2008
Posts: 42

Original Poster
Rep: Reputation: 15
The problem is not editing a text file, but knowing what to put where. The lilo.conf file has places for:

image
root
label

But nothing for initrd! Do I need to make an initrd? How did slackware boot from lilo without one?

The reason I want an automatic, or semiautomatic solution is that I am often tweaking grub and every problem is different. The ubuntu installer says "Hey, I found these other OS's. Do you want them available at boot?" and then it does it. I vacillate between wanting to be a good linux learner and doing it the hard way, and just wanting it done...
 
Old 09-30-2009, 01:31 PM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Quote:
The lilo.conf file has places for:

image
root
label
Maybe Slackware does not use an initrd - I've never used Slackware and I'm not familiar anymore with lilo and how to tell it to use one - it surely is possible.

grub's configuration has a similar structure:
first come:
default --> the section/kernel you want to boot by default
timeout --> in seconds, before the default is booted
optionally:
splashimage --> a background-image for the menu
root --> the partition where grub's files are. This is where the /boot directory is - in grub's notation:
it starts to count from 0 for harddisk/partition
(hd0,1) for example means: first harddisk,second partition
next come as many sections as you need,each consisting of:
title --> the name you want to see in the menu
kernel --> the name of the file which is your kernel (often just vmlinuz - or your own name
followed, on the same line, by the options the kernel needs to know - such as where the filesystems / will be found and more
possibly a third line - if you use an initrd

Example of grub.conf, the sections separated by empty lines:
Code:
default 0
timeout 2

splashimage=(hd0,0)/grub/splash.xpm.gz

root (hd0,0)


# my default - and currently only - kernel installed here
title=Gentoo-2.6.31
kernel /vmlinuz-2.6.31-gentoo root=/dev/hda3 video=radeonfb:vesa:1024x768-16@60


# only this is strictly necessary to boot the same kernel
title=Gentoo-2.6.31-plain
kernel /vmlinuz-2.6.31-gentoo root=/dev/hda3

# an older entry I kept to remind me of the syntax 
#title=Gentoo-vesafb
#kernel /kernel-2.6.14-gentoo-r5 root=/dev/hda5 video=vesafb:ywrap,pmipal

# another old entry I kept to remind me of the syntax for initrd for the splash
#title=Gentoo with FB
#kernel /vmlinuz root=/dev/hda5 video=uvesafb:ywrap,pmipal,1024x768-16@60,mtrr:3 splash=verbose,fadein,theme:emergence quiet  CONSOLE=/dev/tty1
#initrd /boot/fbsplash-emergence-1024x768

# windows, which I don't have anymore - just kept the lines
#title=Windows XP
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
HTH

Last edited by jomen; 09-30-2009 at 02:02 PM.
 
Old 10-07-2009, 04:29 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The automatic solution is : Smart Boot Manager.

With Grub or Lilo installed to super block ( the install partition ),
they can all be booted from the 'SmartBootManager' in MBR
( or on a floppy ( cdrom )).

I have 10..13 OS's on each hard disk, "SBM" in MBR, and never edit
Grub or Lilo. .. Will boot Linux, Windows, BSD's, cdrom(s), floppy.
Have used this solution for 5 years, always works perfect.

http://linux.simple.be/tools/sbm

http://sourceforge.net/projects/btmgr/
> > sbminst → → example command : # ./sbminst -d /dev/sda
.....

Last edited by knudfl; 10-07-2009 at 04:39 AM.
 
Old 10-07-2009, 05:04 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
if your grub will boot slack put this in the kernel line
kernel /boot/vmlinuz root=/dev/hda? vga=normal ro
thats assuming you have an ide hardrive. otherwise install slack lilo to the slackware root partiton using the install disk and chainload from grub with the following:
rootnoverify (?,?)
chainloader +1
 
  


Reply

Tags
grub



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing apps and restoring crashed apps in GNU/Linux aero_z Linux - Newbie 11 01-20-2009 02:10 PM
GTK apps display chinese, QT apps dont zhangmaike Linux - Desktop 0 07-03-2007 11:57 PM
Tweaking GRUB RJEmery Linux - Newbie 3 04-15-2005 08:49 AM
Slack 9.1 - PHP apps can't access MySQL but Perl Apps can tallship Linux - Software 1 06-13-2004 08:41 AM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration