LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 11-16-2005, 07:32 AM   #1
sathyguy
Member
 
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?


Friends,

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
Sathyguy
 
Old 11-16-2005, 11:29 AM   #2
Ygrex
Member
 
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, 01:02 PM   #3
anantshri
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Debian, Fedora,Ubuntu
Posts: 25

Rep: Reputation: 15
boot.ini or fstab

hello,

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


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

Original Poster
Rep: Reputation: 15
Thumbs up

Anant,

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
grub>exit

sh#>exit
sh#>exit

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

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

thanks
sathyguy

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


Reply


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 11:54 AM
Boot Linux Suse using boot.ini from Windows XP theewolizer Suse/Novell 10 10-21-2004 02:11 PM
edit windows boot ini to allow booting to lilo V_LESTAT Linux - Newbie 2 01-15-2004 07:58 PM
boot.ini rewriten, cant boot to linux ragecyr Linux - Newbie 7 07-04-2003 02:10 PM
problem booting via boot.ini and linux.bin file onlyhuman9 Linux - General 5 09-18-2002 08:32 AM


All times are GMT -5. The time now is 05:51 PM.

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