LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-03-2005, 07:55 AM   #1
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Rep: Reputation: 30
Unhappy Grub won't boot


Hi, this morning when I was turning on my computer, it stopped at grub. All it wrote was: GRUB with white leters on the black screen. No commands worked, only shutting it down.

I've found out with the help of a rescue cd, that on my main drive (hdb) I have to partitions, a boot one and a main one. Both has got a /boot dir, but the one on the small partition has only got fc3 files (the other one has got the fc4 stuff).
I don't know if this is the reason, as I think it has been like this since I installed fc4.

I also tried to "upgrade" the system with the install cds, to reinstall grub, but it said that: "No kernel images was written, nothing has changed".

Has anyone any idéas?
Or is there some way to get debugging/log info for grub, to see what it's problem is?

Last edited by Lobais; 09-03-2005 at 08:41 AM.
 
Old 09-03-2005, 10:26 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
to have 2 /boot partitions means one was FC3 and one was for fc4.

check out your partitions again with (knoppix?) cd and see what your second partition's /etc/fstab file says its likely you are now to use the second /boot.
then check out what your /boot/menu.lst files says and print it out
then while in knoppix re-link your booting files to the mbr by opening a terminal and then issue commands
su
grub
root (hd0,1)
setup (hd0)
quit

where I am assuming the root command is to link to your second partition.

or check out my trouble shooter link and just use commands

Last edited by aus9; 09-03-2005 at 10:35 AM.
 
Old 09-03-2005, 11:10 AM   #3
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Original Poster
Rep: Reputation: 30
/boot is not mentioned in fstab, and the is a menu.lst both on the boot partition and in the boot folder, both linking to the grub.conf in their directory.

I asume The boot partition is just from fc3, and then when I installed fc4 I forgot to say, that it should use it.

I booted from the fc4 cd1 in rescuemode, and tried root(hd1,2) setup(hd1), but nothing happended.
(My main disk is number 2, number 1 and 3 is just for media. Actualy number 1 hasn't got any partitions, no fdisk, I just mount it as "mount /dev/hda /.../media/")
 
Old 09-03-2005, 11:53 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
in your first post you said your main drive is hdb = ide cable 1 jumper as slave

whats the master link? a optical drive or a another hard drive?
how many drives do you have and what are their jumpers please, are any SATA?

does your bios boot to ide b4 sata if you have sata as its makes a difference to where we put the bootloader.

I don't understand your use of main disk number 2 stuff, can you be more explicit?

(2) even if you have 2 drives please read how grub numbers partitions
root (hd1,2) tries to go to the third partition on the second bios detected drive

3) I suspect your fc4 has /boot under / as per my howto and therefore you ignore the first partition.
therefore, if you now understand the numbering system

su
grub
root (hd1,1)
setup (hd0)
quit

and reboot assumes you have 2 ide drives with grub on first drive, linux on second partition of second drive, ignores the separate /boot partition left over from fc3
 
Old 09-04-2005, 09:30 AM   #5
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Original Poster
Rep: Reputation: 30
Cool, I just figured it out. What I did was following:
- I took out hda, which is the harddisk with ext3, but no partitions
- I booted cd1 in rescue mode, and removed hda and changed hdb to hda
- I booted cd1 in upgrade mode, and told it to upgrade grub
- I put in the outtaken harddrive, but this time as slave and harddisk b.
- I booted up fedora and everything worked, except the nvidiadriver which generely don't like kernel swiching.

Thanks for your time and help.
 
  


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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
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
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM

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

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