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 recently installed Fedora Core 3 onto my laptop, dualbooting with Windows Xp Pro. It has been running smoothly for a few weeks, and as I had left some free space on my hd for my extra files on windows, I decided to partition that free space using the Windows Installation CD. When I had created the new [raw] partition, I rebooted the computer to go into Windows and see if it recognised the new partition. I expected the GRUB window to come up as usual, asking me whether I wanted to boot into FC3 or Windows, but my computer just went straight from my BIOS password to Windows!
I have looked at the GRUB file from my live KNOPPIX cd, and there doesn't seem to be anything wrong with it, but something must have got screwed up when I put in the Windows cd. Can someone please tell me how, if there is any way possible, to get the GRUB screen to come up again on boot, instead of going straight into Windows, because I can't get into Fedora now! Thanks in advance,
windows is notorious for overwriting the boot sector when you need to re-install and you already have linux booting using lilo or grub... maybe when you booted to the disc it did the same. if you have the boot floppy you can still get to your linux partition. i also know that there is a way to fix grub and boot back into it but i don't know how... you may need to search around here and look for a thread.
Thanks joesbox for your reply. I never made the boot floppy, because my laptop doesn't have a floppy drive! At least I now know that there is still some hope...does anyone else please know how to fix grub to boot back into it?
1. Boot your machine from your boot media (cdrom1) and select linux rescue to install to the command prompt.
2. Redhat displays a message “If you would like to make your system the root environment, run the command: chroot /mnt/sysimage”. Go ahead and do that.
3. At the prompt, type rdev and make a note of the output. For example, if it looks like this... " /dev/hda2 / " . This indicates that the Redhat root partition is on the first drive and second partition. You need that info for the next step.
4. Get into the grub configuration utility with the command: grub.
At the prompt grub> type the command: root (hd0,1) ; this will tell grub that the linux files it needs are on the first hard disk (hd0) and the second partition (1) of that drive. Change this to meet your configuration needs. For instance, if the linux files are on the second hard disk (hd1), first partition (0) of that drive then type root (hd1,0).
If you selected the correct location (where linux is installed), you should see a message as follows.... Filesystem type is Ext2fs, partition type is 0x83.
Then issue the following command: setup (hd0) ; this will install grub in the MBR of your first hard disk. You could change that to use the /boot partition if desired.
Exit the grub utility with the command: quit
You can also try to use grub-install /dev/hda to install grub on your first hard drive's MBR, but that doesn't always work.
Thank you very much for your help. homey, but is the "boot media (cdrom1)" my Fedora Core 3 installation DVD or is it something else, because when I installed Fedora I didn't make any recovery disks of any kind whatsoever. Again, thank in advance,
Guess that should learn me to read the post. Anyway, things have just become better as FC3 is a bit more automated in rescue mode.
Boot up with the DVD or cdrom1 and type: linux rescue.
FC3 should autodetect your system and automatically mount /mnt/sysimage.
So all you have to do after that is type: chroot /mnt/sysimage
Then type: grub-install /dev/hda
Then type reboot
homey, I tried exactly what you said, and everything went smoothly, even the grub installation reported no errors, but I have just restarted my computer and it has booted straight into windows yet again. Do you know of anything else I can do to fix it? Thank you very much for your help so far.
Thanks, but should I try the fdisk -l in the "linux rescue" of the DVD, and then move onto KNOPPIX and read the grub.conf (/boot/grub/grub.conf), or should I do both in KNOPPIX?
Sorry for triple-posting! (lol), but here's my grub.conf file:
Code:
#grub.conf generated by anaconda
#
#Note that you do not have to rerun grub after making changes to this file
#NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.667.img
title Other
rootnoverify (hd0,0)
chainloader +1
The "Other" is Win XP Pro. Thanks in advance, and sorry for triple-posting!
Boot up with the DVD or cdrom1 and type: linux rescue.
FC3 should autodetect your system and automatically mount /mnt/sysimage.
So all you have to do after that is type: chroot /mnt/sysimage
Then type: grub-install /dev/hda
Then type reboot
Ok, so maybe plan B will work.
Boot up with the DVD or cdrom1 and type: linux rescue.
FC3 should autodetect your system and automatically mount /mnt/sysimage.
So all you have to do after that is type: chroot /mnt/sysimage
Then type: grub
#that should get you to a prompt like this ... grub> , so enter root (hd0,1)
grub> root (hd0,1)
#you should see a message like this ... Filesystem type is Ext2fs, partition type is 0x83.
#If you saw a message to that, good! now enter setup (hd0)
grub> setup (hd0)
grub> quit
then reboot
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.