Skip to contentSkip to conversation

device.map

DISCUSSION Manoel Rebelo Abranches 3 participants 5 messages Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

Can someone show me where grub2 uses device.map? I'm having a hard time finding it in source.

Thanks.

Signature · 4 lines
Best Regards,

Manoel Abranches <[email protected]>
IBM Linux Technology Center Brazil
#1 lore raw

----- Original Message ----

Quoted 5 lines

From: Manoel Rebelo Abranches <[email protected]>
To: The development of GRUB 2 <[email protected]>
Sent: Tuesday, 2 December, 2008 9:39:20 PM
Subject: device.map

Quoted 16 lines

Can someone show me where grub2 uses device.map? I'm having a hard time finding it in source.

Thanks.

Signature · 11 lines
Best Regards,

Manoel Abranches 
IBM Linux Technology Center Brazil



_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Please have a look at the grub-install script or grub-mkdevice map scripts present in /usr/local/sbin/grub- * .

To get this you might have to do grub-install "boot disk"

if ide drives , then boot disk = /dev/hda  (or) hdb .....based on which ide hard drive if sata drives use sda, sdb ...similarly....

Viswesh

Did you know? You can CHAT without downloading messenger. Go to http://in.webmessenger.yahoo.com/

#2 lore raw
In reply to Manoel Rebelo Abranches
Quoted 2 lines · Manoel Rebelo Abranches

Can someone show me where grub2 uses device.map? I'm having a hard time finding it in source.

include/grub/util/misc.h:

#define DEFAULT_DEVICE_MAP DEFAULT_DIRECTORY "/device.map"

There are several occurrences of DEFAULT_DEVICE_MAP in the code.

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw

I had already seen that. Sorry I didn't explain myself clearly. In utils device.map is used because are they which create device.map (grub-mkdevicemap).
But is device.map referenced in grub boot process?
How grub uses it in boot and where is it utilized outside utils?

Quoted 10 lines · Pavel Roskin
Quoted 2 lines · Manoel Rebelo Abranches

Can someone show me where grub2 uses device.map? I'm having a hard time finding it in source.

include/grub/util/misc.h:

#define DEFAULT_DEVICE_MAP DEFAULT_DIRECTORY "/device.map"

There are several occurrences of DEFAULT_DEVICE_MAP in the code.

Signature · 4 lines
Best Regards,

Manoel Abranches <[email protected]>
IBM Linux Technology Center Brazil
#4 lore raw
Quoted 5 lines · Manoel Rebelo Abranches

I had already seen that. Sorry I didn't explain myself clearly. In utils device.map is used because are they which create device.map (grub-mkdevicemap).
But is device.map referenced in grub boot process?
How grub uses it in boot and where is it utilized outside utils?

I don't think device.map is used in the boot process.

Signature · 2 lines
Regards,
Pavel Roskin