LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-11-2009, 12:12 PM   #1
whho
Member
 
Registered: Feb 2009
Posts: 38

Rep: Reputation: 16
How does Linux override BIOS settings


Hello,

In the process of configuring of my server, I come to a question: How does Linux override BIOS settings?

For example, if I disable a HD in BIOS, windows will not see it. It just disappears. However, Linux will see them regardless of how many drives are disabled in BIOS. Does windows depend on certain BIOS api, while Linux doesn't depend on it? Does Linux kernel overwrite the loaded BIOS programs/data, or Linux just ignore them? How does it all work?

Thanks!

whho
 
Old 07-11-2009, 03:04 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,716

Rep: Reputation: 248Reputation: 248Reputation: 248
Once the linux kernel loads, linux kisses the bios good bye. All hardware detection is then done through the linux kernel. The only thing the bios does for linux is identify the boot device and load the kernel via the bootloader. Linux doesn't overwrite anything in the bios so much as completely ignore it once the kernel loads.

In windows, hardware detection is much more tightly bound to the bios. For example, older bioses had limitations on the maximum size of the hard drives it would recognize. These over sized drives would be undetected by the bios and windows but be plainly visible in linux if you had linux on another bootable drive within the size limits of the bios. It's more a matter of the history of the PC than anything else. The PC bios was designed to work with the old DOS based windows and the quirks of the windows kernel. For the development of the linux kernel, you didn't want or need to have hardware detection tied to the bios. Once the kernel loads, linux accesses the hardware directly.
 
Old 07-11-2009, 11:08 PM   #3
whho
Member
 
Registered: Feb 2009
Posts: 38

Original Poster
Rep: Reputation: 16
Hi Kilgo,

Thanks for your explanation! I really like the history bit!

Do you have any information or links explaining in more detail what address bios is loaded into and how a boot loader access the information in the bios?

Does a boot loader call a function or access a certain register or read a certain block of memory or what?

Thanks again! Any idea is welcome!

whho
 
Old 07-12-2009, 12:19 AM   #4
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 818

Rep: Reputation: 255Reputation: 255Reputation: 255
It's basically a choice for an operating system to pay attention to the configuration information kept by the ACPI (Advanced Configuration and Power Interface). The BIOS creates a database of the detected hardware, disks, etc. It can also configure some devices based on the information the hardware provides as part of Plug and Play.

Newer versions of Windows require an ACPI BIOS and will not work without it unless you install a special HAL (Hardware Abstraction Layer).

Linux does not require ACPI although you can load modules that support the power management features of ACPI and hot plugging.

ACPI provides assistance for power management. The BIOS still has to be involved in placing hardware in low power modes so Linux does use the BIOS ACPI interface. On laptops it may be necessary to load special ACPI modules for Linux to support all the power management features provided by the BIOS.
 
Old 07-12-2009, 02:03 AM   #5
whho
Member
 
Registered: Feb 2009
Posts: 38

Original Poster
Rep: Reputation: 16
Hi Erik,

Really thank you for your detailed explanation!

It helps and hopefully it is helpful to someone too!

whho
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing BIOS settings from within Linux dazdaz Linux - Software 16 11-03-2011 04:45 PM
how to alter bios settings in linux vinaytp Linux - Newbie 3 07-06-2009 12:58 PM
Override system DNS settings uppercaise Mandriva 3 04-27-2009 01:48 AM
How to change the BIOS settings in linux shvnsen Linux - Newbie 5 10-20-2008 02:01 PM
Need to alter bios settings from Linux pingu Linux - Hardware 10 03-17-2007 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration