Announcement

Collapse
No announcement yet.

<SOLVED> Grub: edit to include MSDOS boot

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    <SOLVED> Grub: edit to include MSDOS boot

    I have a fresh install Hardy as well as fresh install MSDOS 6.2 - (Don't ask me why but I need it for something archaic) I stopped bothering to multiple boot ever since Hoary so I never played around with Grub and fstab.

    I installed MSDOS first on a 2GB partition then installed Hardy after on the same HD.
    Install went fine but I cant select to boot MSDOS. MSDOS is just not there.
    How do i include it ?

    I can GUI mount my MSDOS partition and from the info it tells me that
    it is /dev/sda1 I'm pretty sure it's FAT16

    Here's my fstab file
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda5
    UUID=d2ac5d45-176b-4da2-b7da-39d2cf8a6680 / ext3 relatime,errors=remount-ro 0 1
    # /dev/sda6
    UUID=8ed2d847-4a69-4255-8c3f-947682618909 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


    Here's my Grub menu.1st
    title Ubuntu 8.04, kernel 2.6.24-16-generic
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=d2ac5d45-176b-4da2-b7da-39d2cf8a6680 ro quiet splash
    initrd /boot/initrd.img-2.6.24-16-generic
    quiet

    title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=d2ac5d45-176b-4da2-b7da-39d2cf8a6680 ro single
    initrd /boot/initrd.img-2.6.24-16-generic

    title Ubuntu 8.04, memtest86+
    root (hd0,4)
    kernel /boot/memtest86+.bin
    quiet

    thanks in advance for any help.

    #2
    Re: Grub: edit to include MSDOS boot

    I've not used MSDOS (recently), but ...

    Looks like one hard drive (=> no need for map commands).
    sda1 = MSDOS, as you indicated
    and in GRUB terms
    sda1 = (hd0,0)
    and we'll assume there is some sort of bootloader in the boot sector (= sector 1) of sda1 (?),

    If so, you might try booting MSDOS by chainloading:


    title MSDOS 6.2
    rootnoverify (hd0,0)
    makeactive
    chainloader +1


    That's it – try it.
    Chainloader +1 => GRUB should read the first sector of (hd0,0) = the boot sector (we hope) and pass control to that bootloader in sector 1.

    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: Grub: edit to include MSDOS boot

      Thanks Qqmike.
      Worked like a charm.

      I got up to the makeactive command last night before I read your post and it didnt work.
      so I guess the chainloader +1 command is the lucky charm.

      Thanks again

      Comment


        #4
        Re: &lt;SOLVED&gt; Grub: edit to include MSDOS boot

        Glad you're back on the road again, RenegadeAbe.

        (and looks like I got lucky with yet another GRUB tip that worked ... )
        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

        Comment

        Working...
        X