Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: help boot iso from grub??

  1. #1
    Join Date
    Mar 2008
    Location
    PA
    Beans
    55
    Distro
    Hardy Heron (Ubuntu Development)

    Exclamation help boot iso from grub??

    ok, i want to boot an ISO image in grub so i can install windows... i know, i know, windows sucks... i am aware of this, its just something i must do, i will be re-installing ubuntu. so please, dont ask why i am doing this, i just need help.

    i made a new partition (/dev/sda2), i formatted it to FAT32, mounted it (/media/disk), and i put the ISO on it.

    I dont know how to get GRUB to boot it. i looked in my /boot/grub/menu.lst
    and it is rediculous, i have too much on their, and i dont want to mess it up, so i need help, and ill post my menu.lst below.

    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu

    # Pretty colours
    #color cyan/blue white/blue

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro

    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,3)

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false

    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=

    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false

    ## ## End Default Options ##

    title Ubuntu 8.04, kernel 2.6.24-17-rt
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-17-rt root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro quiet splash
    initrd /boot/initrd.img-2.6.24-17-rt
    quiet

    title Ubuntu 8.04, kernel 2.6.24-17-rt (recovery mode)
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-17-rt root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro single
    initrd /boot/initrd.img-2.6.24-17-rt

    title Ubuntu 8.04, kernel 2.6.24-17-generic
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro quiet splash
    initrd /boot/initrd.img-2.6.24-17-generic
    quiet

    title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro single
    initrd /boot/initrd.img-2.6.24-17-generic

    title Ubuntu 8.04, kernel 2.6.24-16-rt
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-16-rt root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro quiet splash
    initrd /boot/initrd.img-2.6.24-16-rt
    quiet

    title Ubuntu 8.04, kernel 2.6.24-16-rt (recovery mode)
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-16-rt root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro single
    initrd /boot/initrd.img-2.6.24-16-rt

    title Ubuntu 8.04, kernel 2.6.24-16-generic
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd 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,3)
    kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro single
    initrd /boot/initrd.img-2.6.24-16-generic

    title Ubuntu 8.04, kernel 2.6.24-15-rt
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-15-rt root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro quiet splash
    initrd /boot/initrd.img-2.6.24-15-rt
    quiet

    title Ubuntu 8.04, kernel 2.6.24-15-rt (recovery mode)
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-15-rt root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro single
    initrd /boot/initrd.img-2.6.24-15-rt

    title Ubuntu 8.04, kernel 2.6.24-15-generic
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-15-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro quiet splash
    initrd /boot/initrd.img-2.6.24-15-generic
    quiet

    title Ubuntu 8.04, kernel 2.6.24-15-generic (recovery mode)
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-15-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro single
    initrd /boot/initrd.img-2.6.24-15-generic

    title Ubuntu 8.04, kernel 2.6.22-14-generic
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro quiet splash
    initrd /boot/initrd.img-2.6.22-14-generic
    quiet

    title Ubuntu 8.04, kernel 2.6.22-14-generic (recovery mode)
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5087dbce-20ad-49d2-b747-ff7fa60999cd ro single
    initrd /boot/initrd.img-2.6.22-14-generic

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

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Windows Vista Home Premium
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda2
    title Windows Vista/Longhorn (loader)
    root (hd0,1)
    savedefault
    makeactive
    chainloader +1
    Last edited by mjp216; May 19th, 2008 at 02:39 AM. Reason: disabled smileys

  2. #2
    Join Date
    Mar 2008
    Location
    PA
    Beans
    55
    Distro
    Hardy Heron (Ubuntu Development)

    Re: help boot iso from grub??

    anybody, i really do need help with this??
    somebody has to know.

  3. #3
    Join Date
    Apr 2007
    Location
    Cape Town (SA)
    Beans
    Hidden!

    Re: help boot iso from grub??

    I'm trying to do the same thing. The closest I'm come while googling was a suggestion of creating a new cd format partition, writing the iso to it, then chainloading to it in grub. But its not ideal and I don't know if it will work.

  4. #4
    Join Date
    May 2008
    Beans
    518

    Re: help boot iso from grub??

    ?? why not simply burn the ISO to cd? GRUB can only boot partitions/HDDs, and it certainly can't mount ISOs...

    dracayr

  5. #5
    Join Date
    Apr 2007
    Location
    Cape Town (SA)
    Beans
    Hidden!

    Re: help boot iso from grub??

    Its sometimes just a nuisance buring lots of cds when you're playing around with different distros. And in my case its because I want to install a new distro onto an old laptop with a broken cd drive, and which won't boot from usb. Grub can't mount iso's, but there should be a way to copy the contents of the iso to the hard drive and boot from it that way. I tried that, copying the contents to /newcd and using this code in grub:
    Code:
    root (hd0,5)/newcd/
    kernel /boot/vmlinuz-<whatever the rest of it was, can't remember  now>
    And it started booting, but then I got a kernel panic. Unfortunately I had to go out then but I'm going to carry on trying later. I think I need to add some arguments to the kernel command.

  6. #6
    Join Date
    Apr 2007
    Beans
    150
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: help boot iso from grub??

    Why not use a VM?

  7. #7
    Join Date
    Apr 2007
    Location
    Cape Town (SA)
    Beans
    Hidden!

    Re: help boot iso from grub??

    How would that help? I want to install it onto the hard drive, replacing the system I have at the moment.

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: help boot iso from grub??

    You can see if this thread helps :

    http://forums.whirlpool.net.au/forum...fm/925285.html

    See the last post.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    Join Date
    Dec 2006
    Location
    Oregon, US
    Beans
    1,541
    Distro
    Ubuntu Development Release

    Re: help boot iso from grub??

    I've never tried this, but I think you could use a partition as a virtual disk in VirtualBox, and then install XP from VirtualBox.

    This guy has intructions on how to use an actual partition as a virtual disk:

    http://blarts.wordpress.com/2007/12/...u-feisty-fawn/

  10. #10
    Join Date
    Feb 2007
    Location
    New York
    Beans
    894
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: help boot iso from grub??

    I'd like to know how to do this, too. I'm not sure why Grub wouldn't be able to mount an ISO if it knew the location on the disk. It has to understand file systems if it can access your menu.lst file, right?

    Another possibility might be burning the ISO to a USB flash drive, using http://unetbootin.sourceforge.net/?
    Last edited by Endolith; April 7th, 2009 at 03:00 AM.
    "Please remember to do things the Ubuntu way. There is always more than one solution to a problem, choose the one you think will be the easiest for the user. ... Try to think as a green user and choose the simplest solution." — Code of Conduct

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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