| Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-16-2005, 06:32 AM
|
#1
|
|
Member
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93
Rep:
|
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
|
|
|
|
11-16-2005, 10:29 AM
|
#2
|
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 547
Rep:
|
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.
|
|
|
|
11-16-2005, 12:02 PM
|
#3
|
|
LQ Newbie
Registered: Sep 2005
Location: India
Distribution: Debian, Fedora,Ubuntu
Posts: 25
Rep:
|
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
|
|
|
|
11-19-2005, 01:36 AM
|
#4
|
|
Member
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93
Original Poster
Rep:
|
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 07:11 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|