Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 68

Thread: Boot LiveCD iso from grub2

  1. #21
    Join Date
    Dec 2008
    Location
    kolkata
    Beans
    64
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Boot LiveCD iso from grub2

    Quote Originally Posted by Progressive View Post
    That does work for me, but only if you are using an ISO on the same partition as the boot partition.

    When I try to use a different one, it drops to busybox.

    I am trying to use the ISO to resize my boot partition though, so I don't want the partition locked.

    mine currently looks like this:

    menuentry "Ubuntu LiveCD 9.10 64bit" {
    loopback loop (hd1,1)/edward/kubuntu-9.10-desktop-amd64.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/dev/sdb1/edward/kubuntu-9.10-desktop-amd64.iso noeject n$
    initrd (loop)/casper/initrd.lz
    }



    I'm not sure what to type into the iso-scan/filename section. Nothing seems to work.




    I made it work on other partitions also. Just have a look in the following configuration file.

    #This has to be put in your grub.cfg
    #The drive is an NTFS partition. Therefor I am using "insmod ntfs"
    #The partition is on my first harddrive and on 6th partition (sda6).
    #It is described by (hd0,6)
    # If it is a Linux partition use "insmod ext2"
    #The files vmlinuz and initrd.gz for puppy linux is kept on sda6.
    menuentry "Puppy On drive E:" {
    insmod ntfs
    set root=(hd0,6)
    linux /vmlinuz
    initrd /initrd.gz
    }

    #The drive is an NTFS partition. Therefor I am using "insmod ntfs"
    #The partition is on my first harddrive and on 6th partition (sda6).
    #It is described by (hd0,6)
    # If it is a Linux partition use "insmod ext2"
    #The files vmlinuz and initrd.gz for puppy linux is kept on "sda6/Pup".

    menuentry "Puppy-Mac On drive E:" {
    insmod ntfs
    set root=(hd0,6)
    linux /Pup/vmlinuz
    initrd /Pup/initrd.gz
    }


    #The drive is an NTFS partition. Therefor I am using "insmod ntfs"
    #The partition is on my first harddrive and on 5th partition (sda5).
    #It is described by (hd0,5)
    # If it is a Linux partition use "insmod ext2"
    #The file "ubuntu-9.10-desktop-i386.iso" is kept on sda5/SOFTWARES/Ubuntu/.

    menuentry "Ubuntu Live 9.10 on D:" {
    insmod ntfs
    set root=(hd0,5)
    loopback loop /SOFTWARES/Ubuntu/ubuntu-9.10-desktop-i386.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-9.10-desktop-i386.iso noeject noprompt --
    initrd (loop)/casper/initrd.lz
    }

    #The drive is an NTFS partition. Therefor I am using "insmod ntfs"
    #The partition is on my first harddrive and on 5th partition (sda5).
    #It is described by (hd0,5)
    # If it is a Linux partition use "insmod ext2"
    #The file "ubuntu-9.04-desktop-i386.iso" is kept on sda5/SOFTWARES/Ubuntu/.

    menuentry "Ubuntu Live 9.04 on D:" {
    insmod ntfs
    set root=(hd0,5)
    loopback loop /SOFTWARES/Ubuntu/ubuntu-9.04-desktop-i386.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/SOFTWARES/Ubuntu/ubuntu-9.04-desktop-i386.iso noeject noprompt --
    initrd (loop)/casper/initrd.gz
    }



    Hope you understand this and it works..


    @Progressive

    If you want to resize your boot partition , then you must boot from a different hard drive or some usb flash. Then only you will get an exclusive access to your main hard drive to perform partition resize. For booting from USB you can use grub2 with an ubuntu iso but it is a long process rather I would suggest that you use unetbootin to creat usb flash bootable with ubuntu iso or even you can try ubuntu default "System/Administration/USB start up disk creator"

    For using grub2 with iso first you have to install grub2 in flash drive and put the necessary iso on it. Then make a grub.cfg file on it and configure it as said in the first section.

    Wish you a good luck.....
    Last edited by musarraf172; November 24th, 2009 at 01:16 PM.

  2. #22
    Join Date
    Dec 2008
    Location
    kolkata
    Beans
    64
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Boot LiveCD iso from grub2

    Anybody tried to boot Fedora Core 12 iso with grub2??

    I am having root file system mounting error.

    The configuration is like this :



    menuentry "Fedora Core 12 on E:" {
    insmod ntfs
    set root=(hd0,6)
    loopback loop /Transmission/Fedora-12-i686-Live/Fedora-12-i686-Live.iso
    linux (loop)/EFI/boot/vmlinuz0 root=live:LABEL=Fedora-12-i686-Live rootfstype=auto ro liveimg quiet rhgb boot=EFI/boot iso-scan/filename=/Transmission/Fedora-12-i686-Live/Fedora-12-i686-Live.iso noeject noprompt --
    initrd (loop)/EFI/boot/initrd0.img
    }

  3. #23
    Join Date
    Jun 2008
    Location
    Sevastopol, Ukraine
    Beans
    134
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot LiveCD iso from grub2

    Here is my experience:

    DVD does not supported by grub2
    Code:
    menuentry "Ubuntu DVD Live 9.10 32bit" {
    	insmod ext2
    	set root=(hd1,1)
    	loopback loop /boot/ubuntu-9.04-dvd-i386.iso
    	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/ubuntu-9.04-dvd-i386.iso noeject noprompt --
    	initrd (loop)/casper/initrd.lz
    }
    Ubuntu images Works !!!!
    Code:
    menuentry "xubuntu-9.10-desktop-i386.iso" {
    	insmod ext2
    	set root=(hd1,1)
    	loopback loop /boot/xubuntu-9.10-desktop-i386.iso
    	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/xubuntu-9.10-desktop-i386.iso noeject noprompt --
    	initrd (loop)/casper/initrd.lz
    }
    Gparted does not work:
    http://osdir.com/ml/grub-devel-gnu/2.../msg00143.html
    Code:
    menuentry "gparted-live-0.4.5-2.iso" {
    	insmod ext2
    	set root=(hd1,1)
    	loopback loop /boot/gparted-live-0.4.5-2.iso
    	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/gparted-live-0.4.5-2.iso noeject noprompt --
    	initrd (loop)/casper/initrd.lz
    }

  4. #24
    Join Date
    Dec 2008
    Location
    kolkata
    Beans
    64
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Boot LiveCD iso from grub2

    Quote Originally Posted by RomanIvanov View Post
    Here is my experience:

    DVD does not supported by grub2
    Code:
    menuentry "Ubuntu DVD Live 9.10 32bit" {
    	insmod ext2
    	set root=(hd1,1)
    	loopback loop /boot/ubuntu-9.04-dvd-i386.iso
    	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/ubuntu-9.04-dvd-i386.iso noeject noprompt --
    	initrd (loop)/casper/initrd.lz
    }
    Ubuntu images Works !!!!
    Code:
    menuentry "xubuntu-9.10-desktop-i386.iso" {
    	insmod ext2
    	set root=(hd1,1)
    	loopback loop /boot/xubuntu-9.10-desktop-i386.iso
    	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/xubuntu-9.10-desktop-i386.iso noeject noprompt --
    	initrd (loop)/casper/initrd.lz
    }
    Gparted does not work:
    http://osdir.com/ml/grub-devel-gnu/2.../msg00143.html
    Code:
    menuentry "gparted-live-0.4.5-2.iso" {
    	insmod ext2
    	set root=(hd1,1)
    	loopback loop /boot/gparted-live-0.4.5-2.iso
    	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/gparted-live-0.4.5-2.iso noeject noprompt --
    	initrd (loop)/casper/initrd.lz
    }


    Your gparted live will not work because the "boot" and "initrd" parameter are wrong.....

    You have given as "boot = casper"
    "intrd (loop)/casper/initrd.lz"
    boot parameter points the folder where the kernel files are available ( i.e vmlinuz and initrd ). Casper is not the folder for kernel files in gparted.

    More over the kernel files for gparted are different not initrd.lz

    "casper and initrd.lz " is specifically only for ubuntu 9.10 ...

    Please check the kernel folder for gparted..


    For DVD boot , I have not tried yet.. I will check that..

  5. #25
    Join Date
    Oct 2007
    Location
    Vancouver, BC Canada
    Beans
    69
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Boot LiveCD iso from grub2

    Anyone figure out how to install using the Server ISO?

    Here's my grub2 entry, however the install fails at detecting the CD-ROM drive.
    Code:
    menuentry "Ubuntu 9.10 Server 32bit" {
     loopback loop /boot/iso/ubuntu-9.10-server-i386.iso
     linux (loop)/install/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-9.10-server-i386.iso noeject noprompt --
     initrd (loop)/install/initrd.gz
    }
    Also, here's a simply entry for g4u for anyone interested.
    Tried version 2.4, but it stalled out and wouldn't respond to keyboard input for some reason.
    Code:
    menuentry "g4u 2.3" {
      loopback loop /boot/iso/g4u-2.3.iso
      netbsd (loop)/netbsd
    }

  6. #26
    Join Date
    Dec 2008
    Location
    kolkata
    Beans
    64
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Boot LiveCD iso from grub2

    Quote Originally Posted by KillaB7 View Post
    Anyone figure out how to install using the Server ISO?

    Here's my grub2 entry, however the install fails at detecting the CD-ROM drive.
    Code:
    menuentry "Ubuntu 9.10 Server 32bit" {
     loopback loop /boot/iso/ubuntu-9.10-server-i386.iso
     linux (loop)/install/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-9.10-server-i386.iso noeject noprompt --
     initrd (loop)/install/initrd.gz
    }
    Also, here's a simply entry for g4u for anyone interested.
    Tried version 2.4, but it stalled out and wouldn't respond to keyboard input for some reason.
    Code:
    menuentry "g4u 2.3" {
      loopback loop /boot/iso/g4u-2.3.iso
      netbsd (loop)/netbsd
    }


    For your ubuntu server check the "boot" parameter . You have given as "casper".. But kernel files folder are poited to "install" folder...

    For netbsd you did not specify the kernel files.

    Can you tell the folder name in the iso where the kernel files (vmlinuz and initrd) are residing ??

    A menu entry in grub2 has the following important parameters

    insmod -----> defines the partition type from where it will boot
    set root----> defines the root
    loopback-----> monuts the iso
    linux -------> points the linux kernel file in general to vmlinuz ( the name 'vmlinuz' may vary for different os..
    initrd ------> points to the initial ram image to be loaded

    Please read the grub2 introductions available in forum....

  7. #27
    Join Date
    Oct 2007
    Location
    Vancouver, BC Canada
    Beans
    69
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Boot LiveCD iso from grub2

    Quote Originally Posted by musarraf172 View Post
    For netbsd you did not specify the kernel files.

    Can you tell the folder name in the iso where the kernel files (vmlinuz and initrd) are residing ??
    Actually that's all you need for g4u. The iso only contains two files: boot and netbsd.
    Both 2.3 and 2.4 boot fine, but 2.4 errored out on two different machines.

    EDIT: Looks like the 2.3 image only contains two files, but the 2.4 image contains many more.


    Thanks for the server entry help! I'll give it another try.
    Last edited by KillaB7; December 4th, 2009 at 05:27 AM.

  8. #28
    Join Date
    Dec 2008
    Location
    kolkata
    Beans
    64
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Boot LiveCD iso from grub2

    Quote Originally Posted by KillaB7 View Post
    Actually that's all you need for g4u. The iso only contains two files: boot and netbsd.
    Both 2.3 and 2.4 boot fine, but 2.4 errored out on two different machines.

    EDIT: Looks like the 2.3 image only contains two files, but the 2.4 image contains many more.


    Thanks for the server entry help! I'll give it another try.
    Dont forget to post your result...

  9. #29
    Join Date
    Dec 2008
    Location
    kolkata
    Beans
    64
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Boot LiveCD iso from grub2

    An Update ::

    I have got success to boot Fedora 12 iso with grub2 in a different manner.

    To boot FC12 iso with grub2 loopback, it does not recognize the 'root' parameter as looped iso . FC12 only accepts any linux partion or actual cdrom as root parameter. So I tried the following trick.

    1. Extract the "isolinux" and "LiveOS" folders from FC12 iso on your ubuntu root/

    2. Then add the following entry in /etc/grub.d/40_custom



    menuentry "Fedora Core 12 live on ubuntu root:" {
    insmod ext2
    set root=(hd0,3)
    linux /Fedora-12-i686-Live/isolinux/vmlinuz0 root=UUID=6e9bf6ba-f80a-4009-81c8-fe0f21f48c66 rootfstype=auto ro liveimg quiet rhgb rd_NO_LUKS rd_NO_MD noiswmd
    initrd /Fedora-12-i686-Live/isolinux/initrd0.img
    }

    Do not forget to change the UUID with your linux partition's UUID where you have extracted the isolinux and LiveOS folders

    3. Run " sudo update-grub2"

    4. reboot.
    5. Now you have the FC12 option to boot.

    Additionally you can omit the "quiet rhgb rd_NO_LUKS rd_NO_MD noiswmd" to get a non quiet boot..


    Last edited by musarraf172; December 4th, 2009 at 08:08 PM.

  10. #30
    Join Date
    Oct 2007
    Location
    Vancouver, BC Canada
    Beans
    69
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Boot LiveCD iso from grub2

    Still getting a CD-ROM detection error with the following change:
    Code:
    menuentry "Ubuntu 9.10 Server 32bit" {
     loopback loop /boot/iso/ubuntu-9.10-server-i386.iso
     linux (loop)/install/vmlinuz boot=install iso-scan/filename=/boot/iso/ubuntu-9.10-server-i386.iso noeject noprompt --
     initrd (loop)/install/initrd.gz
    }
    Are there any grub2 options to fool the installer into thinking my usb stick is a cd-rom drive?

Page 3 of 7 FirstFirst 12345 ... LastLast

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
  •