Posts tagged windows
Starting Linux through Windows XP boot list (boot.ini)
Jul 22nd
Last week I had to recover the grub in a notebook after a Windows reinstall. The easiest way would be running an Ubuntu live cd and run the grub program. But I hadn’t a cd and tried with a bootable usb stick and… nothing. That notebook doesn’t boot by usb. I tried also with a sd card, but had the same problem…
The solution: Burn a CD? No. Let’s do something more criative…
Well, we know that Windows XP also has his boot list (boot.ini), so why not to put Linux on the list?
Unfortunately, it’s not so easy as edit the grub menu, but it’s still easy.
First, you have to create an image from the master sector of a HD which has the grub installed (I used my notebook). Open terminal and type:
sudo dd if=/dev/sda1 of=bootsect.lnx bs=512 count=1
Maybe you have to change /dev/sda1 for other device, depending on your HD.
This command creates the bootsect.lnx file. Put it on c:\ on Windows. After that we will edit the boot.ini on Windows.
There’s two ways to do this: you can edit the c:\boot.ini directly (it may be hidden and read-only) or you can right click on “My Computer”, go to “Preferences”, “Advanced” tab, and click the button to edit boot preferences. So the boot.ini is opened on notepad.
On boot.ini, paste the following line at the end of the file:
c:\bootsect.lnx="Linux"
Save, close and reboot.
Now your Windows asks you if you want to start Windows or Linux.
And voi là.
(I think it’s the biggest post I wrote in English, so forgive me for the mistakes)


Recent Comments