LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   made a mistake trying to install grub using tutorial.. (https://www.linuxquestions.org/questions/linux-software-2/made-a-mistake-trying-to-install-grub-using-tutorial-519732/)

tnewman1972 01-16-2007 04:34 AM

made a mistake trying to install grub using tutorial..
 
Hi everyone,

i just installed fedora core 6 and i, like others, experienced that it doesnt install grub to the correct place on non-standard hard drive setups.

i did a search on the web to try and find help on how to do it- and found another person with the same issue.

They found a fix and placed a link to the totorial that helped them.

Now, this is a good tutorial explaining fedora's ''linux rescue'' and how to boot into the grub file to edit it and also tell the PC where the OSs are...BUT, my HDD setup is not exactly standard and due to that i mustve got something wrong in there.

Now, when i boot up, i get the word "GRUB" written across my screen and on every line also....looping to infinity. like a great big GRUB carpet.

I am hoping that someone can assist me in putting in the correct parameters to restore the settings?

i tried using the winxp install disk and recovery console and fixmbr, and it doesnt work.

my hard drives are as such.

1 IDE as primary master which i put in today as it used to be an external drive.
1 SATA 1 as primary SATA which has WinXP on it and is partitioned into 2 equal halves.
1 SATA 2 as secondary SATA with nothing on it except NTFS formatted an also split into 2 partitions.


i installed fedora core 6 onto the IDE drive.

whilst editing the grub file, it requires commands like ''setup (hd0) and root (hd0,1) .

now i figured they related to my drives a little differently so made the necessary alterations..to my horror!

i ''think'' that my drives are designated hd0 (IDE), hd1 SATA1 part 1, hd2 SATA 1, part 2, hd3 etc....

but i also note that linux denotes them as hda, sda, sdb...

this i where i am confused.

can someone please help me edit that file correctly to bring me back to scratch?

, my boot order is hard disk, cd rom, floppy.

the disks are listed in the bootup page from IDE first down to CDROM last, buti have no idea if that is the actual sequence of boot up, as the bios doesnt give me an option to set the actual sequence.

Thanks for reading- i hope that someone out there can help this noob.

Cheers,

Tim

syg00 01-16-2007 05:43 AM

From rescue mode, enter the following commands, and post the output (all of it) for us
Code:

/sbin/fdisk -l
cat /boot/grub/menu.lst
cat /boot/grub/device.map


vincent.feltkamp 01-16-2007 05:57 AM

mistake in Grub
 
Hello, t would be better if you listed your current grub menu here.
Meanwhile, lets hope this helps you:
Linux refers to Ide disks as hda1 (first partition on first disk), hda2 (second partition on first disk), ..., hdb1 (second disk, first partition), and to Sata disk partitions (and usb disks) as sda1, sda2, sdb1, ... but Grub does not follow this. So forget that until you are in Linux.

I understand Grub refers to (hd0,0) for first disk, first partition. Whether Sata disks are referred to differently i do not know, I have no sata disks.
If you do not know which disk is disk 0, I set up the default boot entry to linux, and try successively (hd0,0) and work my way up thru (hd1,0), (hd2,0). As The linux disk is not partitioned, trying hd0,1 is not needed.

my guess is that hd0,0 should be the one you need for FClinux, as you say it is the master disk. Once you get Linux up, you can edit "menu.lst" or the corresponding file on FC) easily to set up the windows partitions, using chainloader.
good luck!

jschiwal 01-16-2007 05:58 AM

A useful feature of the grub shell is the auto completion feature. On my desktop, when grub was first booting, it had a different idea of which drive was which than after it was booted. If you can boot up with a rescue disk, and mount your regular root partition, take a look at the /boot/grub/device.map file. It contains a /dev/sdX to (hdX) mapping that grub uses when booting.


All times are GMT -5. The time now is 08:18 AM.