On Thu, 23 Dec 2004 16:24:07 -0500, Felix Miata
Greg Freemyer wrote:
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.
I considered submitting /proc/cmdline as an answer to the question, but rejected it. You can look at /etc/mtab to see what partition is mounted as /. But, that may or may not have anything to do with what partition was booted from. My systems boot using grub from a partition separate from /. That's where the kernel lives prior to loading. That's where OS boot starts. / is all supporting cast. -- "I am the way, and the truth, and the life. No one comes to the Father except through me." John 14:6 NIV
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://members.ij.net/mrmazda/partitioningindex.html
So, you take the question to be: "Where was the kernel/initrd read from during bootup?" I don't think that can be determined. Equally unknown would be: "Which disks MBR was used during boot?" "Which disk/partition was grub loaded from?" Anything related to Stage 1, 1.5, 2 of grub. All the above are grub specific issues, not linux. Linux is not running until grub has completed loading the kernel and initrd into RAM. Greg