This will show you how to boot openSUSE DVD image from your hard disk instead of using a usb or dvd. You can do an install/upgrade/rescue just like if you booted a DVD.
Prerequisites:
-openSUSE installed with Grub2
-DVD image on an unencrypted partition that you won’t need to format during installation
Step 1:
Append the following to /etc/grub.d/40_custom (as root):
menuentry "**openSUSE 12.3 DVD**" {
set isofile=**/openSUSE-12.3-DVD-x86_64.iso**
set root=(**hd0,1**)
loopback loop $isofile
linux (loop)/boot/**x86_64**/loader/linux install=hd:$isofile
initrd (loop)/boot/**x86_64**/loader/initrd
}
You only need to edit the bold areas.
Change the menu entry to whatever you like.
The root=(hd0,1) is the partition your iso image on. In my case, it’s /dev/sda1. It’s a 5GB partition where I keep my DVD image. If yours is on /dev/sda3, then change it to root=(hd0,3).
The isofile is the path to your iso file. In my case, it’s located on the root of /dev/sda1.
Let’s say you have a separate home partition and your iso is at /home/user/openSUSE-12.3-DVD-x86_64.iso. You would need to change it to isofile=/user/openSUSE-12.3-DVD-x86_64.iso (leave out the home).
Change the x86_64 to i386 if you’re using 32 bit.
Step 2:
You need to update grub2 to recognize your new menu entry.
Open up Yast -> Boot Loader.
All you have to do is click OK without changing anything.
There’s a command line method instead of using Yast but I forgot what it was.
That’s it. Now you can reboot and select the new entry from Grub2. The DVD will boot up and work just like normal.
**This does not work with Live images. Let me know if you know how to do it.
**I use ext4 for my partitions. You may need to make adjustments if you use something like ntfs.