LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-05-2004, 04:25 AM   #1
marjan
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
grub


I have a problem with install NT and Linux Red Hat on 1 disk. First I try only linux, after formating HDD I canīt install anything. there is no boot, only massage GRUB. With Ghost, I copy OS but nothing happened, only GRUB.
How can I save my disk and prepare it for use?
thanks for all help

Marjan
 
Old 06-05-2004, 06:47 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Can you remember which partition /boot/grub/menu.lst is on? Or, do you know which partition is your root partition and what's the name of your kernel? If you can't remember all these things you'll need to boot from a CD which has fdisk (or cfdisk) and grub on it. I'd probably use cfdisk on the first Slack CD to use cfdisk to find out where everything is and then I'd use the first Mandrake CD to repair Grub. I don't know if the Red Hat CD has the tools you need to repair your situation. I have tried but I never found a way to get to the command prompt. It would always run Anaconda and start reinstalling so I gave up and went with the tools I was familiar with.
 
Old 06-05-2004, 08:53 AM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Re: grub

Quote:
Originally posted by marjan
I have a problem with install NT and Linux Red Hat on 1 disk. First I try only linux, after formating HDD I canīt install anything. there is no boot, only massage GRUB. With Ghost, I copy OS but nothing happened, only GRUB.
How can I save my disk and prepare it for use?
thanks for all help

Marjan
What dou you mean only grub? Do you get to the grub command line: grub>

If that is the case. The solution is simple:

find /boot/grub/grub.conf (or find /grub/grub.conf) This depends on if you have a separate /boot partition. The find command will return something like (hd0,1) or something where numbers will be adjusted to your partitions.

Then when you get the location of the grub.conf file, you have the location of the /boot partition:

root (hd0,0)
Instead of hd0,0 out the values you got from the above find command.

So you are now on the /boot partition. All you have to do now is:

kernel /vmlinuz-xxxx ro root=LABEL=/
initrd /initrd.xxxxx.img
boot

When typing press TAB(twice), just like in BASH command line and it will give you all the options you have for the word you are typing.

Bynow you should be in your linux.

By the way... What kind of name is marjan? Slovenian?

Lep pozdrav!
 
Old 06-05-2004, 08:54 AM   #4
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Quote:
Originally posted by Andrew Benton
Can you remember which partition /boot/grub/menu.lst is on? Or, do you know which partition is your root partition and what's the name of your kernel? If you can't remember all these things you'll need to boot from a CD which has fdisk (or cfdisk) and grub on it. I'd probably use cfdisk on the first Slack CD to use cfdisk to find out where everything is and then I'd use the first Mandrake CD to repair Grub. I don't know if the Red Hat CD has the tools you need to repair your situation. I have tried but I never found a way to get to the command prompt. It would always run Anaconda and start reinstalling so I gave up and went with the tools I was familiar with.

To get to the tools on the redhat CD you must boot with:

linux rescue

That doesn't start anaconda, it puts you into rescue mode. Just for the future reference.
 
Old 06-05-2004, 04:44 PM   #5
cprogrck
Member
 
Registered: May 2004
Posts: 91

Rep: Reputation: 15
this may help you:

install windows first or partition your hard drive
if you install windows first then use a program like partition magic to partition
then install red hat (grub should be able to boot red hat and if It can't then there may be a problem with your hard drive
or try checking your bios settings. (I don't know too much about your system so I can't tell you what to look for. butdo a google search for known errors with your system.)
When you install red hat does it give you any errors or anything? You just said red hat, by any chance are you using fedora? I think there's some issue with 2.6 kernels and booting Windows xp or nt. I normaly install windows first when I dual boot a system. If you can get red hat working but not windows nt do a google search for booting windows nt with grub.
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:57 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