Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 17656  / 3 Years ago, tue, august 3, 2021, 11:54:40

I want to mount the contents of a boot-able CD image, like Ubuntu rescue remix, to a partition of the hard drive.



So I can have an entry in Grub to boot to the contents of that disk, http://www.linuxquestions.org/questions/linux-general-1/boot-iso-image-from-hard-disk-294744/ , details a similar process used for a Knoppix CD. Is there a way to do this for Ubuntu disks.


More From » grub2

 Answers
6

While I rather doubt it's possible to mount the contents of something to a partition, there is an ubuntuforums.org thread that explains how to boot ISO images with Grub2.



http://ubuntuforums.org/showthread.php?t=1549847



Basically, you edit /etc/grub.d/40_custom by copying/pasting one of the examples provided in post #1 (version name/ISO may be out of date), modify the entry according to your ISO location and partition layout, and then run update-grub .



Here is an example of the entry (for version 14.04):



menuentry 'ISO Trusty ' {
isofile=ubuntu-14.04.1-desktop-amd64.iso
loopback loop (hd0,1)/iso/$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/iso/$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}

[#39357] Wednesday, August 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anatta

Total Points: 326
Total Questions: 128
Total Answers: 96

Location: Jordan
Member since Sun, Jun 26, 2022
2 Years ago
anatta questions
Sun, Jul 17, 22, 07:13, 2 Years ago
Sun, Jun 6, 21, 12:17, 3 Years ago
Sat, Jun 12, 21, 20:43, 3 Years ago
Thu, Jan 13, 22, 20:49, 2 Years ago
Sat, Jun 5, 21, 05:39, 3 Years ago
;