Re: Which device did I boot from?



-----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-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: HP not booting correctly
    ... over and over: Push the button on the box to start - no HP splash screen- shows black screen error: "Reboot and select proper boot device or Insert boot media in selected boot device and press a key." ... The only way out is to push the button on the box to shut it off, then push it again, then I get the HP splash screen and it boots into Windows. ... I have been into the BIOS and set up the boot order to HDD, floppy, CDROM. ...
    (microsoft.public.windowsxp.hardware)
  • Re: BIOS boot device priority
    ... 1.Since the floopy drive does not work properly now, can I disable it as boot device in BIOS? ... USB stick? ... They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Linux, BSD, and Unix are fundamentally insecure.
    ... press Del and make the hard drive the only boot device. ... >> Ensure it really is (sometimes booting from USB sticks has to be ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Linux, BSD, and Unix are fundamentally insecure.
    ... press Del and make the hard drive the only boot device. ... >> Ensure it really is (sometimes booting from USB sticks has to be ...
    (comp.unix.bsd.openbsd.misc)
  • Re: P4C800-E Delux, winxp set up cant find ide drive
    ... what vide card you're using with thin mo/bo? ... Can you access freely BIOS? ... >> promise RAID socket. ... >> shows up as second boot device, ...
    (alt.comp.periphs.mainboard.asus)