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 have not installed RH 9 yet but was going to do the same thing you gentlemen have done,,,,,,but maybe not now. I sure hope someone can give us a hand......
one reason windows would have failed to boot is if u used partition magic (or whatever other partitioning software) to set the linux partition active...
go into windows, and make the windows partition active, AlWaYs, windows wants to be the primary system at all times, so just let it be
use the software to make sure that windows will always be active; then disable boot magic (u should not use it for redhat, too complicated)
then, if u don't have a boot disk, just pop in cd 1 of redhat, type linux rescue, follow the onscreen instructions, do a chroot /mnt/sysimage when u get to a prompt, and type grub-install /dev/hda
yes, and also post the /boot/grub/grub.conf contents and results from fdisk -l (which u may have to exit x windows to do, do this by hitting ctrl alt f1 (f1-f6 u can use)
After I've typed grub-install /dev/hda and attempt to reboot to windows, I get a system disk error and it asks me to reinsert the disk and press any key.
I should also probably mention that I can't get any of the network devices to work (even though I followed the manual) so I have to use windows to get online.
Sorry, the formatting might not be the best because I had to copy the info to emacs, save to disk then open using notepad.
fdisk -l
Code:
[root@localhost root]# fdisk -l
Disk /dev/hda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 * 11 2969 23768167+ 7 HPFS/NTFS
/dev/hda3 5 10 48195 6 FAT16
/dev/hda4 2970 3648 5454067+ f Win95 Ext'd (LBA)
/dev/hda5 2970 2982 104391 83 Linux
/dev/hda6 2983 3588 4867663+ 83 Linux
/dev/hda7 3589 3648 481918+ 82 Linux swap
Partition table entries are not in disk order
[root@localhost root]# /boot/grub/grub.conf
bash: /boot/grub/grub.conf: Permission denied
[root@localhost root]# /boot/grub/device.map
bash: /boot/grub/device.map: Permission denied
grub.conf
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,4)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,2)
chainloader +1
device.map
Code:
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda
Not exactly, I have to place the BootMagic rescue disk in (because I, stupidly, don't have an XP rescue disk) which negates the grub-install command and re-enables BootMagic which allows me to restart again and choose windows.
Try setting /dev/hda5 (wherever your /boot is) to active aftering installing grub back into mbr
and change the rootnoverify line into (hd0,2) (wherever your ntldr,boot.ini,ntdetect.com is located)
I read somewhere that Grub was the default boot loader for Linux. Grub would not work in a dual boot environment. I have Linux RH 8 and I was using LiLo, but when I reformated and re-installed Win XP Pro, it did something to LiLo. So now I boot from a disk, which I have also heard a lot of people recommend. I hope this helps, as I'am also a n00b at this. MasterC is one of the mods and has helped me a lot with Linux and such, you can always drop him a line.
/boot/grub/grub.conf is a file (including the full path).
To view the contents of the file, type:
Code:
more /boot/grub/grub.conf
Quote:
Grub would not work in a dual boot environment. ... So now I boot from a disk, which I have also heard a lot of people recommend.
Someone is lying to you.
If you re-install windows on a PC with Linux, windows will overwrite the MBR (which is where all bootloader including Grub and Lilo are installed) with its own bootloader.
To install Lilo in the MBR, type:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.