Michael C. Toren on Tue, 27 Oct 1998 11:33:58 -0500 (EST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: LILO question


On Tue, 27 Oct 1998, Kurt Starsinic wrote:

>     `lilo -q -v -v' tells me most of what I want to know, but it doesn't
> give the pathnames of the kernels.  Is this information available
> somewhere?

Not easily.

The problem is that the only time LILO uses a filesystem to locate a
kernel is when /sbin/lilo is run and the configuration file is read in.  
At that time, LILO records only the /physical/ location of the kernels
that are specified by "image =" lines.  These physical locations are then
referred to at bootup to find the selected kernel to boot from.

By running "lilo -q -v -v" you can list the physical location of each
kernel in the boot-map.  Here is sample output from a friend's machine:

	Images:
	  Linux-mith      * <dev=0x80,hd=46,cyl=11,sct=137>
	  [snip]

	  Linux             <dev=0x80,hd=46,cyl=11,sct=140>
	  [snip]

There are a total of two kernels listed.  The first (labeled Linux-mith) is
located on device 0x80, head 49, cylinder 11, sector 137.  The second
(labeled Linux) is located on device 0x80, head 46, cylinder 11, sector 140.

Unfortunately, I know of no easy way to map these disk locations to a path
and filename on an ext2 filesystem.  Perhaps someone on the list does.

-- 
Michael Toren      work: mct@netaxs.com       Compilers optimize
Net Access NOC     play: mct@netisland.net    better in the dark


  • References: