 |
 |
 |
 |
| Installation and Live Media Help with Installation & Live Media (Live CD, USB, DVD) problems. |

9th August 2005, 09:47 AM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
Matrix revisited
Hi, I posted last week about a lot of random characters displayed on booting from a FC4 install. I wonder if asking Partition Magic 7 to fix an anomaly on the disc, after it made a Linux partition was a mistake.
If it has cocked up the MBR (all attempts to reformat the second hdd upon which I'm attempting to install gets nowhere) how do I go about fixing it?
Cheers,
|

9th August 2005, 10:32 AM
|
 |
Registered User
|
|
Join Date: Mar 2005
Location: England
Posts: 867

|
|
|
Boot up the first disk, type "linux rescue," press enter, choose "mount my system" or whatever, and run:
bash$ chroot /mnt/sysimage
bash$ grub-install /dev/hda
Might not be /dev/hda if you're not using (an) IDE hard drive[s].
|

9th August 2005, 10:59 AM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
thanks let me just check this out,
hda holds the Xp installation (NFTS), hdc is the one I'm aiming to install on. Are you suggesting I boot from the FC4 DVD and then install grub again on the MBR of hda?
|

9th August 2005, 11:31 AM
|
|
Registered User
|
|
Join Date: May 2005
Location: Ottawa, Canada
Age: 50
Posts: 42

|
|
|
What he is suggesting is to boot into rescue mode. when you get the Linux prompt when booting the DVD type "linux rescue". It will search for your install and tell you where it is.
One thing: During your install where did you select grub to install to and also did you let it install to the MBR of hda or hdc? Some people use the Bios to switch boot drives as you may be doing.
Do the chroot command as above. Then try grub-install /dev/hda
Have you actually installed linux on hdc yet?
|

9th August 2005, 12:05 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
thanks for this,
I've tried installing Grub on both the MBR of hda and on hdc, neither make any difference.
In rescue mode it shows the system's been mounted under mnt/sysimage. and suggests I go into a shell and run the command chroot/mnt/sysimage for it to reboot.
Is this a safe option? will I still be able to get into XP?
|

9th August 2005, 12:33 PM
|
|
Registered User
|
|
Join Date: May 2005
Location: Ottawa, Canada
Age: 50
Posts: 42

|
|
|
So, you have installed FC4, good. Can you set your PC to boot from either hda or hdc? If you can do this you will be able to go into rescue mode with your Windows XP CD and do the fixmbr thing (though the commands are a little different now with XP)
All that the shell command is telling you that it will mount the drive as the "/" or root of the directory structure when you do the chroot command. This can make it a little easier to do any work you need to for fixing the setup.
When you installed FC4 did you go into the grub set up options and tell the system how you had you PC set up to boot? This can affect the boot-ability, grub.conf, and what MBR grub gets written to.
When booting from hdc, what do you get (after you have "grub-install /dev/hdc")? do you get a GRUB> prompt or anything similar?
|

9th August 2005, 12:44 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
as you rightly guessed I've been changing the BIOS boot options so can chose between hda and hdc.
I've installed so many times I'm not sure what I told Grub I think it's not on hda MBR and it certainly detected the XP boot though I'm not sure which I set as default.
When booting form hdc there's just a string of apparrently random charavters on the screen hence the ref to the Matrux.
I've now got a shell prompt in rescue mode what spell should I write?
|

9th August 2005, 01:00 PM
|
|
Registered User
|
|
Join Date: May 2005
Location: Ottawa, Canada
Age: 50
Posts: 42

|
|
|
once you've "chroot /mnt/sysimage" type "grub"
You will now be at the GRUB> prompt. grub sees hd's a little different: hd0, hd1, hd2....
type "cat (hd2,0)/grub/grub.conf" to see if grub sees everything. It should print on screen the contents of the file. if not then try hd0, hd1, etc till you find it.
once you've found it, you've found where grub see's itself and you can continue.
at the grub prompt type: (replacing the "?" with the appropriate number)
root (hd?,0)
setup (hd?)
quit
And try rebooting by typing exit twice and the command prompt.
|

9th August 2005, 01:22 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
Dave,
all that's done now seemed to go smoothly, I've just rebooted and entered the BIOS. Where should I now Boot from?
|

9th August 2005, 01:26 PM
|
|
Registered User
|
|
Join Date: May 2005
Location: Ottawa, Canada
Age: 50
Posts: 42

|
|
|
boot from hdc. You may or may not get into fedora but it will be a start to see what is happening now.
If it doesn't boot, post what happens and then I'll see what I can suggest.
|

9th August 2005, 01:40 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
booting 'other'rootnoverify (hd0,0)
chainloader +1
Error 13 Invalid or unsupported executable format
Press any key...
for a moment there I was getting a bit excited. But why's it looking at (hd0,0) thought grub and FC4 were on (hd1,0)
|

9th August 2005, 01:46 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
pressing enter gave me a choice of fedora or other to boot from I tried Fedora then got hte message
Booting Fedora core(.......)
root (hd1,0)
Filesystem type unknown, partition type 0x7
kernel /vmlinuz-2.6.11-1.1369_fc4 ro root=/dev/Vo1Group00/logVo00 rhgb
Error17 Cannot mount selected partition
press any key
|

9th August 2005, 01:59 PM
|
|
Registered User
|
|
Join Date: May 2005
Location: Ottawa, Canada
Age: 50
Posts: 42

|
|
|
OK, now we are getting somewhere. What grub is trying to do is boot hd1 whereas you have switched your boot drives and when it reads the grub.conf file it is trying the second hd which according to your bios is the windows drive. Yes, it's confusing, the same thing happened to me on another PC.
Now, boot into rescue again, chroot /mnt/sysimage and then cd /boot/grub.
now fire up your favorite editor and change the line root (hd1,0) to root (hd0,0) as according to your bios this is the first hd to boot from.
for the "other" which I think you have selected as the default you will have to change the hd that it refers to to hd1.
While you are in there remove the "#" from in front of the hidemenu and increase your timeout to 15.
For editors, I personally like "joe". Pressing ctrl+k then "h" gives you the help menu. Now reboot and boot from hdc, your fedora drive and see what happens.
|

9th August 2005, 02:17 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
Hmm,
no grub file in the root directory - ls root shows 'anaconda-ks.cfg install.log install.log.syslog'
and now I've changed directory to root, how do I get out.
And if the 'other' is indeed the Windows installation I'm sure it's on hd0 (hda)
Mother never told me it would be this bad Dave - PS thanks for your continued support
|

9th August 2005, 02:21 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 17

|
|
|
Hold it I'm being thick I was looking in root not boot editing now
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 05:20 (Monday, 20-05-2013)
|
|
 |
 |
 |
 |
|
|