From: Ray Morris <support@bettercgi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Determine boot disk device name...
Date: Tue, 26 Oct 2010 13:55:50 -0500 [thread overview]
Message-ID: <1288119350.22010.8@raydesk1.bettercgi.com> (raw)
In-Reply-To: <20101026184139.GA32464@us.ibm.com> (from malahal@us.ibm.com on Tue Oct 26 13:41:39 2010)
Lacking any better answers so far, you can:
Look for grub.conf / lilo
check each device for a valid boot block (begins with EB 48 90 on x64)
Restate the question to specify what you actually want to accomplish.
As an example of the last option, someone might try to figure
out which disk was booted from in order see which bootloader is there,
and that information will be used to do some other task, call it "task
C".
It may be possible to figure out which bootloader it is without knowing
which device was booted from, and it may be possible to do "task C"
without either of the previously discussed steps.
--
Ray Morris
support@bettercgi.com
Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/
Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/
Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php
On 10/26/2010 01:41:39 PM, Malahal Naineni wrote:
> Alexander Skwar [alexanders.mailinglists+nospam@gmail.com] wrote:
> > Hi!
> > 2010/10/25 Malahal Naineni <[1]malahal@us.ibm.com>
> >
> > Alexander Skwar [[2]alexanders.mailinglists+nospam@gmail.com]
> wrote:
> > > I also wanted to suggest this, but…
> > >
> > > benutzer@horst:~$ cat /proc/cmdline
> > > root=/dev/xvda1 ro
> >
> > I got confused with boot and root! Thanks for correction.
> Usually boot
> > disk is mounted at /boot. Your boot disk could be same as root
> disk (in
> > this case there would not be anything mounted at /boot but
> just a
> > directory).
> >
> > Well, but even the location of the /boot directory/partition
> doesn't
> > necessarily tell, from where someone booted - suppose, you've got
> > a boot disk /dev/sda. On /dev/sda, there's grub. Grub's setup so,
> > that it boots a system/kernel, which is on /dev/sdb. The system
> > is "self contained" on /dev/sdb.
> >
> > In such a case, the system would've been booted from /dev/sda,
> > but there's no way to tell that, once the "/dev/sdb system" has
> > been started - or is there?
>
> Once loader's job is done, it is not needed and I don't think there
> is a
> way to find out your boot disk in all __situations__ as I said before.
> In fact, you can use a USB disk as your boot disk and remove it after
> boot.
>
> Thanks, Malahal.
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
next prev parent reply other threads:[~2010-10-26 18:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-24 2:58 [linux-lvm] Determine boot disk device name Jon Price
2010-10-25 18:11 ` Malahal Naineni
2010-10-25 19:21 ` Alexander Skwar
2010-10-25 21:28 ` Malahal Naineni
2010-10-26 8:29 ` Alexander Skwar
2010-10-26 18:41 ` Malahal Naineni
2010-10-26 18:55 ` Ray Morris [this message]
2010-10-25 19:16 ` Stephane Chazelas
2010-12-02 3:12 ` Stuart D. Gathman
2010-10-27 5:52 ` Luca Berra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1288119350.22010.8@raydesk1.bettercgi.com \
--to=support@bettercgi.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.