LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 09-22-2004, 09:51 AM   #1
zetafunc
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Grub loader not loading Windows XP or Fedora Core 1 after changing partition size.


I have a Windows XP Pro machine on which I installed Fedora Core 1 ( sometime ago ) to make it a dual boot machine. The machine was configured to have an NTFS partition and a FAT32 partition along with a partition for Fedora Core 1. Upon booting, the Grub bootloader would prompt for selection of either Windows or Fedora and things worked fine, until,I converted the FAT32 partition into an NTFS partion which then I split into a smaller FAT32 partition ( around 2 GB ) and an NTFS partition ( using Partition Magic 8.0 ), leaving the Linux partition untouched. Grub loader worked fine upon rebooting the machine the next time and booted the desired OS. However today ( the second time after changing and splitting the original partition ) when I started my machine, Grub would not provide an option to boot the desired OS - supporting only a minimal BASH-like editing mode. Get the following on the screen :

GRUB version 0.93 ( 639K lower / 523072K upper memory )

[Minimal BASH-like line editing is .......

grub>

instead of the window with the option to select the desired OS to boot.

I am not sure whether splitting the original FAT32 partition into an NTFS
and a smaller FAT32 partition has had anything to do with this. At this point I would like to boot Windows XP and retrieve data without Grub loader interfering or get Grub loader to boot Windows XP.
Is all lost ? Will reinstalling Fedora 1 ( with the existing reconfigured partition ) enable Grub loader to boot Windows XP and keep that partition intact. Thanks.
 
Old 09-23-2004, 07:59 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
grub can't find your stage2 files....but you have the option of manual commands to get into linux then re-running grub see my rough tutorial for that.

In the meantime try
at boot press c for command for grub
type
root (hd0,X)

replace X with zero and record the response then redo command with 1 then with 2 etc and you should see responses for each file system type. You may have to go as high as (hd0,9) that should be enough

You do not supply enough info to carry on but report back with your results.

We will you that info to issue commands firstly to boot into linux then edit your menu.lst file or grub config file and hopefully, legs crossed reboot should reveal all?
 
Old 09-23-2004, 10:46 PM   #3
zetafunc
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Unfortunately I was not able to try out the suggestions that you had posted - by the time I got to read your post, I had tried restoring the MBR using fdisk /mbr; this operation failed and at that point I decided to restore my system to its original settings. Thanks for your help.
 
Old 10-19-2004, 01:48 PM   #4
milesstandish
Member
 
Registered: Sep 2002
Posts: 70

Rep: Reputation: 15
Grub read error

i have a grub question... red hat enterprise ws. was working fine this morning. got home, it locked up (ctrl+alt+backspace did nothing, in fact, nothing worked). restarted the computer from power button. restarted and immediately get "grub read error" after post. i can't use my rh cd because the drive reads it too quickly and needs to be slowed down (but i can't remember the command to do that or how to get to the coommand prompt...). at any rate my current plan is to make a grub boot disk and see what happens. does this sound like step in the right direction or is there something else i can do/try?
 
Old 10-20-2004, 05:54 AM   #5
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
grub is trying to read your stage 1.5 or 2 file and can not.

I assume you can still reboot to grub menu screen?
and if you still know your etc/fstab file for your boot partition and your / partition then try
c for commands
root (hd0,0) #### (or whatever your boot partition is)
setup (hd0) #### to let grub see where the files are
boot####

assuming you can reboot now just check your /boot/menu.lst or /etc/grub.conf file is still ok

and then backup your mbr to floppy

I will amend my tutorial but here it is for you

insert a msdos or ext2 floppy and mount it
open a terminal and su to get root access
dd if=/dev/hda of=/home/your name/mbrhda bs=512 count=1
test it b4 putting on to floppy with
dd if=/home/your name/mbrhda bs=512 count=1 (as no output file specified it goes to screen) and you should see the word grub or lilo and some squiggles.

then copy that file to floppy anyway you like write protect it unmount it and make a second copy just for luck
 
Old 10-28-2004, 01:20 PM   #6
gezepi
LQ Newbie
 
Registered: Oct 2004
Location: MN, USA
Distribution: Red Hat,Mandrake
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by aus9
In the meantime try
at boot press c for command for grub
type
root (hd0,X)

replace X with zero and record the response then redo command with 1 then with 2 etc and you should see responses for each file system type. You may have to go as high as (hd0,9) that should be enough

You do not supply enough info to carry on but report back with your results.

We will you that info to issue commands firstly to boot into linux then edit your menu.lst file or grub config file and hopefully, legs crossed reboot should reveal all?
I am having a similar problem and when i type
Code:
root (hd1,0)
it says
Code:
FIlesystem type is ext2fs, partition type 0x83.
I have tried to access my menu.lst file and grub.conf but it responds that they cannot be found.
Thanks for any help and sorry if i bumped this.

Last edited by gezepi; 10-28-2004 at 01:22 PM.
 
Old 10-28-2004, 08:46 PM   #7
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
zetafunc says no longer need answer so its over to you.

you report hd(one) and grub counts from zero so did you make a typo?

2) tell us the bios boot order of your drives, whether they are Ide or SCsi or Sata
and do you have a boot disk or a rescue cd.

3) I don't have RH or Mdk but their cds should be able to be used as a rescue cd.
 
Old 10-28-2004, 11:32 PM   #8
gezepi
LQ Newbie
 
Registered: Oct 2004
Location: MN, USA
Distribution: Red Hat,Mandrake
Posts: 2

Rep: Reputation: 0
1. It is hd1,0 because i installed it on a second drive, first partition.
2. Sorry, im not sure how to tell this, but i dont have any SCSI devices, and didnt select any options about SCSI.
3. Yes, I have a rescue CD.

I was able to edit the menu.lst file, but it had no effect on what happened.
I got frustrated and gave up that attempt to go at it a different way. I reinstalled and chose Lilo instead of Grub, and it worked like a charm.
 
Old 10-29-2004, 12:21 AM   #9
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
no worries but grub should if you have only used one drive used (hd0) not hd1.

well done in solving your boot loader issue if I can convert you here is a tutorial
http://www.linuxquestions.org/questi...hreadid=237511
 
Old 02-23-2005, 11:05 PM   #10
fhleung
Member
 
Registered: Aug 2004
Distribution: Fedora, Debian
Posts: 336

Rep: Reputation: 30
I have a problem about the Grub bootloader but that may different from above cases.

I try the GRUB tutorial and trouble-shooter in the link and still can't get it working.
http://www.linuxquestions.org/questi...hreadid=237511

I installed both WinXP and RedHat9 but there's NO bootloader pop up for me to select the OS.

I try to boot Linux with disc in rescue mode, I want to edit some files but I just can't find grub.conf and menu.lst

And I got problem with install the grub rpm package manually from the CD
error: unpacking of archive failed on file/usr/bin/mbchk;421de2ac: cpio: mkdir failed - read only file system

Thanks for your help.
 
Old 02-23-2005, 11:42 PM   #11
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
fhleung thanks for interest in grub

more info needed......when bios goes to drive mbr what bootloader appears? ntloader or lilo or grub?

most rescue cd should allow the command chroot but if you are newbie......you may better off with a knoppix cd and that will allow you to see each partition directories and their contents in READ ONLY MODE.

you can put grub into mbr by using knoppix cd by just using a terminal

su #### knoppix being a cd does not need a passwd
grub
root (hdX,Y)
setup (hdX)

where X is 0 (zero) if you have only one drive or the bios boot order drive
Y is the partition that /boot is in typically 0


2) if this is too hard for you try reinstalling redhat and write down what you are doing

I don't use rh so can't help with fail message........but grub has to install......there are no better booters
 
Old 02-24-2005, 12:32 AM   #12
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
Quote:
Originally posted by fhleung
I try to boot Linux with disc in rescue mode, I want to edit some files but I just can't find grub.conf and menu.lst
Pay proper attention to the on-screen instructions. You choose whether to follow them or whether to skip the last step and not enter the chroot. In either case, if the rescue mode locates your Red Hat Linux system partition, it offers to mount the system. And it tells you where it mounts them. If you choose to mount the root partition yourself, don't forget to mount all partitions you need (e.g. if you have a separate /boot partition). Then, if you chroot into your system, GRUB config file is in /boot/grub/grub.conf, of course. Else it's located below your mount point, which is /something-you-choose/boot/grub/grub.conf.

And menu.lst is a file name you don't need. It's GRUB's original file naming.
Quote:
And I got problem with install the grub rpm package manually from the CD
error: unpacking of archive failed on file/usr/bin/mbchk;421de2ac: cpio: mkdir failed - read only file system
The error message is clear, isn't it?
 
Old 02-25-2005, 09:57 PM   #13
fhleung
Member
 
Registered: Aug 2004
Distribution: Fedora, Debian
Posts: 336

Rep: Reputation: 30
ntLoader always appear when I start, I just can not see the Grub looader.

The CD in rescue mode has command chroot option, and the system partition is mount in /mnt/sysXXX , I go there and can't not find grub.conf file so I not sure if I installed the grub loader.
 
Old 02-25-2005, 10:05 PM   #14
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
Then post your /etc/fstab file, maybe you have a separate boot partition which you would need to mount within the chroot.
 
Old 02-27-2005, 05:34 AM   #15
fhleung
Member
 
Registered: Aug 2004
Distribution: Fedora, Debian
Posts: 336

Rep: Reputation: 30
I boot up the macjine by knoppix CD in failsafe mode

I want to put grub into mbr by using knoppix cd by just using a terminal

su
grub
root (hdX,Y)

setup (hdX)
checking of /boot/grub/stage1 exist.........no
checking of /grub/stage1 exist ..........no

Thank you for help
 
  


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
Loading DOS by GRUB without NT-loader? JZL240I-U Linux - Software 3 10-07-2005 01:58 AM
fedora core 4 won't boot from grub, fails when changing root silex_88 Fedora 3 10-01-2005 03:58 PM
Windows partition on Fedora Core 3? Magma_11 Linux - General 4 02-07-2005 12:30 AM
GRUB boot loader not loading jojotx0 Fedora 6 12-08-2004 10:12 AM
GRUB boot loader not loading jojotx0 Fedora 11 08-29-2004 12:48 PM


All times are GMT -5. The time now is 01:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration