LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-10-2005, 07:59 AM   #1
shandy
LQ Newbie
 
Registered: Sep 2005
Posts: 16

Rep: Reputation: 0
Adding GRUB to boot.ini help req


Right,

I have an Amilo M3438G which has two internal disks.
One 1st disk I have Windows XP Home installed along with PowerCinema.

On second disk I have installed Suse 9.3. I installed GRUB on the the second disk as I did not want to make any changes to 1st disk with XP on.

Anyway I ran the following command to get the boot image...

su -c 'dd if=/dev/sdb2 of=/bootsect.lnx bs=512 count=1'

I then copied bootsect.lnx to C: and added to boot.ini as below...

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
C:\bootsect.lnx="Linux"

When I reboot, I get the windows boot menu and select Linux but all that happens is the word GRUB appears in top left hand corner and it just sits there until I do a ctrl + alt +del.

Anyone got any ideas ???????
 
Old 10-10-2005, 09:11 AM   #2
ckeswani
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0
What does your grub.conf file look like

Can you boot to a rescue disk, cat your /etc/grub.conf file? When you installed linux, was it aware of the other disk? It's possible that grub is trying to boot some partition on your first disk instead of your second disk.
 
Old 10-10-2005, 09:28 AM   #3
shandy
LQ Newbie
 
Registered: Sep 2005
Posts: 16

Original Poster
Rep: Reputation: 0
When I installed Linux it was definately aware of my other disk as it gave a warning saying I was installing GRUB to the second disk which was not the main boot disk and asked me if I wanted to change the order the disks booted which I declined.

How do I do the rescue boot you mentioned ?

Do I just go through the installation process then select repair and then boot from there ?
 
Old 10-10-2005, 09:36 AM   #4
ckeswani
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0
Quote:
Do I just go through the installation process then select repair and then boot from there ?
Pretty much. The exact details can be found here:
http://www-uxsup.csx.cam.ac.uk/pub/d...ngssystem.html
 
Old 10-10-2005, 09:47 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Re: Adding GRUB to boot.ini help req

Did you install to the MBR of the second disk, or to a (root) partition ???.
Without being able to see the (M)BR on the second disk I'd suspect the former. Try the following instead of your original dd command, then copy it across as you did before
Code:
su -c 'dd if=/dev/sdb of=/bootsect.lnx bs=512 count=1'
 
Old 10-10-2005, 10:01 AM   #6
shandy
LQ Newbie
 
Registered: Sep 2005
Posts: 16

Original Poster
Rep: Reputation: 0
I installed grub to boot sector of partition /dev/sdb3
(sorry there was typo in my code is should have read /dev/sdb3)
Anyway, not /dev/sdb

Hope that helps, I am totally confused lol
 
Old 10-10-2005, 10:06 AM   #7
shandy
LQ Newbie
 
Registered: Sep 2005
Posts: 16

Original Poster
Rep: Reputation: 0
So to clarify, i think

/dev/sda1 = windows XP & powercinema

/dev/sdb1 = windows fat32 partition
/dev/sdb2= swap
/dev/sdb3 = linux + GRUB
 
Old 10-10-2005, 12:26 PM   #8
shandy
LQ Newbie
 
Registered: Sep 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Contents of grub.conf...

setup --stage2=/boot/grub/stage2 (hd1,2) (hd1,2)
quit
 
Old 10-10-2005, 02:10 PM   #9
ckeswani
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0
Your grub.conf seems to be missing a kernel and a root, something like
kernel /vmlinuz-2.6.9 ro root=LABEL=/

You should do an
ls /boot/vmlinuz*
to determine what kernel you have installed and add the appropriate line to your grub.conf file.
 
Old 10-17-2005, 12:49 PM   #10
balasatya
LQ Newbie
 
Registered: Oct 2005
Location: l
Distribution: ubuntu
Posts: 3

Rep: Reputation: 0
Hi,
I too facing this problem. here is my PC settings:
Machine name: HP-BRIO
Operating System: Windows 2000 Professional (5.0, Build 2195) Service Pack 4
Language: English (Regional Setting: English)
System Manufacturer: Hewlett-Packard
System Model: HP Brio
BIOS: Default System BIOS
Processor: Intel Pentium III, ~650MHz
Memory: 192MB RAM
Page File: 79MB used, 379MB available
Windows Dir: C:\WINNT

I have Two Hard disks. On Fist one I installed win-2000 and on second 40GB, which was partitioned as four parts D(6GB), E(6GB), F(6GB), and G (22GB). I have installed RedHat-9 (now it is Ubuntu 5.4) on G drive. My Bios can read only unto 33GB. That is why leave 8GB space as not-usable and installed the Base system on usable(I mean BIOS readable) space.
I installed Ubuntu in hdd3 and installed grub boot loader on root partition (Linux root hdd3) and with the command #
dd if=/dev/hdd3 of=/bootsect.lnx bs=512 count=1
created bootsect.lnx . Then copy bootsect.lnx file to C:\ for start up screen to change OS. When I reboot and try to login to Linux Grub say error. Should I choose MBR option to install grub? Hope you got my problem (I follow this procedure in red hat. It works well).
 
Old 10-18-2005, 04:30 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally posted by shandy
Contents of grub.conf...

setup --stage2=/boot/grub/stage2 (hd1,2) (hd1,2)
quit
Yuck - patooee !!! - man, I *hate* automated installers.
Even the one's I have to use I hate - and Suse is right up there amongst the worst.

Shandy, looks like you interupted the process too early. This is not a reasonable grub.conf.
If it were me I'd run the setup command from the grub prompt, then fix the grub.conf - but maybe you should ask on the Suse forum here on LQ.
I was never able to get Suse 9.3 to install either grub or lilo, so gave up in disgust.
 
Old 10-18-2005, 04:36 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally posted by balasatya
When I reboot and try to login to Linux Grub say error. Should I choose MBR option to install grub?
What error message do you get from grub ???. Let's see if we can fix this before thinking about installing into the MBR.
Also please post the output of
Code:
fdisk -l
(that's ell, as in l{ist}). Command can be done from a liveCD in need.
 
Old 10-18-2005, 10:56 AM   #13
balasatya
LQ Newbie
 
Registered: Oct 2005
Location: l
Distribution: ubuntu
Posts: 3

Rep: Reputation: 0
Hi all,
Thank you. I log into RESCUE MOD and after intialising all file Ubuntu asked me to select a partition to log.
My partitions are as follows:
/dev/discs/disc0/part1 - winnt
/dev/discs/disc1/part1 -fat32
/dev/discs/disc1/part2 -fat32
/dev/discs/disc1/part3 -/root
/dev/discs/disc1/part4 - /swap
/dev/discs/disc1/part5 -/fat32
I choose /dev/discs/disc1/part3
and get into shell command prompt
When I
fdisk -l
I got " can not open /proc/partitions"
GRUB " probing divices to guss bios drivers" and after some time "ERROR can not open terminal: bterm "
when i try
VI "can't write to viminfo file $HOME/.viminfo"

when i try to switch OS at startup screen
i got " GRUB GEOM ERROR" no command is functioning.

Here is menu.lst:

title Ubuntu, kernel 2.6.10-5-386
root (hd1,2)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hdd3 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot

title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd1,2)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hdd3 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot

title Ubuntu, kernel memtest86+
root (hd1,2)
kernel /boot/memtest86+.bin
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows 2000 Professional
root (hd0,0)
savedefault
chainloader +1

-----------
This is device.map
(hd0) /dev/hda
(hd1) /dev/hdd
-------------------------------
this is fat_stage1_5's some Error Msg

GRUB loading, please wait...
internal error: the second sector of Stage 2 is unknown.
--------------
I hope you got some info. Is there any option like bootable floppy ? Should I wait for UBUNTU-5.10.
I don't want to install grub in MBR as I fear abt loosing my whole lot of data on winnt.
Thank you.

Last edited by balasatya; 10-18-2005 at 01:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB not loading / boot.ini file does not show Linux anymore jeetasher Linux - Laptop and Netbook 14 10-23-2005 06:50 PM
Adding a Boot.ini entry Tinochelli General 2 01-30-2005 02:20 AM
Using dual boot with boot.ini and grub? Darrell22 Programming 1 12-07-2004 05:26 PM
Adding Boot from cd to grub madd matt Linux - General 4 06-16-2004 05:42 PM
grub.conf and boot.ini billygotee Linux - Newbie 2 11-26-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration