LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-06-2002, 11:09 AM   #1
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
Linux Won't load under Grub


K, I am trying to get RH 7.1 to run under Grub, My windows partition boots fine no problems, but my linux partition freaks out when it gets to the "Checking the root Filesystem" sequence. It gives an error saying that "/dev/hda6" is already mounted. and fails. I have noticed in this boot sequence that it normally mentions how it is re-mounting / in rw mode, so I tried adding the ro option at the end of the kernel line in grub, but that provided no relief. Anyideas??

TIA!!
Mike.
 
Old 02-06-2002, 07:16 PM   #2
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Original Poster
Rep: Reputation: 30
Please, anybody, I am taking the RHCE exam friday and am just about ready, but I am almost possitive this problem will be on the debug portion. Any help is greatly appreciated!!!

Thank you!
Mike.
 
Old 02-06-2002, 08:32 PM   #3
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Original Poster
Rep: Reputation: 30
k, I have it narrowed down to the fact that when I boot from grub, my root filesystem is being mounted Read/Writeable before fsck is run, meaning it will not let me continue. What would the line in Grub.conf look like to make it load the root filesystem read-only. I am running rh 7.1, with an initrd. I have tried the following:

kernel /vmlinuz ro root=/dev/hda6
kernel /vmlinuz root=/dev/hda6 ro

anyother suggestions?

Thanks again!
 
Old 02-07-2002, 02:37 AM   #4
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Original Poster
Rep: Reputation: 30
anybody?
 
Old 02-07-2002, 03:31 AM   #5
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Grrrrrrrrrrr! The mighty grub

Grub always boots your system if there's a bootable image.

First try tab searching for the vmlinuz file.

When you get the grub menu, press e on the system you're trying to boot, to edit the boot command line.

try this:

kernel (hd0,1)/<TAB>

this will give you a list of options


This is assuming the vmlinuz file is on the second partition of the first disk. Grub counts from 0 like a computer should.

My command line looks like this:

kernel(0,1)/vmlinuz root=/dev/hda5

But the vmlinuz file could just as easily be a bzImage.

Post if you get it working

Bert
 
Old 02-07-2002, 07:52 AM   #6
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Original Poster
Rep: Reputation: 30
Thank you for the response!

vmlinuz is there, and grub is actually booting the kernel, but it is booting it read writeable, meaning when it comes time to fsck it it can't get passed this. I will do the TAB thing to see if that gets me anywhere, but technically the vlminuz is starting up, I just think it is being called slightly incorrectly.

Thanks!

Mike.
 
Old 02-07-2002, 08:07 AM   #7
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
try 'rootnoverify'

Oh sorry, I didn't read your post correctly.

Have a look here .
 
Old 02-07-2002, 02:49 PM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Why don't you just look and see what options were passed in to the kernel by lilo, they should be no different with grub.


John
 
Old 02-07-2002, 10:59 PM   #9
mikeyt_3333
Member
 
Registered: Aug 2001
Distribution: Red Hat
Posts: 61

Rep: Reputation: 15
the problem is this system was originally configured with a bootdisk, and not lilo so I have no lilo config to look at... what kernel parameter makes it load read-only?

Thank you so much for the help!
Mike.
 
Old 02-08-2002, 08:24 AM   #10
mikeyt_3333
Member
 
Registered: Aug 2001
Distribution: Red Hat
Posts: 61

Rep: Reputation: 15
finally found a possible read only parameter! After skimming my many linux books I found a sample lilo.conf file. It has the following entry:

root= /dev/hda6
read-only

so I will give that read-only parameter a shot and see waht happens, unfortunaly I won't find out till Sun-Mon, but I can be patient.

I'll let ya know what happens!

Thanks a lot!
Mike.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB can't load Linux at all... help! Napalm Llama Linux - Software 1 02-09-2005 05:31 PM
Grub takes forever to load win98 after linux session... scm86 Linux - Software 7 12-30-2004 11:32 AM
How to load linux in dual boot sys(grub not running)? karfei00 Linux - General 6 06-01-2004 04:41 PM
how to load linux or win from GRUB after installation gone bad mario08 Linux - Newbie 24 01-17-2004 04:18 AM
grub problems - Linux will not load from HD stever Linux - Newbie 7 12-31-2003 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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