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
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
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.
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. And typically the boot process starts
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
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
You are correct, this is a custom built Linux kernel. In fact, I am
trying to install the custom Linux kernel from an init/install script
running from initramfs.
On Fri, 2007-06-22 at 12:45 -0400, Gregg C Levine wrote:
Hello!
Ideally we'd need to know which distribution you chose for your
: 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
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