On Thu, 23 Dec 2004 11:21:48 +0100, Dan Am
Hi, Am Donnerstag, 23. Dezember 2004 10:48 schrieb Jonas Helgi Palsson:
There you see that it is /dev/sda1 that is marked as bootable. ...but then, that is not a surefire way, since there might be none (my system) or more than one (eg. in case of raid boot) marked boot"able" . I can think of some educated guesses, and yours is not too bad, but does the system not know where it came from ? Thinking about it, maybe it _can't_ know that, only if the bootloader passed something to the kernel. Hmmmmm....is my logic right here ?
Regards Dan
The kernel definately knows what you are booting off of. My proof is that if you dd copy a /dev/sda to /dev/hda, then remove /dev/sda and try to boot from /dev/hda?, the kernel will be launched, but booting fails as soon as the kernel tries to access /dev/sda?. The fix to that problem is to use the kernel parameter "root=/dev/hda?" to tell is were it is booting from. I have had to do this via the grub boot editor in the past. I don't know how to access that info, but it definately exists. Greg -- Greg Freemyer