LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to Edit boot.ini for linux AS 3? (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-edit-boot-ini-for-linux-as-3-a-383621/)

sathyguy 11-16-2005 06:32 AM

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

Ygrex 11-16-2005 10:29 AM

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.

anantshri 11-16-2005 12:02 PM

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

sathyguy 11-19-2005 01:36 AM

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


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