Find the answer to your Linux question:
Results 1 to 3 of 3
I recently installed Windows 98 on my Debian computer and, obviously, I destroyed my MBR. What is the best way to reinstall grub? I have a knoppix CD or two ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    150

    Reinstall Grub?

    I recently installed Windows 98 on my Debian computer and, obviously, I destroyed my MBR. What is the best way to reinstall grub? I have a knoppix CD or two lying around and would prefer to se them. I REALLY don't feel like downloading Debian for three hours through the net-inst.

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    This is quite simple, and quite a handy thing to learn.

    1. Boot up off our knoppix live CD.
    2. Make (or use an existing) mount point for your existing system, /mnt/sysrecue or summat like that.
    3. Mount your own / on /mnt/sysrescue ('mount /dev/hda2', or whatever your / is)
    4. Mount your /boot on /mnt/sysrescue/boot ('mount /dev/hda1', or whatever your /boot is)
    5. Chroot to your system with 'chroot /mnt/sysrescue'
    6. Run the grub installer, 'grub-install'.
    7. Reboot, not forgetting to remove the knoppix disk from the CD, and you should have your system back.

    Dont forget that you may need to add entries to your /boot/grub/grub.conf for the windows system to boot, but if it's a re-install it should already be in there.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    150
    shoot.... I think that I accidentally destroyed my /usr partition during the installation (I repartitioned using fdisk without thinking when the FAT32 partition I set up was too large to use Win98 on). Is there any way to rebuild my /usr without reinstalling everything with a net-inst? Is there a way to keep the files I have stored elsewhere intact, but install everything missing in my /usr?

Posting Permissions

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