How can I install .iso file by using 40_custom of the second ubuntu, in the dual boot environment (first window 10, second ubuntu)?
The disk environment in Ubuntu is as follows.
Disk /dev/nvme0n1:
Disk model: Samsung SSD
Units:
Sector size (logical/physical):
I/O size (minimum/optimal):
Disklabel type: gpt
Disk identifier:
Device Type
/dev/nvme0n1p1 EFI System
/dev/nvme0n1p2 Microsoft reserved
/dev/nvme0n1p3 Microsoft basic data
/dev/nvme0n1p4 Microsoft basic data
/dev/nvme0n1p5 Windows recovery environme
/dev/nvme0n1p6 Linux filesystem
I left out the information such as disk size, start, end and sectors.
nvme0n1p3 is window. nvme0n1p4 is ubuntu.
For iso mount, I created an empty partition in the window 10.
The follow is the 40_custom I modified.
menuentry "Ubuntu 20.04.05 ISO" {
isofile="/home/<username>/ubuntu-20.04.5-desktop-amd64.iso"
loopback loop (hd0,gpt4)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd
}
I think I must specify the exact location in loopback loop (hd0,5)
, but I don't know how.
I find the location. In my system, nvme0n1p1 is same as (h0,gpt1).
Finally, the system could find the iso file.
ps.
The following error occur, when I enter the additional option.
error: file "<filepath>" not found.
error: no server is specified.
error: you need to load the kernel first.
Conclusion :
The problem is solved for this post.
I'll leave this post as the correct answer for those who, like me, misunderstood the location of the file. (In the loopback loop line, (hd0,gpt4) is the partition of the file.)
Another problem(kernel panic) :
error: out of memory
kernel panic not syncing vfs unable to mount root fs on unknown block 0 0
This seems to be a version compatibility issue between the ubuntu 22.04 kernel and ubuntu 20.04.
I think this is out of this post. So, I will address this kernel panic issue in another post.