That you need to run 'lilo' after doing any change to the bootloader configuration or a kernel update or change. Grub doesn't need that.
Grub can read directly from the filesystem, so it can read the menu and other files directly during boot. On the other hand, lilo can not do that, it needs a map to find those things it needs being compiled before hand (by running the 'lilo' command).
Just to concur with Carlos, after any kernel upgrade, you'll need to run "#/sbin/lilo" to update Lilo's boot selection. There is plenty of documentation for lilo and it is easy to update and modify. It may lack a few of the functions that Grub supports, but it works well enough. You won't be disappointed. Besides, after you make any changes you need or want, you won't need to tend to it again. ~James
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2005-11-02 at 11:30 -0800, James D. Parra wrote:
Just to concur with Carlos, after any kernel upgrade, you'll need to run "#/sbin/lilo" to update Lilo's boot selection. There is plenty of documentation for lilo and it is easy to update and modify. It may lack a few of the functions that Grub supports, but it works well enough. You won't be disappointed. Besides, after you make any changes you need or want, you won't need to tend to it again.
And I find it easier to diagnose. For example, grub doesn't recognise my new 160GB hard disk. I had two, one a 60 GB model and another 40 GB for linux, that I wanted to retire, I need more space. But grub doesn't even see it: grub> root (hd Possible disks are: hd0 hd1 and the new disk is number 3, hdd. I can not install grub there, nor can I use a boot partition there. I haven't tried lilo yet, but I might. I wonder if I could test lilo first without installing it. The "funny" thing is that the bios does see that disk (although incorrectly). Even MsDOS 6.0 (yes, plain old dos) can boot from that disk. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDafpktTMYHG2NR9URAttoAJ9FqKSMEmP4PHOXWg2ksXjM7KmT+gCghiJG AKBtp1sB/iTsSIMgBqgtGS0= =OCKp -----END PGP SIGNATURE-----
* Carlos E. R. <robin1.listas@tiscali.es> (Thu, Nov 03, 2005 at 12:54:09PM +0100)
And I find it easier to diagnose.
For example, grub doesn't recognise my new 160GB hard disk. I had two, one a 60 GB model and another 40 GB for linux, that I wanted to retire, I need more space. But grub doesn't even see it:
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I use a boot partition there. I haven't tried lilo yet, but I might. I wonder if I could test lilo first without installing it.
That has nothing to do with it. What amtters is if your installler (suse 10 I guess) will see the disk. If suse 10 sees the disk, it can install grub on it, and it will just work. The only reason why i still have lilo on one of my machines is that I have the root partition on a software mirror (/dev/md0) and grub could not handle that at the time I installed the box (and sicne it is working, i ahve never felt the need to change it. Grub should be able to handle having root on software mirros now as well I think.
The "funny" thing is that the bios does see that disk (although incorrectly). Even MsDOS 6.0 (yes, plain old dos) can boot from that disk.
Kind regards, -- Gerhard den Hollander Phone :+31-70.3.170.515 Global ICT manager Direct:+31-70.3.170.539 Fugro-Jason Fax :+31-70.3.170.511 gdenhollander@Fugro-Jason.com POBox 35 visit us at http://www.Fugro-Jason.com 2260 AA Leidschendam The Netherlands This e-mail and any files transmitted with it are confidential and intended solely for the use of the addressee. This e-mail shall not be deemed binding unless confirmed in writing. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-11-03 at 13:31 +0100, Gerhard den Hollander wrote:
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I use a boot partition there. I haven't tried lilo yet, but I might. I wonder if I could test lilo first without installing it.
That has nothing to do with it. What amtters is if your installler (suse 10 I guess) will see the disk. If suse 10 sees the disk, it can install grub on it, and it will just work.
Yes, it does have to do. It is 9.3, an installed system working for several years now; what I was doing is upgrading one HD, not the system. Yast sees the disk perfectly, I made the partitions using yast. But the bootloader section of Yast does _not_ see the disk. I tried several times and different ways, till I discovered that grub does not see that disk. I know what I'm talking about. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDagujtTMYHG2NR9URAsrzAJ4ieQqLvKeytSUlgStUN1xaj5XLPACfQ8Xh wiWz8Cu62/EP3IjerSoT9So= =GwtA -----END PGP SIGNATURE-----
On Thu, 2005-11-03 at 12:54 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Wednesday 2005-11-02 at 11:30 -0800, James D. Parra wrote:
Just to concur with Carlos, after any kernel upgrade, you'll need to run "#/sbin/lilo" to update Lilo's boot selection. There is plenty of documentation for lilo and it is easy to update and modify. It may lack a few of the functions that Grub supports, but it works well enough. You won't be disappointed. Besides, after you make any changes you need or want, you won't need to tend to it again.
And I find it easier to diagnose.
For example, grub doesn't recognise my new 160GB hard disk. I had two, one a 60 GB model and another 40 GB for linux, that I wanted to retire, I need more space. But grub doesn't even see it:
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I use a boot partition there. I haven't tried lilo yet, but I might. I wonder if I could test lilo first without installing it.
I thought the third disk would be hdc, doesn't matter how it is attached to the controller. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
* Ken Schneider <suse-list@bout-tyme.net> (Thu, Nov 03, 2005 at 07:33:01AM -0500)
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I
I thought the third disk would be hdc, doesn't matter how it is attached to the controller.
Yes, but Unix is based on C, and there we start counting with 0 So 1st harddisk is hard disk number zero is hd0/hda The disk number 3 / hd3 is then hdd (which means it's the slave on the secondary IDE channel)
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Thu, 2005-11-03 at 13:37 +0100, Gerhard den Hollander wrote:
* Ken Schneider <suse-list@bout-tyme.net> (Thu, Nov 03, 2005 at 07:33:01AM -0500)
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I
I thought the third disk would be hdc, doesn't matter how it is attached to the controller.
Yes, but Unix is based on C, and there we start counting with 0 So 1st harddisk is hard disk number zero is hd0/hda The disk number 3 / hd3 is then hdd (which means it's the slave on the secondary IDE channel)
So... do you have three disks or four? Disk numbering by the system (based on "c") starts at 0, but quantity (not based on "c") starts counting at 1. When I was learning math in school and the teacher held up four fingers and asked how many fingers we saw the answer was four not three. Hence your forth disk would be hdd "d" being the forth letter of the alphabet, and it would not be hd0/hda as there is no hd0, there is hda0 meaning the first partition on the first drive. :-) -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Thu, 2005-11-03 at 08:06 -0500, Ken Schneider wrote:
On Thu, 2005-11-03 at 13:37 +0100, Gerhard den Hollander wrote:
* Ken Schneider <suse-list@bout-tyme.net> (Thu, Nov 03, 2005 at 07:33:01AM -0500)
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I
I thought the third disk would be hdc, doesn't matter how it is attached to the controller.
Yes, but Unix is based on C, and there we start counting with 0 So 1st harddisk is hard disk number zero is hd0/hda The disk number 3 / hd3 is then hdd (which means it's the slave on the secondary IDE channel)
So... do you have three disks or four? Disk numbering by the system (based on "c") starts at 0, but quantity (not based on "c") starts counting at 1. When I was learning math in school and the teacher held up four fingers and asked how many fingers we saw the answer was four not three. Hence your forth disk would be hdd "d" being the forth letter of the alphabet, and it would not be hd0/hda as there is no hd0, there is hda0 meaning the first partition on the first drive. :-) Oops. Even the partitions start counting at 1 as in hda1. So there is no hd0 nor any hda0. :-)
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Ken Schneider wrote:
Oops. Even the partitions start counting at 1 as in hda1. So there is no hd0 nor any hda0. :-)
# cat /boot/grub/device.map (fd0) /dev/fd0 (hd0) /dev/hda (hd1) /dev/hdc (hd2) /dev/sda (hd3) /dev/sdb (hd4) /dev/sdc # -- "I can do all things through Him who gives me strength." Philippians 4:13 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://members.ij.net/mrmazda/
* Ken Schneider <suse-list@bout-tyme.net> (Thu, Nov 03, 2005 at 08:06:01AM -0500)
and the new disk is number 3, hdd. I can not install grub there, nor can I I thought the third disk would be hdc, doesn't matter how it is attached to the controller.
Yes, but Unix is based on C, and there we start counting with 0 So 1st harddisk is hard disk number zero is hd0/hda The disk number 3 / hd3 is then hdd (which means it's the slave on the secondary IDE channel)
So... do you have three disks or four? Disk numbering by the system (based on "c") starts at 0, but quantity (not based on "c") starts counting at 1. When I was learning math in school and the teacher held up four fingers and asked how many fingers we saw the answer was four not three. Hence your forth disk would be hdd "d" being the forth letter of the alphabet, and it would not be hd0/hda as there is no hd0, there is hda0 meaning the first partition on the first drive. :-)
Ok, first, I was not clear enough. Disk numbering is based on where the disk is w.r.t. your controller (assuming we use IDE) Primary Master -> hda (hd0) Primary Slave -> hdb (hd1) Secondary Master> hdc (hd2) Secondary Slave-> hdd (hd3) So if your only disk is a secondary slave (unlikely, but possible) the first disk (quantity 1) would be hd3/hdd You are right about quantity though ;) However, to confuse matters even more, partitions start at 1 So the first partition on the first drive is hda1 (and to confuse it even more, if you use extended partitions, the first partition is hda5 ) And then be glad the system is not a sun, where the first disk could be anything like: /dev/rdsk/c7t4d0s2 (8th controller, scsi Id of disk 4 , 1st device, slice 2 ) where of course the 8th controller was not necesarily controller 8 and IDE disks were emaulated to have the same CxtXdXsX numbering scheme and slice 2 indicates the whole disk.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
Gerhard, <faliquid@xs4all.nl> == The Acoustic Motorbiker == -- and family __O __0 =`\<, =`\<, _o _o _o (=)/(=) (=)/(=) O>O O>O O>O
On Thu, 2005-11-03 at 14:19 +0100, Gerhard den Hollander wrote:
Ok, first, I was not clear enough.
Disk numbering is based on where the disk is w.r.t. your controller (assuming we use IDE) Primary Master -> hda (hd0) Primary Slave -> hdb (hd1) Secondary Master> hdc (hd2) Secondary Slave-> hdd (hd3)
So if your only disk is a secondary slave (unlikely, but possible) the first disk (quantity 1) would be hd3/hdd
You are right about quantity though ;)
However, to confuse matters even more, partitions start at 1
So the first partition on the first drive is hda1
(and to confuse it even more, if you use extended partitions, the first partition is hda5 )
This is good as far as it goes but it doesn't address the last word in the title: GRUB! And that's what seems to be causing some confusion. GRUB does NOT number disks in this way, though its numbers sometimes come out the same and sometimes don't and can even sometimes change half-way through a boot (depending on BIOS settings and mobo). Here is a place to start to understand how GRUB does it: http://www.gnu.org/software/grub/manual/html_node/Naming-convention.html And here are some sample quotes to get the saliva going: "The number `0' is the drive number, which is counted from zero." "Once again, please note that the partition numbers are counted from zero, not from one." "Note that GRUB does not distinguish IDE from SCSI" "Normally, any IDE drive number is less than any SCSI drive number, although that is not true if ..." Cheers, Dave
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-11-03 at 08:06 -0500, Ken Schneider wrote:
Hence your forth disk would be hdd "d" being the forth letter of the alphabet, and it would not be hd0/hda as there is no hd0, there is hda0 meaning the first partition on the first drive. :-)
Don't confuse how humans count things, how the system counts partitions, and how grub count things. Grub is confusing, because contrary to other designers, they chose to start to count things from number 0 onwards - perhaps because in C programming arrays are 0 based and this way the program saves one step complexity, making it smaller and compact, versus human readable. I don't even think they made this choice, but rather the bios designers made it several years ago. Grub simply uses it. I'd have to check this out to make sure, though. So... for grub, (hd0,0) is, normally, hda1. Or more properly said, first disk, first partition, be it ide, be it scsi. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDaivCtTMYHG2NR9URAoIHAKCKy/90qy0SG5fbnRMBSx/tOtrcGgCeIWrG KPBLIqZXovNpdvotrS22/Mw= =Vio9 -----END PGP SIGNATURE-----
on't confuse how humans count things, how the system counts partitions, and how grub count things. Grub is confusing, because contrary to other designers, they chose to start to count things from number 0 onwards - perhaps because in C programming arrays are 0 based and this way the program saves one step complexity, making it smaller and compact, versus human readable.
I don't even think they made this choice, but rather the bios designers made it several years ago. Grub simply uses it. I'd have to check this out to make sure, though. Basing arrays at zero or 1 have been a debate in the technical community for a long time before C before COBOL and FORTRAN. In essence it comes down to
On Thursday 03 November 2005 10:24 am, Carlos E. R. wrote: tables and offsets. The C language is an operating system implementation language, and therefore tends toward zero based arrays. Some languages, the developer can chose to start an array at 0, 1 or 23 for that matter. GRUB's menu config was not intended to be edited by you humans, only by us C programmers who happen to live within 10 miles of MIT :-) -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-11-03 at 07:33 -0500, Ken Schneider wrote:
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I use a boot partition there. I haven't tried lilo yet, but I might. I wonder if I could test lilo first without installing it.
I thought the third disk would be hdc, doesn't matter how it is attached to the controller.
Correct, but grub counts starting from 0; thus hd3 is in fact the fourth disk. I doesn't matter, my grub doesn't see anything else but hda and hdb. No hdd, whatever it chooses to call it. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDagwptTMYHG2NR9URAliJAJ9zKFLFBEzVrfud4KXtWSUEdHu34QCcDcuC LL5362+DbPeF+42M9IANlS8= =bYh0 -----END PGP SIGNATURE-----
Just to concur with Carlos, after any kernel upgrade, you'll need to run "#/sbin/lilo" to update Lilo's boot selection. There is plenty of documentation for lilo and it is easy to update and modify. It may lack a few of the functions that Grub supports, but it works well enough. You won't be disappointed. Besides, after you make any changes you need or want, you won't need to tend to it again.
And I find it easier to diagnose.
For example, grub doesn't recognise my new 160GB hard disk. I had two, one a 60 GB model and another 40 GB for linux, that I wanted to retire, I need more space. But grub doesn't even see it:
grub> root (hd Possible disks are: hd0 hd1
and the new disk is number 3, hdd. I can not install grub there, nor can I use a boot partition there. I haven't tried lilo yet, but I might. I wonder if I could test lilo first without installing it.
The "funny" thing is that the bios does see that disk (although incorrectly). Even MsDOS 6.0 (yes, plain old dos) can boot from that disk.
and how do you switch from grub to lilo
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2005-11-05 at 05:28 -0500, boricua wrote:
and how do you switch from grub to lilo
Me, by hand, with patience and care :-p Perhaps yast can do it. Dunno. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDbNB7tTMYHG2NR9URAqJkAJ9YINagqluKijctSFcMsYiGd92g9gCgiS/l DOa8hZwmAYY+EPP5AtWos0I= =lT88 -----END PGP SIGNATURE-----
On Sat, 5 Nov 2005 16:32:01 +0100 (CET) "Carlos E. R." <robin1.listas@tiscali.es> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2005-11-05 at 05:28 -0500, boricua wrote:
and how do you switch from grub to lilo
Me, by hand, with patience and care :-p
Perhaps yast can do it. Dunno.
can you exlain how you do it by hand
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2005-11-06 at 09:53 -0500, boricua wrote:
can you exlain how you do it by hand
Not in detail. I solve each problem as it comes by... I'd install lilo from the rpm (using yast), edit /etc/lilo.conf taking /boot/grub/menu as a general guide, then run lilo as root. Done. Piece of cake. Probably yast will insist on removing grub first, so I would make a backup copy first. And yast bootloader configurator will handle lilo just as happily, I understand, it always did in the past. Will it boot? Probably. Maybe not. Depends! In the normal case, yes. If grub had problems, it is not sure that lilo won't have problems as well. I haven't gone this road yet. I changed from lilo to grub when it became the default for suse, but Yast did it automatically for me, during a full system upgrade. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDblxdtTMYHG2NR9URAlCHAJ9NZE64ed+wCGjZ3X0womGuCdJUewCePjHL ezjqrfwBO037ZHMK6zHo2YE= =XyYT -----END PGP SIGNATURE-----
participants (8)
-
boricua
-
Carlos E. R.
-
Dave Howorth
-
Felix Miata
-
Gerhard den Hollander
-
James D. Parra
-
Jerry Feldman
-
Ken Schneider