On Saturday 01 October 2005 19:45, houghi wrote:
> On Sat, Oct 01, 2005 at 07:17:48PM +0200, Anders Johansson wrote:
> > 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
>
> I think I am going in circles here. The above (if you put a backtick in
> front of |, making it filename`| )

Well, I expressed myself badly. dirname is a command, but filename was meant 
to be replaced with whatever file you wanted to know the location of

> tells me /dev/hdf3. 
> That still does not show me hd3,2

No, but combine that with the device map and you're set

>
> Would be handy if all could be done with one command

I'm working on it


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

Reply via email to