Re: Graphical Bootloader (Windows XP + Linux)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Jacky Luk wrote:
Hi,
I don't like Linux bootloader and I want to get a third party one for my PC. Free of charge would be the best. I also dislike System commander too. Thanks
Jack



Windows XP can do it. It's just a bit more painful than Linux. I have one of my PC's set up that way. I am assuming from your statement that you already have the system set up with Linux using either GRUB or LILO as boot manager. First you will need to copy the Linux boot sector into a file which will need to reside on the booting partition of your Windows setup (C:\). If you have write access to a windows partition, then open a command window in Linux and change to that partition to do the following: from the command line in Linux, type the following command:
dd if=/dev/hda of=linux.dsk bs=512 count=1


If you don't have write access from Linux to a Windows partition (i.e. it is ntfs), then create the file on a floppy or if you have a Linux partition using ext2 or ext3 file system, use explore2fs from http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm to copy it once you have booted into Windows.

Substitute for "/dev/hda" if your Linux is not booting from the first hard drive, and "linux.dsk" is the filename for the boot sector file. Restore your Windows boot sector. A way do do this is by booting off of a Win9x boot floppy and at the command prompt type: fdisk /mbr to restore the master boot record.

Then boot into Windows XP. Once you have logged into Windows XP you need to edit the file "boot.ini" as follows: At the command prompt change to the root of c: (cd c:\ ENTER) type "attrib -h -r -s boot.ini" without the quotes. Then edit boot.ini in your favorite text editor (such as notepad) to add the following line at the end of the file: C:\linux.dsk="Linux" Make sure the first line in the file has a timeout long enough for you to select from the menu - Mine is set to 30 seconds "timeout=30".
_Make_sure_you_don't_save_this_file_as_a_binary_using_Word!!!!


After saving the file, type "attrib +h +r +s boot.ini" to restore the file's attributes. Now you are done, and the next time you boot you will have a text-based menu to choose either Windows or Linux.

As you can see, this is somewhat painful. If you have access to the NT4 toolkit, you can use "DSKPROBE.EXE" to copy the Linux boot sector from within Windows. Either that program or a similar utility is extremely handy to have on hand since you will need to re-copy the Linux boot sector every time you upgrade the kernel.
.




Relevant Pages

  • Re: OT: who said on this group "try Linux" a while back?
    ... took an old 120gig drive and put latest release of Ubuntu on it. ... linux will *never* be anything other than a tech nerd curiosity. ... setting in windows that I couldnt do with a few mouse clicks. ... terminal, paste in this command, job done" doesn't matter which DE you are ...
    (uk.legal)
  • Re: dpreview
    ... etc.) using the windows GUI? ... *Everything* can be done via command line. ... why would I bother with a text Linux command. ... stronger USM than you would, blend with the opacity of the layer. ...
    (rec.photo.digital.slr-systems)
  • Re: Lisp/Unix impedance [a programming challenge]
    ... >> You can't pipe a command into xterm. ... You can't pipe a Web ... desktop on Red Hat Linux almost 10 years ago. ... developed a working style whih really suited the Windows ...
    (comp.lang.lisp)
  • Re: Future of IT in Lebanon
    ... working knowledge of Indian programmers DNA, nor of their intuitive Java ... > So Longhorn is not an experiment and Linux is an experiment? ... another chapter in the Windows story, and the Microsoft marketing machine is ... > application opens, Check the about, it says Microsoft Visual Basic 6.3. ...
    (soc.culture.lebanon)
  • Re: PcLinux
    ... I never said Windows was more capable, I pointed out that it is just as ... I'm not bashing Linux ... It has been with unix since at least v7 unix. ... And the reason for the short command names ...
    (rec.crafts.metalworking)