Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 661
  • Last Modified:

dual boot linux

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
samj
Asked:
samj
  • 4
  • 4
  • 3
1 Solution
 
knollbertCommented:
0
 
BotHunterCommented:
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
 
BotHunterCommented:
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
knollbertCommented:
>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
 
samjAuthor Commented:
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
 
samjAuthor Commented:
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
 
samjAuthor Commented:
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
 
BotHunterCommented:
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
 
BotHunterCommented:
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
 
samjAuthor Commented:
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
 
knollbertCommented:
Congrats on figuring it out your self


Knollbert
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 4
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now