Find the answer to your Linux question:
Results 1 to 5 of 5
Helo guys! i have read and searched for this before i decided to post this and none of them suit my case. i have a dual booting debian etch 4.0 ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    49

    Reinstallind grub on debian

    Helo guys!
    i have read and searched for this before i decided to post this and none of them suit my case.
    i have a dual booting debian etch 4.0 and xp on two hard drives, the first one is the debian one and the second the xp one.so due to some reasons i was forced to reinstall my xp then my grub was overridden.
    isn't there a command to recover it after i boot with its dvd or the xp cd? by the way i downloaded the supergrubdisk in case but the idea is to first know how to do it.thanks

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Boot up from SuperGRUB CD and select Fix Linux Boot Loader (GRUB) option. It will re-install GRUB.

    Btw, You have installed GRUB in MBR of Hard Disk having Windows OS installed but one should install GRUB in Linux HD only. That way, both OSes remain independent of each other and you wont have to re-install GRUB after fixing problem of Windows HD.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    Quote Originally Posted by Highjo View Post
    i have a dual booting debian etch 4.0 and xp on two hard drives, the first one is the debian one and the second the xp one.so due to some reasons i was forced to reinstall my xp then my grub was overridden.
    Please clarify a few things. Your first drive is Linux-only, no Windows partitions on it? I'm asking this because Windows, if installed to a secondary drive puts some files on first drive, if I remember correctly.

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    49
    the first drive has 4 partitions the first one is ext2 or ext3 don't really remember and the others are all ntfs.Did that to enable both Os to access the data.

    devil_casper with the Super Grub disk would i be able to do what u are suggesting?as far as i know the grub is installed during the installation of the linux.You mean that it's installed on the windows HD that why i'm having this problem?

  5. #5
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    When a computer boots it executes the POST in BIOS, which in turn runs the code on the MBR (master boot record, first 512 B sector) of the first HDD. So even if you install an OS on second, third ... drive the boot code goes still to the first disk. Windows overwrote the GRUB code on MBR of first disk. There is a number of ways to restore it, never tried the SuperGRUB myself but it seems to be a popular application for this job.

Posting Permissions

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