<html xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"><head><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body vlink="purple" link="blue" lang="EN-US" bgcolor="white"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D">Hi Shao,<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">Thanks for your reply.<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">I forgot to mention that I meant “drive 0” in the context of Windows disk drive numbering. My goal is to boot a system from an iscsi target without disrupting the disk drive numbers of the internal hard drives. For example, if I have one internal hard drive, I want to see it detected as Disk 0 whether I boot from it or from the iscsi target. If I boot from the iSCSI target, I want to see the iscsi target as drive 1, not 0. Currently, the iSCSI drive would become Disk 0 and push the internal drive to Disk 1.<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">I think the PnP enumeration process in Windows has some relationship with the BIOS drive numbering. Could you please point me to some in-depth documentation regarding the BIOS drive numbering and how int13 is used?<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">Thanks again,<o:p></o:p></span></p><div><p class="MsoNormal"><b><span style="color:#1F497D">Binh Kien Thai</span></b><span style="color:#1F497D"><br><br></span><span style="font-size:9.0pt;color:#1F497D"><o:p></o:p></span></p></div><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Shao Miller [mailto:Shao.Miller@yrdsb.edu.on.ca] <br><b>Sent:</b> Tuesday, January 18, 2011 11:19 AM<br><b>To:</b> Binh Thai<br><b>Cc:</b> gpxe@etherboot.org<br><b>Subject:</b> [SPAM] - Re: [gPXE] Change drive number of the iscsi boot drive? - Email found in subject<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><tt><span style="font-size:10.0pt">On 1/18/2011 10:42, Binh Thai wrote:</span></tt> <o:p></o:p></p><p class="MsoNormal"><tt><span style="font-size:10.0pt">Hello Everyone,</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br></span><tt><span style="font-size:10.0pt">Hello.</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br><br><br><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br></span><tt><span style="font-size:10.0pt">It seems by default the iscsi boot drive initiated from gPXE has the drive number 0.</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br></span><tt><span style="font-size:10.0pt">I think that you meant to type "BIOS drive 0x80" rather than "drive number 0". BIOS drive 0x00 would be the first floppy disk drive.</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br><br><br><o:p></o:p></span></p><p class="MsoNormal"><tt><span style="font-size:10.0pt">Is there any way to change this drive number to an arbitrary number? The reason is I want to keep the drive order and numbers of the internal hard drives intact.</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br></span><tt><span style="font-size:10.0pt">If you wish to change the drive number away from 0x80, what are you hoping to do with it? Boot it? I am under the impression that a lot of HDD boot-loader code expects to be run from drive 0x80.</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br><br></span><tt><span style="font-size:10.0pt">gPXE assigns a "natural" drive number to the SAN; the "natural" number would be the next number available. If you had 0x80 and 0x81 already, then it would get 0x82. But then gPXE swaps that with the real 0x80 just for booting purposes, since 0x80 is traditionally the booting HDD. See gpxe/src/arch/i386/interface/pcbios/int13.c for some relevant source code.</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br><br></span><tt><span style="font-size:10.0pt">- Shao Miller</span></tt><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p></div></body></html>