All of lore.kernel.org
 help / color / mirror / Atom feed
* Detection of boot devices by a linux kernel
@ 2007-06-15 12:46 adrian15
  0 siblings, 0 replies; only message in thread
From: adrian15 @ 2007-06-15 12:46 UTC (permalink / raw)
  To: The development of GRUB 2


	First question:
	=================
	
	Once a Kernel has booted can request the bios the different boot
devices and try to open them with a bios-disk driver or whatever the
name is?

	
	Current problems:
	====================	

	I do not know what's the live cd / non-live cd installer algorithm for
detecting which grub device corresponds to which linux device.
	There's a man in hardwareguys.com which gets some strange results. He
installing Linux in his 4th drive and as long as it is detected as
/dev/sdg then the linux assign it: hd6 . :)

http://forums.hardwareguys.com/ikonboard.cgi?act=ST;f=21;t=5731;&#top

	Probable solution:
	=====================
	If the answer for the first question is that NO here there is my
solution to problem.

	We should make a command that iterates all the hard disks boot devices
and looks for the uuid from the hard disks. Once it has done so it saves
the result into a variable.

	Then we can boot a kernel and pass this variable as a parametrer.

	Example:
	==========

	grub> set
	prefix=(cd)/boot/grub/
	root=(cd)
	grub> detectboot -s biosdevices
	grub> set
	root=(cd)
	biosdevices=hd0|ffkei|hd1|ereok|hd2|er455
	grub> linux /boot/knoppix-6.0-kernel root=/dev/ram grubdevices=$biosdevices
	grub> initrd /boot/knoppix-6.0-initrd
	grub> boot

	Then thanks to the "grubdevices=hd0|ffkei|hd1|ereok|hd2|er455" string
found in /proc/cmdline the knoppix boot scripts can check the uuid for
each detected hard disk and generate a valid devices.map file.

	Any comments on this?
	

	adrian15




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-15 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-15 12:46 Detection of boot devices by a linux kernel adrian15

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.