[1} Gert Hulselmans wrote:> > ...Thanks. > > I still think chain.c32 should be able to do a reverse partition > lookup, to determine from which partition it was booted. This would be> useful to boot ntldr, setupldr.bin, bootmgr, grldr, ... when you want > to boot it from the same partition as from which SYSLINUX is booted, > without specifying the partition explicitly to chain.c32. > > Eventually only when a parameter is added like "bootpartition": LABEL > grub4dos > COM32 chain.c32 > APPEND bootpartition file=/grldr >Ok. How about this patch[1]? (Also attached.) The option is "fs", meaning the "current" Syslinux booted-from disk and partition (if applicable). boot: chain -? ... boot: chain fs cmldr=/cmldr ----- LABEL cmdcons COM32 chain.c32 APPEND fs cmldr=/cmldr - Shao Miller [1] http://git.etherboot.org/?p=people/sha0/syslinux.git;a=commitdiff;h=bf3b 87fac3978d82dba27319ac3650c442959168 [2] On 30 March 2010 : Miller, Shao Wrote: I've been very busy and so I apologize. Please send this request to the Syslinux mailing-list. I will try to respond. - Shao _____ From: Prof S W Damle [mailto:swdamle at bsnl.in] Sent: Monday, March 22, 2010 03:10 To: Miller, Shao Subject: Req Hello, With reference to your e-mail > Fri 12-Mar-10 12:12 AM >Sub: Re: [syslinux] Recovery console doesn't work in chain.c32 3.85or3.86-pre1 You are requested to state the step by step procedure to follow (i)How to use the patch provided, and (ii)open "Windows Recovery Console" With regards, Prof S W Damle
Good day Prof S W Damle, In regards to your requests: (i) How to use the patch provided (ii) Open "Windows Recovery Console" Please see below. (i) Using the "fs" patch for chain.c32 Please note that Gert Hulselmans and I found a problem with this patch and logical partitions. I will re-work this patch again and submit the results for Syslinux 3.87. Steps to use the patch: 1. Install 'git', 'perl', 'nasm' and any other Syslinux build dependencies 2. Working in your favourite directory, execute the following: git clone git://git.kernel.org/pub/scm/boot/syslinux/syslinux.git 3. This should result in a "syslinux" directory. 'cd syslinux' 4. You'd like to use the chain.c32 patch provided, which you can fetch git remote add shao git://git.etherboot.org/scm/people/sha0/syslinux.git git fetch shao git checkout shao/chain_fs git checkout -b chain_fs 5. Build Syslinux with 'make' 6. The patched chain.c32 will be built in com32/modules/ (ii) Using chain.c32 to run the Microsoft Windows XP/2003 Recovery Console When you install the Recovery Console, you should see the following additions to your boot drive: \CMDCONS\ \cmldr You can copy these to a FAT partition with XCOPY.EXE. C:\>xcopy /e /h cmdcons f:\cmdcons\ ... Many files copied. C:\>copy cmldr f:\ 1 file(s) copied. You can install SYSLINUX to that FAT partition. Your SYSLINUX.CFG file can include: LABEL cmdcons COM32 chain.c32 APPEND hd0 1 cmldr=cmldr The above assumes that the partition is the first primary partition on the first HDD. If it isn't adapt your "hd0 1" accordingly. Enjoy. - Shao Miller
Maybe Matching Threads
- memdisk operations FAIL to boot with Syslinux-4.02
- Windows Recovery console FAILS to boot with Syslinux-4.02
- Recovery console doesn't work in chain.c32 3.85 or 3.86-pre1
- Windows Recovery console FAILS to boot withSyslinux-4.02
- [PATCH] chain.c32: add support for booting the Recovery Console of Windows NT/2K/XP