Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 11-16-2005, 06:32 AM   #1
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93

Rep: Reputation: 15
How to Edit boot.ini for linux AS 3?


I was having win2k and linux AS 3.0. Yesterday i formated win2k.
After formating and installing all the softwares in win2k. i restarted my pc while booting i didnt see linux OS in the boot menu. the win2k is directly booting.i checked the "notepad /boot.ini" in that, i didnt see any entry for linux.
So, what i have to add in the boot.ini to get the menu to choose the OS while booting.
For your information: I am using GRUB.

Thanks & Regards
Old 11-16-2005, 10:29 AM   #2
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Do you want win32? You installed it and you can use it, any problems?

And seriously.

I saw Mandrake distro. It has a special CD boot mode where some tools are accessed, including tool for restoring a MBR (main boot record). If your distro does not have this capability do not worry.

Another way.
Boot from your Linux distro and mount your root FS (e.g. you attach it to the /mnt). If you have a distinct boot partition, then mount it too in the /boot directory of the JUST mounted FS (e.g. /mnt/boot). Then type 'chroot /mnt' (or another directory you choose). Check out your /etc/grub.conf (I do not use grub, so I do not know how its config file named, hope you will find it) and type 'grub'. Then reboot.
Old 11-16-2005, 12:02 PM   #3
LQ Newbie
Registered: Sep 2005
Location: India
Distribution: Debian, Fedora,Ubuntu
Posts: 25

Rep: Reputation: 15
boot.ini or fstab


start your pc with the first cd (installer) at boot prompt select 'linux rescue'

now when it ask for scanning for partitions select continue

your partition will be mounted under /mnt/sysimage

now follow these steps care fully

1) check which drive holds linux by
fdisk -l
(here node down wether it is hda hdb hdc or hdd don't worry about the trailing number)

2) now chroot into your partition
chroot /mnt/sysimage

3) issue the following command
grub-install /dev/hdX

replace X with appropriate from step 1

reboot the pc you will get your grub back

Old 11-19-2005, 01:36 AM   #4
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93

Original Poster
Rep: Reputation: 15
Thumbs up


Thanks for your reply.
I followed the instructions.....
I got the grub....

After that.....

in the sh#>grub
grub>root (hd1,0) ---> this is my linux harddisk
grub>setup (hd0,0) ---> this is my window2k harddisk


Removed the boot cd.
the pc was rebooted then I got a boot screen to choose the OS.

Thats All.........Now its working fine......


Last edited by sathyguy; 11-19-2005 at 07:11 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I edit .ini files? Virp00 Linux - General 1 01-15-2005 10:54 AM
Boot Linux Suse using boot.ini from Windows XP theewolizer SUSE / openSUSE 10 10-21-2004 01:11 PM
edit windows boot ini to allow booting to lilo V_LESTAT Linux - Newbie 2 01-15-2004 06:58 PM
boot.ini rewriten, cant boot to linux ragecyr Linux - Newbie 7 07-04-2003 01:10 PM
problem booting via boot.ini and linux.bin file onlyhuman9 Linux - General 5 09-18-2002 07:32 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration