Jump to content











Photo
- - - - -

grub4dos on a usb key - root command problem


  • Please log in to reply
2 replies to this topic

#1 cyberdmn

cyberdmn
  • Members
  • 2 posts

Posted 08 November 2007 - 11:57 AM

Hi there!

Today I've been trying to install grub4dos-0.4.3 on my usb key.
It's almost done, except for one problem about root command.

I read that setting a root directory is possible by using root command.
It's like, if I use a command such as 'root /DIR', a root directory will be /DIR.

I made a folder named 'DOS', then put IO.SYS and COMMAND.COM in it,
then wrote the entry for DOS like below:
title MS-DOS

root /DOS

chainloader /IO.SYS
When I tried to boot using the usb key, i saw a message looking for a command interpreter,
which means the file COMMAND.COM.
For a test, I moved those two files into the root directory and removed the root command,
then I could boot without any problems this time.

Is there any ways to get this work?

#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 08 November 2007 - 09:28 PM

No, sorry but I think you got this partially wrong.

The "root" command actually makes a drive or partition the "root".

Valid commands are (examples):
root (hd0) ->sets the whole first HD as root
root (hd0,1) -> sets second partition on first HD as root
root (cd) -> sets a CD drive (autodetected by bios) as root
root (cd0) -> sets first CD drive (as mapped by grub4dos with cdrom --init) as root
and so on.

A nice added feature of grub4dos is the "find" command (examples):
find --set-root /io.sys -> sets as root the first drive or drive partition found to contain file io.sys
find --ignore-floppies --set-root /io.sys ->sets root as above, but without checking floppies

Anyway, MS-DOS system files IO.SYS and MSDOS.SYS must reside on the root directory of a drive or drive partition (whilst COMMAND.COM can be in a sub-directory) see this:
http://www.911cd.net...showtopic=18216

jaclaz

#3 cyberdmn

cyberdmn
  • Members
  • 2 posts

Posted 09 November 2007 - 01:45 AM

Thanks jaclaz for your answer.

I got something wrong with this root command.
I saw readme file inside grub4dos package, and it said :
Use the `root' or `rootnoverify' command to specify the `working directory'.

For example:

	root (hd0,0)/boot/grub
I got this as a system will recognize root directory as the one I specified with root command.
I misunderstood 'working directory' as 'root directory' because it's root command.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users