On a couple of my machines the answer is:
cat /proc/cmdline
It shows "root=/dev/hda3" etc. as part of the boot args.
PS: Thanks to Felix Miata for asking about /proc/cmdline or I would
not have known about its existence.
Greg
--
Greg Freemyer
On Thu, 23 Dec 2004 19:18:03 +0000, Vince Littler
On Thursday 23 December 2004 10:21 am, Dan Am wrote:
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
Yes, I think you are on the right lines here.
Imagine a system, not quite unlike mine, with 3 primary partitions: /dev/ sda1,2,3. Each of these is bootable and has GRUB installed, and each GRUB uses a menu on its own partition. Suppose that each GRUB menu has an entry pointing to a single kernel in /boot on a 4th partition, /dev/sda4, which is also mounted as the root partition.
Whichever you booted, there would be no fundamental difference, except possibly for some traces in the memory used by the BIOS. I think the 'active partition' as used by the boot process will be marked by the '*', as pointed out by Jonas. But if you use the partitioner to change the active partition, that could change [not sure].
This is the point where I ask 'why do you want to know?', in the hope of finding a more answerable question.
rgds
Vince
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com