Re: map command for grub2 draft

2007-06-16 Thread adrian15
Here I am again with another question... How do I check that a given string: (hd0), (hd1,0), (hd1) is an existent drive? I supposed that I had to use grub_disk_open because I did not want to use grub_device_open can open (hd1,0) and (hd1,0) is not a drive but a partition.

Re: map command for grub2 draft

2007-06-15 Thread Bean
On Fri, Jun 15, 2007 at 08:56:00PM +0200, Marco Gerards wrote: > Bean <[EMAIL PROTECTED]> writes: > > > On Fri, Jun 15, 2007 at 08:22:16PM +0200, Marco Gerards wrote: > >> adrian15 <[EMAIL PROTECTED]> writes: > >> > >> > adrian15 escribió: > >> >> 1st) Where to save an array? > >> >>

Re: map command for grub2 draft

2007-06-15 Thread Marco Gerards
Bean <[EMAIL PROTECTED]> writes: > On Fri, Jun 15, 2007 at 08:22:16PM +0200, Marco Gerards wrote: >> adrian15 <[EMAIL PROTECTED]> writes: >> >> > adrian15 escribió: >> >> 1st) Where to save an array? >> >> = >> >> >> >> If I mimic the grub legacy map command I need

Re: map command for grub2 draft

2007-06-15 Thread Bean
On Fri, Jun 15, 2007 at 08:22:16PM +0200, Marco Gerards wrote: > adrian15 <[EMAIL PROTECTED]> writes: > > > adrian15 escribió: > >> 1st) Where to save an array? > >> = > >> > >> If I mimic the grub legacy map command I need to save an array with the > >> map definit

Re: map command for grub2 draft

2007-06-15 Thread Marco Gerards
adrian15 <[EMAIL PROTECTED]> writes: > adrian15 escribió: >> 1st) Where to save an array? >> = >> >> If I mimic the grub legacy map command I need to save an array with the >> map definitions. >> >> static unsigned short bios_drive_map[DRIVE_MAP_SIZE + 1]; >>

Re: map command for grub2 draft

2007-06-11 Thread adrian15
adrian15 escribió: 1st) Where to save an array? = If I mimic the grub legacy map command I need to save an array with the map definitions. static unsigned short bios_drive_map[DRIVE_MAP_SIZE + 1]; So that each time I call something like: map (hd

map command for grub2 draft

2007-06-07 Thread adrian15
I want to implement the map command for grub2 as long as it is an interesting thing for stupid windows oses and because it's the clue for making an "usbshift" equivalent command (See Super Grub Disk usbshift command for more details). 1st) Where to save an array?