PDA

View Full Version : boot from windows xp



hellospencer
07-21-2005, 02:44 PM
Hello!

I'd like to boot knoppix from the winxp command line. Is there any solution out there?

In former times (Win98 etc) there was loadlin and linld, but since winxp doesn't support the i386 real mode / EMS memory, this doesn't work.

Thanks for comments and suggestions!

oscar
07-21-2005, 07:19 PM
forget running linux from winxp virtual DOS

but there is a solution

Install win98 ( not C:\windows itself but only win98 DOS)
Then install XP above win98
Then you will have the option to boot into XP or win98 command prompt

boot.ini

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /sos /fastdetect /noexecute=optin
C:\="DOS (Windows 98 )"

Alternatively you may boot from a DOS floppy and then run loadlin.

oscar
07-21-2005, 07:28 PM
Or use boot.ini to boot linux



Boot sector transplant

The next step in the process is to save a copy of the Linux boot partition. This can be done either with dd in Linux or with the free Bootpart utility under Windows. Either program simply takes the first 512 bytes on the disk and puts them into a file. The dd command to do this is dd if=/dev/hdb1 of=bootsect.lnx size=512 count=1. Once you have this file, copy it to a diskette or some other removable media so you can then copy it to the Windows drive for NTLDR.

I happened to use Bootpart because I forgot to use dd before I booted the system back to Windows. If you use Bootpart you don't have to copy the boot sector to a diskette, as you are already in Windows. To complete the transplant, place the file you created with dd or Bootpart on the Windows drive as C:\bootsect.lnx.

Now it's time to tell Windows about Linux. Again, there are two ways to go about this. If you are doing everything manually, fire up a text editor in Windows and edit the file c:\boot.ini. Add the line c:\bootsect.lnx="Linux" to the end of the file.

The Bootpart way to do this is simpler: run Bootpart with the command bootpart Linux c:\bootsect.lnx "Linux". Bootpart will take care of adding the proper entry to boot.ini for you


http://enterprise.linux.com/enterprise/05/02/16/1919205.shtml?tid=129&tid=49