Re: Which device did I boot from?

2007-06-25 Thread adrian15
Dallas Clement escribió: In fact I am trying to boot from a USB drive which would be /dev/sdx. The other problem I have is that I can't just do a search for a particular file like devices.map on a mounted partition. The problem that you have can be easily solved with a new super grub

Re: Which device did I boot from?

2007-06-23 Thread Gregg Levine
On 6/23/07, Dallas Clement [EMAIL PROTECTED] wrote: On Fri, 2007-06-22 at 05:41 -0500, Dallas Clement wrote: 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

Which device did I boot from?

2007-06-22 Thread Dallas Clement
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

Re: Which device did I boot from?

2007-06-22 Thread Benoit Donnette
OK, what about something like : cat /proc/mounts which will tell you which devices are mounted ? unless you have a /boot artition that you won't mount (possible), but in this case the kernel would lie in /kernels/bzImage. However you need to know that you actually booted from (hd0,0). Benoit.

RE: Which device did I boot from?

2007-06-22 Thread Gregg C Levine
, June 22, 2007 6:41 AM To: bug-grub@gnu.org Subject: Which device did I boot from? 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

RE: Which device did I boot from?

2007-06-22 Thread Brown, Beverly
PM To: [EMAIL PROTECTED]; bug-grub@gnu.org Subject: RE: Which device did I boot from? Hello! Ideally we'd need to know which distribution you chose for your work. But baring those details I can tell you that the root volume that this started from is indeed /dev/ha with the appropriate partitions

Re: Which device did I boot from?

2007-06-22 Thread Dallas Clement
Unfortunately, I'm trying to determine the boot device from within initramfs. None of the devices have been mounted yet. I'm wanting to do this from an init/installation script that will install Linux on any device other than the boot device. Obviously, I don't want to install over the top of

RE: Which device did I boot from?

2007-06-22 Thread Dallas Clement
Subject: Which device did I boot from? 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

RE: Which device did I boot from?

2007-06-22 Thread Dallas Clement
: Which device did I boot from? Hello! Ideally we'd need to know which distribution you chose for your work. But baring those details I can tell you that the root volume that this started from is indeed /dev/ha with the appropriate partitions starting at /dev/hda1 all the way to /dev/hda4

Re: Which device did I boot from?

2007-06-22 Thread Dallas Clement
Is it possible to use grub-probe or grub-mkdevicemap to determine the boot drive? I can run these from initramfs and hopefully it will produce a mapping of (hd0,0) to /dev/hdx or /dev/sdx. Is this an accurate way to do it? Thanks, Dallas On Fri, 2007-06-22 at 19:15 +0200, Benoit Donnette