[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Which device did I boot from?
From: |
Felix Miata |
Subject: |
Re: Which device did I boot from? |
Date: |
Fri, 22 Jun 2007 13:09:54 -0400 |
User-agent: |
Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.1.4) Gecko/20070530 eSeaMonkey/1.1.2 |
On 2007/06/22 05:41 (GMT-0500) Dallas Clement apparently typed:
> Can anyone tell me how to determine which device Linux booted from. I
> am using GRUB to boot Linux. My menu.lst config is this:
> title GNU/Linux, kernel 2.6.21.1
> root (hd0,0)
> kernel /boot/kernels/bzImage
> Once booted from Linux, I would like to be able to tell which Linux
> device, i.e. /dev/hdx or /dev/sdx corresponds to hd0.
> Is there a way to determine this?
Interesting. I'd like to know if this is actually possible too. Maybe what you
actually need would come from:
cat /boot/grub/device.map
Related:
cat /etc/fstab | grep /boot ; nothing if no separate /boot partition
mount | grep " / "
cat /proc/cmdline
--
"Respect everyone." I Peter 2:17 NIV
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://mrmazda.no-ip.com/