On Saturday 01 October 2005 18:37, houghi wrote:
> On Sat, Oct 01, 2005 at 06:17:52PM +0200, Anders Johansson wrote:
> > I don't think it would be too much difficulty ripping out the device
> > identification bits of grub to a stand-alone utility. But isn't
> > "cat /boot/grub/device.map" sufficient?
>
> That's already a part of it. Now I also need to know what the partition
> is.

The way grub-install does it is

df `dirname filename| sed -n 's%.*\(/dev/[^   ]*\).*%\1%p'

I'm looking at the BIOS stuff in grub now to see if I can make a stand-alone 
utility out of it


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to