From: Rene Herman <rene.herman@keyaccess.nl>
To: MrUmunhum@popdial.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Which device did I boot from?
Date: Fri, 14 Apr 2006 23:52:17 +0200 [thread overview]
Message-ID: <44401991.70100@keyaccess.nl> (raw)
In-Reply-To: <44401071.5080700@popdial.com>
William Estrada wrote:
> Is there a way to determine which device I have booted from? For
> example, say I booted from a USB device, can I tell which one? I did
> not find anything in /proc FS other than the cmdline options.
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:
/sys/firmware/edd/
`-- int13_dev80
|-- extensions
|-- info_flags
|-- legacy_max_cylinder
|-- legacy_max_head
|-- legacy_sectors_per_track
|-- mbr_signature
|-- raw_data
|-- sectors
`-- version
I do not appear to have enough information there to be able to translate
back to the linux device but drivers/firmware/edd.c seems to imply there
might be for others. As far as I'm aware, it's the best that's available
at least.
Rene.
next prev parent reply other threads:[~2006-04-14 21:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-14 21:13 Which device did I boot from? William Estrada
2006-04-14 21:52 ` Rene Herman [this message]
2006-04-15 4:25 ` Matt Domsch
2006-04-16 17:49 ` Arjan van de Ven
-- strict thread matches above, loose matches on Subject: below --
2006-04-15 6:59 Andrey Borzenkov
2006-04-15 9:43 ` Rene Herman
2006-04-15 10:30 ` Andrey Borzenkov
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=44401991.70100@keyaccess.nl \
--to=rene.herman@keyaccess.nl \
--cc=MrUmunhum@popdial.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox