On Sat, Oct 01, 2005 at 07:51:19PM +0200, Anders Johansson wrote: > 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
OK. > > tells me /dev/hdf3. > > That still does not show me hd3,2 > > No, but combine that with the device map and you're set Indeed. > > > > > Would be handy if all could be done with one command > > I'm working on it I am working on some butt ugly bash script myself. Still a pity that there is not a build in command to do it with. houghi -- Quote correct (NL) http://www.briachons.org/art/quote/ Zitiere richtig (DE) http://www.afaik.de/usenet/faq/zitieren Quote correctly (EN) http://www.netmeister.org/news/learn2quote.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
