Jump to content











Photo
- - - - -

what does map command with three parameters?

map

  • Please log in to reply
2 replies to this topic

#1 roklebor

roklebor
  • Members
  • 3 posts
  •  
    Czech_ Republic

Posted 09 January 2013 - 06:04 PM

Here http://www.msfn.org/...0-and-grub4dos/ I have found an example of grub4dos config file with three parameters to map command. Here is the whole example:

 

title Microsoft MS-DOS 6.22 (64 MB RAM disk)
find --set-root /msdos.img
map --ram-drive=0x9f
map --rd-base=0x5000000
map --rd-size=0x100000
map (hd0) (hd1) (rd)
map (rd) (hd1) (hd0)
map --mem --disable-lba-mode --heads=4 --sectors-per-track=35 /msdos.img (hd0)
map --floppies=1
map --a20-keep-on=0
map --hook
chainloader --disable-a20 (hd0)+1
rootnoverify (hd0)
boot

Well, what does it mean if you specify three parameters for map command? Specifically these:

map (hd0) (hd1) (rd)
map (rd) (hd1) (hd0)

R.



#2 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 09 January 2013 - 08:10 PM

Well, what does it mean if you specify three parameters for map command? Specifically these:
map (hd0) (hd1) (rd)
map (rd) (hd1) (hd0)

In general, for any command in any realm of computing (not just GRUB4DOS), the number of parameters doesn't matter as much as the command invocation syntax.

 

The command help map shows some of the syntax for the 'map' command.  These two example invocations you've typed are not valid, as they do not match the syntax.



#3 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13749 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 13 January 2013 - 05:33 PM

Here http://www.msfn.org/...0-and-grub4dos/ I have found an example of grub4dos config file with three parameters to map command. Here is the whole example:

And right after it it is explained in a lengthy manner how those commands are not documented and DO NOT do anything meaningful.

 

Try:

 

 

 

map (hd0) (hd1) (rd)
map (rd) (hd1) (hd0)

 

then:

 

 

 

map (hd0) (hd1)
map (rd) (hd1)

 

and then:

 

 

 

map (hd0) (hd1) MickeyMouse
map (rd) (hd1) Goofy

They all three have the SAME effect.

 

:cheers:

Wonko







Also tagged with one or more of these keywords: map

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users