Solved

dual boot linux

Posted on 2004-08-17
12
646 Views
Last Modified: 2013-11-15
Hello
I installed linux on my second hard drive, the first has win2000
when I boot up, window NTLDR gives me the  options to go win or linux. the win option works good, the linux option gives me a black scren with the work  GRUB on the top left cornor and  nothing happens. how can this be fixed.

thanks
0
Comment
Question by:samj
  • 4
  • 4
  • 3
12 Comments
 
LVL 6

Expert Comment

by:knollbert
ID: 11819439
0
 

Expert Comment

by:BotHunter
ID: 11822922
I'm not sure about grub, but I know that with LILO, you had to copy the bootsector to a file on the NT partition before the NT loader could boot it.  It may be similar for grub.  

Try running dd if=/dev/hda2 of=/tmp/grub.img (replace hda2 with your boot partition where grub is installed)

Copy grub.img to the root directory on your NT drive and modify the boot.ini to boot that image.

Can you post a copy of your boot.ini file?
0
 

Expert Comment

by:BotHunter
ID: 11822940
Another option is to have grub boot NT instead of having NT boot Linux.  It works a lot better that way.  (Grub understands the NT boot loader... the NT boot loader doesn't understand non-MS operating systems)
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 6

Expert Comment

by:knollbert
ID: 11823592
>Another option is to have grub boot NT instead of having NT boot Linux.  It works a lot better that way.

Absolutely  correct!!

i just answered the question asked.
0
 

Author Comment

by:samj
ID: 11824883
ok, lets then to with grub to boot NT.
so  setting bios to use D instead of C as it is first option to boot.
I did that, that is
when I change the boot sequence to boot from hdb
I get
Verifying DMI Pool Data ..............
GRUB Loading state 1.5.

GRUB loading, pleae wait...
Error 22


so I used a grub floppy to boot up.
Grub> find /boot/grub/stage1
(hd1,1)
grub> root (hd1,1)
filesystem type is …..
grub> setup (hd1)

done
grub> setup (hd1,1)
..
done
grub> reboot

the same thing "Error 22"
0
 

Author Comment

by:samj
ID: 11824917
and, here is my /boot/grub/menu.lst

default            0

timeout            2

color cyan/blue white/blue


 title            Windows 95/98/NT/2000
 root            (hd0,0)
 makeactive
 chainloader      +1
#
 title            Linux
 root            (hd1,1)
 kernel      /vmlinuz root=/dev/hdb1 ro
#

title            Debian GNU/Linux, kernel 2.4.18.081704
root            (hd1,1)
kernel            /vmlinuz-2.4.18.081704 root=/dev/hdb1 ro
savedefault

title            Debian GNU/Linux, kernel 2.4.18-bf2.4
root            (hd1,1)
kernel            /vmlinuz-2.4.18-bf2.4 root=/dev/hdb1 ro
savedefault


### END DEBIAN AUTOMAGIC KERNELS LIST
0
 

Author Comment

by:samj
ID: 11826157
if I let the bios boot into hda, it gives me the options to boot into win or lnx, the win options works, the lix option gives
grub>

here is my boot.ini
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
c:\bootsect.lnx="Linux debian"

0
 

Expert Comment

by:BotHunter
ID: 11826309
You might want to try lilo for a change.  I don't want to start a religious battle here, but I think it's worth a shot.  According to your grub file, I've created a LILO configuration that might work:

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt', or install a new kernel.  The |
# | computer will most likely fail to boot if a kernel-image      |
# | post-install script or you don't remember to run `lilo'.      |
# |                                                               |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32

boot=/dev/hdb

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hdb1

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#            
map=/boot/map

delay=20

vga=normal

append=""

# Boot up Windows by default.
#
default=Windows

image=/vmlinuz
        label=Linux
        read-only
#       restricted
#       alias=1

image=/vmlinuz-2.4.18.081704
        label=Kernel-08-18-04
        read-only
        optional
#       restricted
#       alias=2

image=/vmlinuz-2.4.18-bf2.4
        label=Kernel2418bf24
        read-only
        optional
#       restricted
#       alias=2


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
other=/dev/hda1
#       label=Windows
#       restricted
#       alias=3
0
 

Expert Comment

by:BotHunter
ID: 11826315
Doh!! Correction to my previous post:

3rd to last line should not be commented:


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
other=/dev/hda1
       label=Windows
#       restricted
#       alias=3
0
 

Accepted Solution

by:
samj earned 0 total points
ID: 11826669
ok
no suggestion here I used to fix the problem.
the problem is fixed with the help of
http://www.desktop-linux.net/grub.htm
basicly, I reinstalled grub, followed the steps in the link above.
all is good.

thanks

if no objection from anybody, I would like to ask for PAQ and refund.

thanks
0
 
LVL 6

Expert Comment

by:knollbert
ID: 11826820
Congrats on figuring it out your self


Knollbert
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question