Convince me, GRUB fans...

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Why GRUB?

I've been wondering this for a while, so I figured I'd ask. I'm working on a Red Hat 9 box right now and RH's LILO is old and broken, so I'm taking the dive into GRUB. While I'm certain I will survive, I just don't get it. Why bother with GRUB? LILO is simple and it works. No goofy command shell. No separate device labelling scheme. And it works. I mean, it's just a boot loader. What is it that GRUB could possibly do to make it worth the fuss of learning another tool? Except for it having a snappy name...
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
I don't care much about which bootloader is used, I just use whatever the distro comes with, so Im fine with either :)

One nice thing about GRUB though, is the ability to edit the bootcommands from the bootloader, so if you do something stupid with your config, such as spell the filename of the kernel wrong or something, you don't need a rescue disk, just edit it from the GRUB CLI, then once you're booted, edit the config file permanently.
 

Chaotic42

Lifer
Jun 15, 2001
35,249
2,386
126
Well, you only need to install GRUB once. After that just edit /boot/grub/menu.lst.

I also like its UI. It's just better looking than LILO is. No crazy hitting <shift> or whatever.
 

Panther505

Senior member
Oct 5, 2000
560
0
0
Originally posted by: Chaotic42
Well, you only need to install GRUB once. After that just edit /boot/grub/menu.lst.

I also like its UI. It's just better looking than LILO is. No crazy hitting <shift> or whatever.



What he said...

Seriously some other things that I enjoy:

1. Encrypted passwords... if you are dumb enough to use your root password as the password for grub then someone cannot cat the file and get your root password.
2. On the fly editing... (ie second Sunners comments)
3. one file to edit /etc/grub.conf on RH and /boot/grub/grub.conf on most other distros
3. no requirement to 'rerun' grub after updating it.
4. Easier on initial setup:
>grub
>root (hd0,0)
>setup (hdo)
>quit
This is the same regardless of IDE or SCSI

That is about all that I can think of this early in the mornin.


edit >correction and grammar clarification.
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
3. one file to edit /etc/grub.conf on RH and /boot/grub/grub.conf on most other distros

FYI:
[bart@jbomb /]$ ls -l /etc/grub.conf
lrwxrwxrwx 1 root root 22 Sep 29 2002 /etc/grub.conf -> ../boot/grub/grub.conf

Thats an RH7.3 box
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Tab completion, when editing anything in the grub command shell it has tab completion for just about everything.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Yeah, good points all around. I suppose I could see GRUB having some definite merits on a multi-booting box, where you might be changing the configuration frequently. Though I still think XOSL is the superior solution in that case. Thanks, all.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Originally posted by: Nothinman
But that requires a FAT partition.
Not exactly. You create a FAT partition to do the install, but XOSL changes it to something else when you use the "dedicated partition" option. Thus, it doesn't register to a Windows install as a FAT partition.

But if your point is that you need to have a bit more prepartion for XOSL as far as disk partitioning goes, then yes. It's not easy to work into a system after other OS's are already installed.

 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: Nothinman
Though I still think XOSL is the superior solution in that case.

But that requires a FAT partition.

Unix people like to have /home, /usr, /boot, and so on on separate partitions... when you already have 10, what's wrong with one more? ;)
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Unix people like to have /home, /usr, /boot, and so on on separate partitions... when you already have 10, what's wrong with one more?

As a unix person, I disagree. I keep as few partitions around as possible, making more just makes for more overhead when I want to change something. Almost all my drives consist of 2 partitions, one swap and one filesystem. The only one that isn't like that is that way because it used to have Win2K on it dual-booted with Linux and consolidating the partitions now that Win2K is gone would be a huge undertaking since it was right in the middle.
 

Fencer128

Platinum Member
Jun 18, 2001
2,700
1
91
The biggest thing for me (I don't know if this has been addressed in LILO recently) is that you overcome the need to place the boot partition within the first x cylinders. This is quite important when you dual boot with windows.

Cheers,

Andy
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: Fencer128
The biggest thing for me (I don't know if this has been addressed in LILO recently) is that you overcome the need to place the boot partition within the first x cylinders. This is quite important when you dual boot with windows.

Cheers,

Andy

I haven't ever had an issue with putting linux anywhere on a 30 GB drive.
 

Fencer128

Platinum Member
Jun 18, 2001
2,700
1
91
I haven't ever had an issue with putting linux anywhere on a 30 GB drive.

If you use LILO, use a boot partition and want to put Windows at the very start of the disk - you can't. The boot partition must be within so many cylinders of the start of the disk. I may have this *slightly* wrong as for this reason it's been a while since I've used LILO in dual-boot configs.

Cheers,

Andy
 

Panther505

Senior member
Oct 5, 2000
560
0
0
Originally posted by: Fencer128
I haven't ever had an issue with putting linux anywhere on a 30 GB drive.

If you use LILO, use a boot partition and want to put Windows at the very start of the disk - you can't. The boot partition must be within so many cylinders of the start of the disk. I may have this *slightly* wrong as for this reason it's been a while since I've used LILO in dual-boot configs.

Cheers,

Andy

That was one of the original problems. Lilo has had that fixed for quite a while (I can't quantify cause I am too lazy to look through the change logs). I know that someone and I had this discussion on the forums before (with n0cmonkey or nothingman).
 

PowerMacG5

Diamond Member
Apr 14, 2002
7,701
0
0
When I used Linux, I preferred GRUB. As all have said, the feature list is more impressive, and the UI is much nicer.
 

Panther505

Senior member
Oct 5, 2000
560
0
0
Originally posted by: Buddha Bart
3. one file to edit /etc/grub.conf on RH and /boot/grub/grub.conf on most other distros

FYI:
[bart@jbomb /]$ ls -l /etc/grub.conf
lrwxrwxrwx 1 root root 22 Sep 29 2002 /etc/grub.conf -> ../boot/grub/grub.conf

Thats an RH7.3 box

That is a RH set up... most others are in /boot/grub/grub.conf - in RH there is a symbolic link to make it easy but in gentoo & debian (I am guessing as I have lilo installed on my Deb system.) I would expect to find it in /boot/grub/grub.conf or /boot/grub/menu.lst
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
LILO hasn't been limited by the 1024 cylinder things in *years*. It booted past that on the first machine I installed Linux on - a brand-new, cutting-edge P3 500.
 

Panther505

Senior member
Oct 5, 2000
560
0
0
Originally posted by: cleverhandle
LILO hasn't been limited by the 1024 cylinder things in *years*. It booted past that on the first machine I installed Linux on - a brand-new, cutting-edge P3 500.

Couldn't remember when lilo picked it up.... Probably before I really "got going" in linux.
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Features always sound impressive, but honestly none sound all that thrilling to me except not having to run lilo whenever you change something. A command line and an editor in your boot loader? Seems like feature bloat to me. KISS!
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
would expect to find it in /boot/grub/grub.conf

It is. Read closer. The file in /etc is the symbolic link. The actual config file is in the same place on redhat as it is on the debian system you mention and the "most other distros" panther mentions.
 

sciencewhiz

Diamond Member
Jun 30, 2000
5,886
8
81
I like the fact that lilo is not dependent on the filesystem of any particular OS. If I wipe out /boot with grub, I'm dead. With lilo, I can still boot any operating system that didn't have files in /boot.
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
Originally posted by: BingBongWongFooey
Features always sound impressive, but honestly none sound all that thrilling to me except not having to run lilo whenever you change something. A command line and an editor in your boot loader? Seems like feature bloat to me. KISS!

See my original comment for a reason why it's very convenient.