Find the answer to your Linux question:
Results 1 to 8 of 8
I have ubuntu gutsy and windows xp on hd1, did a fresh install of Debian 4.0 and put it on sd1 then grub on MBR. Now when I boot up ...
  1. #1
    jgz
    jgz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    41

    Angry Help with MBR Debian fresh install

    I have ubuntu gutsy and windows xp on hd1, did a fresh install of Debian 4.0 and put it on sd1 then grub on MBR. Now when I boot up I get error message 21 from grub. How can I recover all the operating systems with grub. Before I think grub was on hd0.

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Quote Originally Posted by jgz View Post
    I have ubuntu gutsy and windows xp on hd1, did a fresh install of Debian 4.0 and put it on sd1 then grub on MBR. Now when I boot up I get error message 21 from grub. How can I recover all the operating systems with grub. Before I think grub was on hd0.
    I'd give the SuperGrub CD a try to start with. You could also give this a try HOWTO Restore GRUB to find installed versions of grub.

    If you need more help I suggest you boot from a live CD and post output from fdisk -l together with what you tried.

  3. #3
    jgz
    jgz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    41

    That just might help

    I will give both of those tips a try. (thanks)

  4. #4
    jgz
    jgz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    41

    Lightbulb Got super grub cd it worked part way

    It restored my original grub, so I have ubuntu and windows xp. Now how do I get my Debian install active on my grub menu.

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Boot up Ubuntu and mount / ( /boot, if you created ) partition of Debian.
    Post the names of files that are stored in /boot of Debian.

    Post the output of sudo fdisk -l command too.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    jgz
    jgz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    41

    Results of sudo fdisk -l

    Heres results of sudo fdisk -l below. In /boot dir for Debian I have following files config-2.6.18-5-686 config-2.6.18-5-686.bak initrd.img-2.6.18-5-686 System.map-2-6-18-5-686 vmlinuz2-2.6.18-5-686 and no Grub dir. I was able to boot Debian from Super Grub CD but could not add it to my Grub start up of Ubuntu Gutsy. At this point I need to add it to Grub start up menu.

    Disk /dev/hda: 61.4 GB, 61492838400 bytes
    255 heads, 63 sectors/track, 7476 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xc8654145

    Device Boot Start End Blocks Id System
    /dev/hda1 1 2350 18876343+ 83 Linux
    /dev/hda2 5875 7475 12860032+ 7 HPFS/NTFS
    /dev/hda3 2351 3566 9767520 5 Extended
    /dev/hda5 * 2351 3323 7815591 83 Linux
    /dev/hda6 3324 3566 1951866 82 Linux swap / Solaris

    Partition table entries are not in disk order

    Disk /dev/sda: 18.3 GB, 18360785920 bytes
    64 heads, 32 sectors/track, 17510 cylinders
    Units = cylinders of 2048 * 512 = 1048576 bytes
    Disk identifier: 0xe760e760

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Add this code in Ubuntu's menu.lst file
    Code:
    title Debian
    root (hd0,4)
    kernel /boot/vmlinuz-2.2.6.18-5-686 root=/dev/hda5 ro
    initrd /boot/initrd-2.2.6.18-5-686
    Save file and reboot machine. In case it doesn't work, post the contents of Debian's /etc/fstab file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    jgz
    jgz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    41

    Casper its fixed

    What I did was a fresh install and it worked on the ide drive. When I first installed it was to my scsi drive which screwed up my grub mbr. Thanks for the help.

Posting Permissions

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