The Linux Administration group is for the discussion of technical issues technical issues that arise during the administration of Linux systems, including maintaining the operating system and supporting end-user applications.

System does not give option of dual O/S

Hi all
I have a problem with Linux '
When i want to install a window on linux then i have lost the grub loader of
linux and system not give me option of dual O/S
when i wants to recover the linux it is not done. If any one know this help
me
Best Regard
Raja.

I have a problem with Linux '
When i want to install a window on linux then i have lost the grub loader of
linux and system not give me option of dual O/S
when i wants to recover the linux it is not done. If any one know this help
me

Hi raja,

I hope you have not formated the linux partition when installing
Windows, If you have not done that, then you can
make your machine dual boot by booting you machine with the first
installation cd of the linux distro.

on linux prompt > type *linux rescue*
then mount sysimage. as instructed during the rescue bootup.
then run command *grub-install /dev/hda* (assuming the primary installation
disk is hda)

This should load up the grub to bootloader. after reboot you should be able
to see both the linux and windows(other) in the grub entries...

Thank all to giving me good suggestion.
But matter is that.
Like if i install any window o/s and then on that xp
then it will give me the dual o/s option
when i install linux on any window then it also give me option
"but the problem is that when i install any o/s on linux then the dual o/s
not come "
how it will be possible.

well raja
may these condotions prevail"
1.grub is lost
2.MBR is currupted
3.MBR is lost
in any of these try these out

1.boot the system via rescue mode & install grub by giving [grub-install
/dev/hd{a,b,c} whatevevr]
or
/sbin/grub-install /dev/hda{a,b,c}
2. type [grub] & u will see the grub prompt as grub>
then type the following
[find /boot/stage1] or [find /stage1]
check the value of hdaor hdb
then
[root (hd0,x)] where x is the value u got from /boot/stage1 or
likewise
then
[setup (hd0)]
then
[reboot]

>
> Thank all to giving me good suggestion.
> But matter is that.
> Like if i install any window o/s and then on that xp
> then it will give me the dual o/s option
> when i install linux on any window then it also give me option
> "but the problem is that when i install any o/s on linux then the dual o/s
> not come "
> how it will be possible.

Let me understand you are not having the entry for windows in the grub file
because of which you cannot bootup window
Is that right.

If that is the case then edit the grub.conf file
vi /etc/grub.conf file and add the following entry at the bottom

Windows XP is an upgrade to any Microsoft OS before
it: therefore you will ALWAYS be able to install XP
after DOS, 3.1, 95, 98, ME, NT, or 2000. What you
CAN'T do is install say, 98 after XP--unless you
install it in a completely different partition. In
that case XP detects it and it shows up in the NT
bootloader on boot--a dual-boot Windows system. What
MICROSOFT DOESN'T WANT YOU TO DO is to INSTALL A
NON-MICROSOFT OS. They have written the 98 and XP
installation to PREVENT THAT. 98 must have the whole
disk and be the only primary partition. You can even
install 98 and XP in the same partition--you just have
to give the windows folders different names. XP
prefers the whole disk, but it's not necessary: it
just refuses to go through with the installation if
detects a non-Microsoft OS. Linux is a non-Microsoft
OS, therefore XP doesn't want to play. Linux must be
installed second. Linux doesn't care what's already
there: the Linux setup will detect and configure
Windows to boot and coexist with Linux happily.

Do a Google search on dual-boot, multiboot, and GRUB.
There are many pages on booting Linux and Windows with
either GRUB or LILO. You can use GRUB4DOS or GRUB4ALL
and boot Linux from the NT bootloader.

Here is a typical dual-boot GRUB menu.lst entry(the
file is located inside /boot/grub) for Linux and
Windows:

Here Windows is on the primary master (hd0), Linux on
the primary slave(hd1).

All you have to do to get both systems to boot
(assuming GRUB is installed) is to make sure the linux
"kernel" value points to the location of your kernel,
and the Windows entry includes "chainloader +1." It
often also includes "noverify."

Doing this from the CD like this is really the fastest
and the easiest way. Kudos to Madhu!

Also, Retheesh Kumar R brought up an important point:

If that is the case then edit the grub.conf file
vi /etc/grub.conf file and add the following entry at
the bottom

title Other
rootnoverify (hd0,0)
chainloader + 1

This is a good entry. The GRUB configuration is in two
places: it is in etc/grub.conf and in
/boot/grub/menu.lst. Editing one changes the other.

By default Red Hat calls Windows "Other." You can
rename it "Windows," or "Blue CHeese," or whatever you
like, and GRUB will still boot it. The name is for
your benefit, all GRUB cares about is where the OS is.
Just don't change anything else if it's working.

Thanks Retheesh Kumar R
According to ur suggestion i can bootup the windows by changing the grub
file entry. if i installing the Linux on windows.
But i face the problem when i install the windows on linux it escape out the
linux boot option and only windows appear '
Thanks
Raja.

Thanks alexandre botao
But some time may windows corrupt and if i reinstall the window then
according to ur suggestion i will have to install Linux Again
That is very Time consuming.
Thanks
Raja Muhammand Imran

It's unfortunately quite correct that Windows will
corrupt. However, Windows usually screws up itself,
booting itself, or the boot sector. The boot sector is
easily repaired. In the past, I have had dozens of
experiences with Windows destroying the Linux
partition. Here's a tip: ALWAYS defragment Windows
before installing another OS or resizing the
partition. NEVER run Windows defragmenter AFTER you
have installed Linux: it will trash the Linux
partition (and may complain it can't read the end of
the disk). Running chdsk is fine, it won't do
anything. Windows will run faster on a smaller
partition anyway, and that's the point of
defragmenting: to speed it up. I quit defragmenting
Windows on a dual-boot computer two years ago, and I
haven't had a Linux partition trashed by Windows
since. Although Windows has trashed ITSELF and its
boot files quite frequently.......

---------------Original Message---------------
>
>Hi all
>I have a problem with Linux '
>When i want to install a window on linux then i have lost the grub loader of
>linux and system not give me option of dual O/S
>when i wants to recover the linux it is not done. If any one know this help
>me
>Best Regard
>Raja.
>
>

Hi, This is Mihir.IF u want dual boot then 1st of all windows in ur system and then install Linux on it. Then it works perfectly but if doesnt work then boot through linux rescue mode and recover ur grub loader
chroot
sysimage/grub-install