LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-21-2005, 07:15 PM   #1
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Rep: Reputation: 0
Unhappy grub won't load fedora 4, rescue disk says partition is unformatted!


Hi friendly linux folk,

here's the pickle:

I've got GRUB prompt, and Fedora Core 4 won't boot. I need to have someone walk me through using GRUB. I can load Windows XP using the chainloader thing, but that's useless to me.

My partitions (on an i686):
hd0,0=bios
hd0,1=windows
hd0,2=linux swap
hd0,3=fedora 4

I've tried using the fedora rescue CD (no floppy drive), and it gives me a command prompt, or if i try to get to the upgrade section of the CD, it tells me that the partition with linux on it has not been formatted.

i've tried google, the wiki/man pages, etc. I'm lost. I know this is probably really simple because I have not changed the grub.conf file.

Please HELP!!
 
Old 11-22-2005, 04:11 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
When you say that you are getting a grub prompt, are you getting:

grub_

--OR--

grub>


It sounds like you are getting the grub shell (grub>) that will allow you to do a native grub installation. If so, then run through the find, root and setup commands like this:

grub> find /boot/grub/stage1

which will probably output (hd0,3). Then run root:

grub> root (hd0,3)

or using whatever “find” found instead of (hd0,3). Then run setup:

setup (hd0)
reboot

You should now be able to boot into FC4.


All of this is covered in Grub Manual: http://www.gnu.org/software/grub/man...-GRUB-natively
 
Old 11-22-2005, 04:26 PM   #3
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
I've got

grub>
 
Old 11-22-2005, 04:28 PM   #4
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
And I tried
grub> find /boot/grub/stage1

and recieved:

Error 15: File not found


Yikes!
 
Old 11-22-2005, 04:35 PM   #5
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
Unhappy

Okay, tried the:

setup (hd0,3)

and it gave me:

checking if /boot/grub/stage1 exists...no
checking if /grub/stage1 exists...no
Error 2: Bad file or directory type

I even tried it with the other partition numbers in case I had messed up what the numbers were and I got the same thing.

Help!!
 
Old 11-22-2005, 05:39 PM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Try:

grub> find /grub/stage1

Use this one if you have a separate /boot partition.


By “hd0,0=bios” did you mean /boot?
 
Old 11-22-2005, 05:47 PM   #7
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
no, hd0,0 is the MBR/the BIOS/the dell diagnostics-- on all PCs it is usually located on the first section of the hard disk, i think?

hilary
 
Old 11-22-2005, 06:01 PM   #8
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Did you use autopartitioning when you installed?
 
Old 11-22-2005, 06:02 PM   #9
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
nope, I think I manually told it to do everything. Unfortunately I have linux on an extended partition.
 
Old 11-22-2005, 06:10 PM   #10
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
grub> find /grub/stage1

prints:

Error 15: File not found
 
Old 11-22-2005, 06:28 PM   #11
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Something must really be messed up with your installation, if neither “find /boot/grub/stage1” or “find /grub/stage1” found anything. About now, I usually get out my Knoppix CD, boot the system with it and have a look around.

You can get a Knoppix iso image at: http://www.knopper.net/knoppix/index-en.html You can also run grub from Knoppix.

BTW, if FC4 is installed in a logical partition within the extended partition, then it would need to be in hd0,4 or greater. The first logical partition is numbered as 5, whereas all primary/extended partitions are numbered 1-4.
 
Old 11-22-2005, 06:33 PM   #12
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
Disk /dev/hda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
units=cylinders of 16065 * 512 = 8225280 bytes

Device Boot start end blocks id system
/dev/hda1 1 5 40131 de dell utility
/dev/hda2 * 6 642 5116702+ 7 HPFS/NTFS
/dev/hda3 643 655 104422+ 83 Linux
/dev/hda4 656 3648 24041272+ 5 Extended
/dev/hda5 656 3648 24041241 8e Linux LVM


This is what the partition table looks like.

so in GRUB, hd0,0=dell utility, and so on, right?
 
Old 11-22-2005, 06:33 PM   #13
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
sorry that printed really messed up
 
Old 11-22-2005, 06:46 PM   #14
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Yes, those are the good-old Dell utilities in hda1.

It looks like hda3 is /boot. While you are in linux rescue mode, try running these commands and tell me, more or less, the first few things that are listed at the two ls command steps:

mkdir /mnt/temp
mount -t ext3 /dev/hda3 /mnt/temp
cd /mnt/temp
ls
cd grub
ls
cd /
umount /mnt/temp


If the mount step fails, try running:

e2fsck -f /dev/hda3

and see if there are problems with the filesystem.
 
Old 11-22-2005, 06:59 PM   #15
bean.art
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 17

Original Poster
Rep: Reputation: 0
mkdir /mnt/temp
mount -t ext3 /dev/hda3 /mnt/temp

prints:

mount: mounting /dev/hda3 on /mnt/temp failed: Invalid argument

I think i typed it in correctly?

hilary
 
  


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
How to bypass 'Grub' after deleting the Linux partition, so that Windows XP can load? Marion D Poff Linux - Software 11 03-15-2011 03:52 PM
How to rescue partition? (Bad block in disk, reiserfsck stops) gattumarrudu Linux - Hardware 4 06-29-2010 01:47 PM
Installing The Grub Bootloader From Rescue Disk sloik2000 Linux - Software 4 01-20-2005 04:38 PM
Need a boot disk to load Fedora Core 3 duclu Linux - Newbie 17 01-20-2005 11:50 AM
XP won't load...grub hid partition? SamerAdra Mandriva 4 10-21-2004 09:37 AM

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

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