LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2004, 01:26 AM   #1
rogan999
Member
 
Registered: Jan 2004
Distribution: Mandrake
Posts: 42

Rep: Reputation: 15
Need a bit of help getting brub to run, i think


I am having a bit of a problem trying to get my linux to actually boot. I have just installed Slackware onto a drive that already had windows installed on it.. i have and 80 gig drive, that i had partitioned into two 40gig, one Windows System Partition, and one for Storage, I just deleted the Storage partition and installed Linux.. The instalation goes all the way to the end, and restarts.. the computer then reboots and goes directly into windows. i belive this is happening because the Master Boot Record of the drive is never being updated with the new boot information. how do i do this?

rogan
 
Old 01-12-2004, 01:37 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
did the install, give you the option of making a linux boot disk? if so, and if you made one, pop it in and it should boot you into linux. then use these commands from a shell terminal:

1. su
<enter root password>
2. grub-install /dev/hda

make sure you use hda and not hda1 or hda2 or etc...

#2 will install grub onto your MBR.

before rebooting, make sure your grub.conf file exists and looks something like this (simple windows/redhat 7.3 dual boot):

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,10)
#          kernel /boot/vmlinuz-version ro root=/dev/hda11
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,10)/boot/grub/splash.xpm.gz
password --md5 $XXXXXXXXXXXXXXXXXXXXXXXX/
title Red Hat Linux 7.3
	root (hd0,10)
	kernel /boot/vmlinuz-2.X.XX-XX ro root=/dev/hda11 hdb=ide-scsi hdc=ide-scsi
	initrd /boot/initrd-2.X.XX-XX.img
title Windows
	rootnoverify (hd0,0)
	chainloader +1
the full file path to grub.conf is /boot/grub/grub.conf and you can use any gui text editor with that. you need to be logged in or su'ed into root. aw hell here's the commands for opening grub.conf

1. su
<enter root password>
2. kwrite /boot/grub/grub.conf

in grub.conf, don't worry if you see that root= is using a different hdaXX or something. that's the partition where my linux install is residing. yours may obviously be on a different partition.

Last edited by megaspaz; 01-12-2004 at 01:42 AM.
 
Old 01-12-2004, 01:42 AM   #3
rogan999
Member
 
Registered: Jan 2004
Distribution: Mandrake
Posts: 42

Original Poster
Rep: Reputation: 15
Whenever i try to install it.. i get an error.. nothing specific, just says that it could not install and i need to load my Linux from a boot Floppy
 
Old 01-12-2004, 01:44 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
well, yeah. that's what i asked you first. did you make a boot floppy? you need to boot linux from the boot floppy before trying to install grub AFAIK.
 
Old 01-12-2004, 01:48 AM   #5
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
You could try boot from Linux CD and check in the installer
for help on boot options.
You will probably have to add one package for the installer
to make any changes to your boot option though...
Else it will say no changes.
 
Old 01-12-2004, 01:48 AM   #6
rogan999
Member
 
Registered: Jan 2004
Distribution: Mandrake
Posts: 42

Original Poster
Rep: Reputation: 15
Oh, ok..

Although i made a mistake with a password, so i am not able to log into the install... Oooops

Rogan
 
Old 01-12-2004, 01:53 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by alar
You could try boot from Linux CD and check in the installer
for help on boot options.
You will probably have to add one package for the installer
to make any changes to your boot option though...
Else it will say no changes.
actually if you can boot from the install cd into linux, then you can run the grub-install command in linux. i'm not sure how slack does it, but in redhat 7.3, the install cd will not save changes unless you install the kernel that's higher than the already installed kernel (which is impossible). i remember trying to fix grub that way on my father's laptop and installing the kernel on the cd didn't work. still said no changes. but either way, give it a shot. alar's suggestion may work out better for you.

Last edited by megaspaz; 01-12-2004 at 01:55 AM.
 
  


Reply



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
Will a 64 bit distro run on the Ahtlon XP chip? cchoate Linux - Hardware 2 10-07-2005 04:30 PM
will 32 bit os run in amd64 bit arkarkwin Linux - Hardware 3 09-07-2005 01:41 AM
AMD64 run 32 bit mode javierj Linux - Newbie 1 04-14-2005 09:00 PM
ELF 32-bit LSB executable how to run vinsky2002 Linux - Software 1 01-12-2005 02:07 AM
Linux boot loader BRUB, LILO) problem. AskMe Linux - Newbie 5 01-06-2004 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 PM.

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