Find the answer to your Linux question:
Results 1 to 4 of 4
Hi. i re installed windows and now grub isnt working. i dot know how to reinstall the bootloader. i forgot to make a recovey disk. I tried starting my computer ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2003
    Posts
    12

    Grub Not Working


    Hi. i re installed windows and now grub isnt working. i dot know how to reinstall the bootloader. i forgot to make a recovey disk. I tried starting my computer on knoppix (this is were im typing this message) but i try the grub-install command and it doesnt work it says "cannot create directory /boot/grub: read only file system". when i chroot to the partition that has redhat 9 on it and try it. i get an error message that says " /dev/hda7 does not have a corresponding BIOS drive" Help anyone??

  2. #2
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    you need to mount /boot before you can read it properly do that then run:

    grub

  3. #3
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    read the tutorial section on recovering from what you have done.
    It's in the GRUB howto section that I wrote.

    have fun

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

  4. #4
    Linux Newbie
    Join Date
    Apr 2003
    Location
    Pontypridd, Wales
    Posts
    104
    My advice:

    boot to knoppix and create a grub floppy like so:

    Creating a GRUB boot floppy

    To create a GRUB boot floppy, you need to take the files `stage1' and `stage2' from the image directory, and write them to the first and the second block of the floppy disk, respectively.

    Caution: This procedure will destroy any data currently stored on the floppy.

    On a UNIX-like operating system, that is done with the following commands:



    # cd /usr/share/grub/i386-pc
    # dd if=stage1 of=/dev/fd0 bs=512 count=1
    1+0 records in
    1+0 records out
    # dd if=stage2 of=/dev/fd0 bs=512 seek=1
    153+1 records in
    153+1 records out
    #
    Boot from the floppy, this will bring you to a grub command line.

    at the command line example:

    #root $BOOT PARTITION
    #configfile /grub/grub.conf

    Replace $BOOT PARTITION with your boot partition e.g. (hd0,3)

    This should allow you to boot into redhat.

    Once you have done this re-install grub to your mbr and all should be well.

    GRUB how to can be found at http://www.mcc.ac.uk/grub/grub_toc.html#SEC_Contents

    Good luck, and keep the grub floppy for any future problems - leaning how to manipulate the GRUB command line is a usefull skill.

    nomar.
    \"One World, One Web, One Program.\" -- Advertisement for Internet Explorer.
    \"Ein Volk, Ein Reich, Ein Fuehrer.\" -- Adolf Hitler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •