On Sun, 3 Dec 2006, Ira Abramov wrote:
I'm booting a PXE image on a node that I want to back up with partimage.
I have to detect the disk it uses for it's root. right now I'm guessing
it with the result of this:
sfdisk -d /dev/sd? /dev/hd? /dev/cciss/???? 2>/dev/null | awk 'NR==1 {print
$(NF)}'
is there a more correct or exact way to deduce this by asking the kernel
what it would boot if PXE was not active?
There are binary ways (e.g. using dd and od together from a script) or
by hacking the tool that is used to set the boot disk id in the kernel
image or boot loader to recover this info.
Peter
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]