Howto retrieve the bios boot device

i am trying to retrieve the bios boot device used on startup. not what the kernel reports in /proc/sys/kernel/real-root-dev but the actuall bios device. i know on boot when "int 19h" is called, DL holds this info (0x80, 0x81, etc) , but i have no idea if/were i can retrieve this easily. i can code a small asm program to read the cmos data (in 71h) but i think there might be a simpler/native way todo it. any ideas?
thanks.

tnx man.
i know its gonna be x86 only, but thats ok - as long as Arch is i686, its fine with me
i looked at the syslinux MBR sources (thats what im using on my livecd) and saw it does save DL on startup, but doesnt retrieve it to users' use. so i might make a patch to add the DL as a parameter to the command line something like "BIOSBOOTDEV=0x80". the problem is with USB - i didnt understand how it uses the MBR - some docs said it doesnt need to have MBR installed, and i got confused by that - if no MBR is installed, how can i retrieve my lovely DL ? so, im gonna leave this for now until im gonna tackle with the liveusb version, then i'll know some more...
i decided reading the cmos data from cmos area using "in 71h" is REALLY bad cause each bios stores the cmos-data in a diff format and in a diff location... i got crazy with shifting bits to get the info from AMI bios... so MBR hacking will be my best bet.

Similar Messages

  • S10-3: Change BIOS boot device sequence with + - keys does'nt work

    I want to boot my IdeaPad S10-3 from an USB HDD.
    In the default BIOS setting this is the 4th or 5th line in the boot device list.
    The help instructions in the right column of the BIOS page tell me to use the <+> and <-> keys to move an entry up or down. When I do this, the BIOS only responds with annoyed beeps.
    If the keys refer to a numeric keypad: there is none, and neither an indication how to map one onto the existing keys.
    Is this Netbook delivered with a BIOS that was designed for other PCs ?
    A workaround is to press <x> twice on a device above the desired boot device:
    The 1st press excludes the device, the 2nd press moves it to the end of the list.
    In this Forum I have found hints that "incorrect" changes of the boot device list may disable the internal harddisk, but I can't find precise definitions of "correct" changes that avoid this.
    Do I miss something or this just an improper BIOS ?

    Hi KalvinKlein,
    before I received your new Info about Fn+Insert , I had once more checked Fn-F7 : no effect in the BIOS.
    I have also tried all non-character keys plus the "Umlaute"-keys on the German keyboard with the following result:
    The key right of the "0" shifts boot device entries down in the list.
    On the German keyboard this key is labelled with " ß ? \ ".
    The next key on the right and left of the "Backward-Erase"-key, labelled with " ´ ` ",
    pressed together with the Shift-key, moves list entries up.
    Using these keys I have then set the Boot device sequence according to your suggestion :
    1: USB CDROM
    2: USB HDD
    3: HDD
    My USB-Memory stick (with BartPE installed) had been recognized as a USB HDD.
    After saving with F10 and <Return> the Netbook responded with a Beep and nothing further happened.
    I had to switch it off with a long press on the Power Button.
    Switched on again, <F2> pressed, BIOS checked,, o.k. <ESC>,
    loads Ramdisk image of BartPE from the USB-stick,
    starts BartPE with XPE.
    Checking available drives in the Windows Explorer resulted in :
    RAMDISK ( "B:" )                (used by BartPE for temporary storage)
    USB ("C:")                         (the USB-stick with the BartPE-iso file)
    "Wechseldatenträger / Removable storage device"           obviously refers to an unused USB-Port
    -volid ("X:") "CD-drive"    but actually another Ramdisk containing the expanded and running BartPE package
    The internal harddisk is not visible !
    I wonder whether this is a problem of the BIOS or whether I require special harddisk drivers (Intel Matrix Storage manager/driver or  possibly AHCP drivers) for Windows XP, because my present BartPE version is based on XP, while the Netbook came with Windows 7 Starter Edition.
    Further helpful hints would very much appreciated.
    Kind regards

  • Laptop Satellite L45-ASP4201 | Can't enter the bios and devices after enable the UEFI and Fastboot

    Some days ago i  was checking the new bios interface (UEFI) and its preety cool so i decide to try this new feature (Why?????? ). Well i enabled the UEFI mode but for a stupid reason I change the boot from NORMAL to FAST.
    Since that day i cant enter to my bios. And when i turn on the notebook i get the message:
    "Reboot and Select proper Boot device or Insert Boot Media in selected Boot Device
    and press a key."
     Now i can't solve this problem . I was searching in the forum and trying every possible solution: Boot disks, usbs, DOS, press repeatly or holding : F1 2 4 8 9 0 12, Shift, Home together with the Power button and nothing. I disconnected the battery for a reset and nothing. Cmos battery 2 and nothin. Im desperate, please somebody can help me?
    Thanks in advance.

    Press f2 to reach bios or press fn and f2 when starting
    S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****

  • Can't see second HDD in the BIOS boot sequence choice menu

    we have 2 HDDs in a X2170 x86 server
    we've installed Solaris 10 on one, and RH on the other.
    however, when accessing the BIOS, we can't select which one to boot from in the boot sequence (the "second" HDD does not appear as a choice in the boot sequence menu), and must therefore manually swap the drives into the primary drive slot to boot on our OS of choice...
    what are we doing wrong ? how come our second HDD does not appear ?

    Hi,
    Really appreciate your continued support - OK, here's detailed response/update:
    1. Both disks are the originals and I've checked both with another PC in external caddy and both seem A1.
    2. Have tried doing as you suggested with the BIOS, but no can do. The BIOS seems to be very limited - it is as follows:
    ACPI version 1.2
    Disks are listed as follows : Current State Built-in HDD1 = 2RAID-0
    Built-in HDD2 = 2RAID-0
    Create State Built-in HDD1 = 2RAID-0
    Built-in HDD2 = 2RAID-0
    It lists both disks at the end with their Toshiba Part Nrs, capacity, etc
    3. +When you install recovery image (WXP with recovery discs) both HDDs are recognized properly but after SP3 installation the second one is not visible for Windows explorer and disc management+
    +Can you confirm this?+
    Sequence of events was :
    Installed XP (checked config and both disks recognised by Windows)
    Installed SP2 (successfully)
    Tried install SP3 - was not successful and machine shut itself down.
    After unsuccessfully trying to get it back up, re-installed XP
    Checked config and now D: drive not seen by Windows
    Swapped disks over in slots to check for slot failure - C: disk worked aok in D: disk slot - but D: disk not seen in the other
    Again removed the D: disk and checked it in external caddy on other PC - no probs works aok
    And that's where I'm left.
    Seems that there's something about the current state of the D: disk drive that is preventing XP from seeing it - yet the BIOS does ......
    Is there any utility I can download that could help sort ??
    Again, many TIA
    Logis

  • Howto retrieve the servername of the current weblogic instance

    I have a cluster with 2 managed servers.
    When 1 of the managed servers is performing something, then I would like to retrieve the name of this actual server.
    How can this be done ? Or where can I find documentation about this.
    To put it in other words: I am a managed server and I am executing something. My question is: what is my name?

    I don't know if this works for managed servers, but check the weblogic.Name system property. Other than that, there's always JMX.
    Mike
    Weblogic/J2EE Security Blog: http://monduke.com

  • [SOLVED] Need help setting default boot device in bios

    I have two harddrives S0 and S1 my windows partition is on S0 and my archlinux and grub is on S1. The problem is that I can't set the default boot device to S1 only S0. I have to F8 everytime I start up. Is there a way to set S1 as my default boot device. I tried searching this on google but I couldn't find any relevant posts
    Thanks,
    Shrub
    Last edited by shrubuntu (2012-12-27 15:03:26)

    DSpider wrote:
    Hi and welcome to the forum.
    I have never heard of the term "S0" and "S1" for drives. Perhaps you mean sda and sdb.
    Go into the BIOS, choose your equivalent of "Hard disk priority", move the drive that you want to boot first above the rest of the others, and then exit by saving the settings (usually F10). That should do the trick. Alternatively, you could open up the case and move the SATA cables around, but be careful if you use "sdx" name conventions in /etc/fstab.
    Thanks for the reply
    I made up S0 and S1 for simplicity. sda and sdb makes more sense I suppose.
    My BIOS does not recognize sdb in the priority menu, I'll try moving the SATA cables.

  • Malignant secondary boot device.  When I plug in an external hard drive which has time machine in one partition and a secondary boot device in another, the secondary boot takes over and wipes existing files.  How do I turn it off but keep the time machine

    Please help new (senior) convert to Mac Pro (OS X).  Am following the 'switching to a Mac' portable genius 2nd ed, and as it advised, I bought an external hard drive (a Mac My Word) and partitioned it with one partition for a secondary boot device and another for time machine.  Book implied I needed both.  Seemed to download OK but now when i plug in the external hard-drive it wants to reboot me fresh all over again.  How do I keep the time machine partition going but have the secondary boot device only in case of emergencies?  Do I 'eject' that partition- and if so how do I do it from outside the hard drive (I am not game to reattach it currently)

    Launch the System Preferences application (under the Apple menu) and select the Startup Disk preference pane. Set your internal drive as the startup disk. Close the window.

  • Hp notebook problem model # dv9823cl the cd/dvd player is not found in bios or device manager

    If the CD/DVD player is not found in either the BIOS or Device manager is the problem in the motherboard?
    if it is besides getting an external CD/DVD player, is there any other solutions?
    Thanks

    Before giving up hope I would try hard resetting the computer. Here is how you can hard reset the laptop:
    To Perform A Hard Reset
    Shut down the computer by going to the Start menu and selecting shut down. (If you have no display, hold the power button down for 5 seconds)
    Disconnect the AC Adapter from the notebook.
    Remove the battery from the bottom of the notebook. There will be a switch/button to eject the battery.
    Wait at least 1 minute with all power sources disconnected.
    Re-insert the battery and reconnect the AC Adapter and then attempt to power on the notebook.
    Sometimes by removing all electricity from the computer and then reintroducing it, issues like this can be resolved. Give this a try and let me know if it resolves the issue or not.
    Thanks!
    Sean
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Hard drive and system recovery question - "No boot device"

    I replaced a 320Gb - 5400 rpm drive that failed with a 750Gb - 7200 rpm drive.  Using the HP System Recovery disks to reload the OS, once it goes through the restoration process the mb doesn't seem to recognize the hard drive and I get the "No Boot device" message upon rebbot. Unfortunately, the BIOS is not the best and it won't allow me to see if it actually recognizes the new hdd, which I suspect it doesn't  - even though the Recovery Manager seems to . Either that or I have a bad MB.
    Sytem information - HP G71-340US
    Processor - 2.20 GHz Intel Core2 Duo Processor T6600
    BIOS - InsydeH20 3.5
    So even though Recovery manager *appears* to be installing W7 just fine, but it's a no go when it's time to actually boot to it, what is the problem?  Is this a mb issue or did I just buy the wrong hd?

    Well, a few reboots later and it seems the issue is no longer the mb or the hd.  W7 is having a tough time though, and am now working on the second system restore, this time from the recovery partition, to try and get it to load fully.  When I reinstalled from the System Recovery DVD the second time through, I skipped installing the third (driver) disk and that appeared to help.  Just wish I could get the OS to comply. Maybe the third time will be a charm?

  • Error Message: Reboot and Select proper Boot device.

    My HP desktop computer (model p6654y) will not boot directly into Windows.
    I can ALWAYS make it boot into Windows by first pressing the F10 key to enter the BIOS. If I then exit the BIOS (without even making any changes), the computer will boot into Windows.
    If I don't first enter the BIOS, the computer will USUALLY take me to a black screen that says:
    "Reboot and Select proper Boot device. Or Insert Boot Media in selected Boot device and press a key."
    At this point it won't boot any further.
    Also, the last message the BIOS displays (before the error) is:
    "00 USB mass storage devices found and configured".
    After that, all of the lines of text on the screen move up one level and then the screen goes black and soon after I get the Proper Boot Device error.
    I do not have anything plugged into USB ports except an ordinary mouse and ordinary keyboard (both of which I changed - in case they were faulty). 
    My BIOS is set to boot from the Hard Drive first.
    I reset my CMOS.
    I do not have a CD in the CD drive.
    It used to be that this would ALWAYS happen if I (1) Turned off the Computer, (2) Unplugged it for 60 seconds, (3) Plugged it back in, and (4) Turned it on.  Now (after trying various things), it only SOMETIMES happens when I do this.
    Any ideas?

    Hello @GardenGuy1,
    I have read your post on how your desktop computer is having a difficult time booting into Windows, and I would be happy to assist you in this matter!
    To further diagnose this issue, I recommend testing the health of your system's hard drive by following the steps in this document on Testing for Hardware Failures (Windows 7). If the hard drive is found to be in good working order, I also suggest restoring your BIOS back to factory settings. This can be done by following this document on Recovering the BIOS. 
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Order of boot devices

    I have an Xserve with 3 hard-disks. The first one is the normal Boot-Device. For failsave reasons i made a copy of the OS X-Server-Installation on the Second hard-disk. And on the third i have a leo-Client-Installation.
    How can i define which device is the second and the third boot device.
    To tell the machine: If harddisk "Boot" is not available, come up with "Boot2" and not with "Leo"
    Greets from Germany
    Jan

    Isn´t there any option to do so by editing a system configuration file at the terminal ?
    The decision is made by the EFI console environment. EFI is quite unlike a BIOS, and is a full operating system in its own right. A typical EFI installation has drivers and a command shell and diagnostics and related. The decision and configuration and the boot sequencing occurs in that environment, and (beyond sniffing the individual partitions) before the partitions containing the operating system are particularly investigated.
    The EFI tools and controls that Apple supports (beyond the GUI stuff and bless) are fairly minimal, and Apple does not expose EFI to users.

  • Pavilion dv9700 not seeing optical drive as boot device

    Let me start from the beginning:
    1) user brought laptop to me, wouldn't boot.
    2) I ran hp diags on harddrive, they failed
    3) I replaced harddrive with off the shelf drive
    4) ordered recovery disk (dvd) from hp
    5) on recipt, tried to boot from recovery dvd:
                 - recieved error "missing ntldr"
                - rebooted, hit F9 to select boot device, only harddrive listed
    6) tried external optical drive, same result
    7) called hp, ordered new optical drive, same result
    Is it dead jim?

    I have the EXACT same problem with a DV6815...
    My BIOS settings are identical to the OP's...
    But when I try to select the boot device, only the HD is listed...
    I have swapped out more than a half a dozen drives (drives that I know are good) with the same result.
    On 2 of the drives, they worked (IE they were recognized and available when I hit the Select Boot Device screen) but after a reboot, they were gone again..
    I have dissassembled the laptop, cleaned the connector real good, but nothing has helped.
    I wonder if it could be a BIOS issue???
    Michale
    Additional Info:  I got kinda excited because the BIOS version I had was F.30 and I noticed there was a newer version, F.32.  Unfortunately, it did not fix the disappeared CD/DVD drive problem.. 

  • "Reboot and select a proper boot device..." error on a p6214y

    i have this problem where my computer boots and hangs at the HP blue screen mostly ... sometimes it wont and then go through to the "Reboot and select a proper boot device or insert boot media in selected boot device and press any key" message....
    and sometimes if i leave the computer alone for weeks... it will boot into windows. and immediately go into slow response. then the process repeats from atop...
    but then i connect my hard drive to another CPU, and it logs in fine ... so i know its not the HD...
    i have taken out the battery, checked the cables .... is there something we dont know about this issue???

    The Boot tab of the BIOS Setup shows the following typical items on the screen. (Your system might be different and not include all items):
    Figure 8: Example of a Boot screen
    Boot-time Diagnostic screen
    Boot Device Priority (The order for the boot process. For example, removable devices, DVD optical drive, and hard disk drive).
    I would recommend turning on the computer and immediately tapping F10. When Bios pulls up use your arrow keys to move right until you highlight the BOOT tab. Press enter. Scroll down and select boot device priority by pressing enter. Make sure the HDD is listed as the first boot device. Hope this helps!
    While I am a HP employee, I am not an expert on all our products. When I offer advice, I'm not speaking for HP.
    Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
    ***Click on “Kudos” STAR to say thanks!***

  • I'm receiving error Boot Device Not Found and Hard disk not exist when I boot up my laptop

    I'm receicing the error Boot Device Not Found when i power on my HP G60-235DX laptop.  After following HP's recommended troubleshooting steps, I receive error Hard disk not exist.  Hmmmm....that's a little concerning.  My guess is I need a new hard drive?    I have the 17 recovery disks I made when I setup this laptop, however I'm not sure if they will resolve this issue.  Any suggestions?

    One of 3 things has happened, listed from most likely to least likely
    1. Hard drive has died, replace it with one of the same size or larger, then use the HP recovery discs to re-install windows.
    2, The motherboard has serious problems. (Replace the notebook)
    3. The hard drive cable that connects it to the motherboard has somehow failed, not very likely. (replace the cable)
    Replace the hard drive with a new one and use your recovery discs to get Windows back on it.
    Here is your service manual, will show you how to replace the hard drive
    http://h10032.www1.hp.com/ctg/Manual/c02985882.pdf
    Recovery Instructions for Vista
    Recovery Instructions for Windows 7

  • Presario CQ61 - Boot Device not found, Hard dis not exist

    Hi i bought my presario CQ61-405AX 2nd hand roughly a year ago and it was almost new, my laptop was running fine, and then it froze, and so i had to turn it off, after i waited 30min for it to unfreeze, it now, when i boot it up, appears with a black screen, with the error
    "Boot Device Not Found
    Pleae install a operating system on your hard disk
    F2 system diagnostiscs" 
    I went onto hp support and followed the prompts until it did a hard disk test and the error, "Hard Disk Not Exist" appeared
    I have no idea how to fix it, i am running Windows 7 home premium, and i fear i may have to buy another hard drive
    Thank's in advance
    This question was solved.
    View Solution.

    Hi,
    The most likely explanation is that your Hard Drive has failed and will need to be replaced, however as a further test, try the following.
    1.  Create a bootable Ubuntu CD - a guide on creating an Ubuntu CD and the download can be found Here.
    2.  When created, follow the guide on the link below to Try Ubuntu.
    http://www.ubuntu.com/download/help/try-ubuntu-before-you-install
    The 'Try Ubuntu' option runs the OS from the CD without the need to install on your HDD.  If this runs Ok ( it will be slow running from a CD ), this would tend to confirm that the problem is with the HDD.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for

  • Can you use a different web page generator with iweb?

    I have created website in Sandvox & want to know if there is a way to import the htm files into iweb so I can publish the website with .Mac

  • Help! I need someone smart!

    My iPod has been completely cleared of all its music. I plugged it in and all of the songs erased. I will plug it in but a message comes up saying 'iTunes cannot update this iPod because it does not recognize the folder 'COMPAQ_OWNE' . How do I fix t

  • File adapter doubt

    i have doubt regarding file adapter can a file adapter work dynamically? for example: we are configuring one file name and a path. whether multiple files can be taken from the path dynamically when using file adapter. Message was edited by:         a

  • Help with FMLE Settings for Sports Broadcast

    Hello, I am in need of some help tweaking my settings in FMLE.  I put on various sports broadcasts, but one of my clients has limited bandwidth (avg ~2.5-3mbps upload). I'd like to keep the output pixel size at 640x360 so that it takes up our entire

  • Microphone level too low

    It seems like the microphone input level on my wife's iPhone 4 is too low. People have trouble hearing her during her calls. Using the headset, speakerphone, or Bluetooth doesn't increase the volume, nor does covering up the noise-cancelling input on