All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@mail.ru>
To: Rene Herman <rene.herman@keyaccess.nl>
Cc: linux-kernel@vger.kernel.org, Matt_Domsch@dell.com
Subject: Re: Which device did I boot from?
Date: Sat, 15 Apr 2006 14:30:40 +0400	[thread overview]
Message-ID: <200604151430.43099.arvidjaar@mail.ru> (raw)
In-Reply-To: <4440C03F.4080709@keyaccess.nl>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 15 April 2006 13:43, Rene Herman wrote:
> Andrey Borzenkov wrote:
> >> If you choose the (experimental) CONFIG_EDD option in your kernel then,
> >> with cooperation of your BIOS, you'll have a /sys/firmware/edd with at
> >> least some info about the BIOS boot device. For me:
> >
> > I am sorry but it does not tell about boot device. It contains all hard
> > disks enumerated via EDD interface. I do not see any information
> > under /sys/firmware/edd that would have allowed to guess boot device.
>
> int13_dev80 is the bootdevice. Or that used to be the case with things
> such as booting from SCSI at least. Don't know about booting from, say,
> USB.
>

OK. In this case udev creates links based on MBR signature; it can be used to 
infer real device:

{pts/0}% LC_ALL=C ll /dev/disk/by-id
lrwxrwxrwx  1 root root  9 Apr 12 21:36 edd-int13_dev80 -> ../../hda
lrwxrwxrwx  1 root root 10 Apr 12 21:36 edd-int13_dev80-part1 -> ../../hda1
lrwxrwxrwx  1 root root 10 Apr 12 21:36 edd-int13_dev80-part2 -> ../../hda2

Not sure about USB either.

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEQMtSR6LMutpd94wRAsFkAJsFOkTxa9DWphkiZ/eomAKl6rbHMgCeIlZL
DkkNhTvgK0USRRyiMeqdtLY=
=yCYm
-----END PGP SIGNATURE-----

  reply	other threads:[~2006-04-15 10:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-15  6:59 Which device did I boot from? Andrey Borzenkov
2006-04-15  9:43 ` Rene Herman
2006-04-15 10:30   ` Andrey Borzenkov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-04-14 21:13 William Estrada
2006-04-14 21:52 ` Rene Herman
2006-04-15  4:25   ` Matt Domsch
2006-04-16 17:49 ` Arjan van de Ven

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=200604151430.43099.arvidjaar@mail.ru \
    --to=arvidjaar@mail.ru \
    --cc=Matt_Domsch@dell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rene.herman@keyaccess.nl \
    /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.