Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed Fedora Core 2 (64Bit Version) on a system with Win XP Pro. After I rebooted I got a "GRUB Harddisk Error". I fixed the MBR with "fdisk /mbr" (because I needed my WinXP System). What can I do to boot Linux now (if it worked with a bootdisk, that would be fine as well)?
I have two Samsung HDDs (160 GB and 120 GB) and I tried both, to install Linux on HDD1 and on HDD2. I also tried SUSE 9.1, but I got the same error. Both HDDs seem to be physically okay (that's at least what several HDD-check-tools tell me) and I tried the installation several times.
Difficult to say what the problem is with the info you've given. Post your /etc/fstab and /boot/grub/grub.conf. That might help.
Also, read section 2.7 of the Red Hat Reference Manual on grub configuration.
You might also try googling up a copy of 'Zen and the Art of Using Grub'.
The most common problem I've seen setting up grub is that folks point grub to the /boot directory instead of /, the root of the file system. Grub wants to know first, where the root of the filesystem is, then second, where /boot/grub is.
You can boot the system with the installation disk in rescue mode. You may want to try this procedure: http://www.linuxquestions.org/questi...04#post1174104
to write grub back to the MBR. (But if you still get errors, you will have to run Windows fdisk /mbr again.)
When in rescue mode, it's possible to get some files off your Linux partitions and on to a floppy. Do you know how to do this, or do you need help on that?
Okay I'm just back from rescue mode. I changed to /mnt/sysimage because the system told me that my FC installation would be there.
So here is what the files looked like:
/mnt/sysimage/boot/grub/grub.conf
Code:
# Comments...
# boot = /dev/hda
default = 1
timeout = 10
splashimage=(hd1,1)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
root (hd1,1)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
@MartinN: I tried you hint and did the following:
I changed to /mnt/sysimage/sbin and gave the command grub-install /dev/hda. The answer was "/sbin/grub: Not found" (probably because it is in /mnt/sysimage/sbin, not in /sbin, right?).
You should issue the command
chroot /mnt/sysimage
before trying grub-install. chroot changes the root of the filesystem so, in your case, what was /mnt/sysimage becomes /
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.