LinuxQuestions.org
Review your favorite Linux distribution.
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 11-08-2006, 02:57 PM   #1
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
details of grub "map" function


This is admittedly a bit of esoterica.....

As we know, the map command is required when a Windows install is anywhere except the first drive. The typical explanatory statement is the "Windows wants to be on the first drive."

Trying to research this leads me to conclude that the map instructions cause parameters to be passed to NTLDR when grub does the handoff with "chainloader". Further speculation says that--somewhere in NTLDR someone hard-coded a drive reference--or did some similarly sloppy programming.* **

Can anyone confirm or further explain what is going on?



* Who in the computer world would DO such a thing?...

**Long ago, I found something like this in an application running on a 128K Mac with the hot new "HyperDrive" (All 10 MEGAbytes of it!!) I offered the solution to the vendor and requested compensation. They refused and we both went on with our lives.
 
Old 11-10-2006, 12:07 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
AFAIK the map command is simply a way of swapping master/slave drive configurations without opening the case. I believe it simply fools the BIOS in some way. Perhaps the 'info grub' section on map may give a better explanation...
 
Old 11-10-2006, 08:46 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Because it is typically only used when chainloading to boot Windows, it must have something to with how NTLDR calls the harddrive. So I infer that GRUB map does one of two things:
--Modifies BIOS settings as you said
--Passes parameters to NTLDR

If it modifying BIOS settings--then how? I did find something on where the BIOS stores key parameters in memory, but nothing relevant popped out at me.
 
  


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
Replacing "function(x)" with "x" using sed/awk/smth Griffon26 Linux - General 3 11-22-2006 10:47 AM
SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db? singying304 Linux - Networking 4 02-28-2005 06:49 AM
When "function pointer" meets "template"... I can't get rid of this compiling er cyu021 Linux - Software 3 12-17-2004 07:52 PM
"Function not implemented" error in call to "sem_open()" Krishnendu8 Linux - Newbie 1 06-07-2003 02:52 AM
"Function not imlemented" error in call to "sem_open()" Krishnendu8 Linux - Networking 0 06-07-2003 02:19 AM

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

All times are GMT -5. The time now is 02:39 AM.

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
Open Source Consulting | Domain Registration