-
Senior Member
registered user
Boot from Knoppix ISO in HDD using grub
I used the following code:
Code:
menuentry "Knoppix ISO" {
insmod part_msdos
insmod ext3
set root=(hd0,msdos2) #the partition where you've stored knoppix iso
loopback loop /KNOPPIX_V7.0.4DVD-2012-08-20-EN/KNOPPIX_V7.0.4DVD-2012-08-20-EN.iso
linux (loop)/boot/isolinux/linux boot=isolinux iso-scan/filename=/KNOPPIX noeject noprompt --
initrd (loop)/boot/isolinux/minirt.gz
}
everything works, then knoppix iteratively searchs KNOPPIX in /dev/sdax for a few times and lets go.
Where I am going wrong?
--------------------
formatted by mod
Last edited by Werner P. Schulz; 12-08-2012 at 05:05 PM.
-
Senior Member
registered user
I have uploaded the relavant files in my google drive. You could click the file and peruse them. Any doubt that remain will, I hope, be cleared by the pics.
The logical drives that I have are given, also the drive in which the knoppix iso resides is apparent from the codes in the main post. The files could be accessed at:
https://docs.google.com/folder/d/0B0...JUbzVyUDA/edit
Regards
Last edited by rajibando; 12-08-2012 at 04:33 PM.
Reason: adding detail
-
Code:
loopback loop /KNOPPIX_V7.0.4DVD-2012-08-20-EN/KNOPPIX_V7.0.4DVD-2012-08-20-EN.iso
This isn't a sufficient path-declaration.
Have a look at:
https://help.ubuntu.com/community/Gr...OBoot/Examples
-
Senior Member
registered user
Thank you, Prof. Schulz.
I studied and experimented with the information retrieved from the link you'd provided, & I solved the problem.
The relevant code contained in the link, even when customised to suit a particular system such as mine, is not correct. I found that the following code works beautifully, and the checkpoints confirm it:
}
echo 1
menuentry "Knoppix ISO" {
echo 2
set root=(hd0,msdos2) #the partition where I've stored knoppix iso
echo 3
loopback loop /KNOPPIX/KNOPPIX.iso
echo 4
linux (loop)/boot/isolinux/linux64 bootfrom=/dev/sdb2/KNOPPIX/KNOPPIX.iso boot=isolinux keyboard=us
initrd (loop)/boot/isolinux/minirt.gz
}
I hope this helps others. I write in the Debian forum as bkpsusmitaa
-
I'm not a "Prof.". In Germany it is a title only for teachers at university.
-
Senior Member
registered user
You aren't a Professor!? Not only in Germany, I think the world over "Prof." is a title for tenured teachers in Universities. I thought that your knowledge-base as a moderator of the forum should ensure your being a Professor of a Univ.
I am sorry for my assumption. But my respect and awe remain, nonetheless!
-
Senior Member
registered user
The above menu entry was for my desktop, which had an AMD processor. Otherwise, the menu entry could be: ############################################## menuentry "Knoppix_8.2 ISO" { echo 1 set root=(hd0,msdosx) # x=partition number where the iso resides echo 2 loopback loop /KNOPPIX/KNOPPIX_V8.2-2018-05-10-EN.iso echo 3 linux (loop)/boot/isolinux/linux bootfrom=/dev/sdax/KNOPPIX/KNOPPIX_V8.2-2018-05-10-EN.iso keyboard=us root=/dev/ram rw ramdisk_size=100000 lang=us apm=power-off echo 4 initrd (loop)/boot/isolinux/minirt.gz } ############################################## Hope this helps ...
Last edited by rajibando; 03-23-2019 at 01:04 PM.
Reason: paragraphs entered
-
8.1 or 8.2 boot from loopback and 8.2 boot from ISO on HD with persistence
Just in case this will help anyone else, as I always forget how to do this, even though its been explained to me more that once (thanks to those patient enough). I am putting it in my own words from my own system to try to hammer it into my thick skull. Too bad we don't have 8.3 or 8.5 assuming they are better. I looked at the site selling the magazine and it says its a PDF which makes no sense, and after all the effort I don't want to pay $15 for a DVD. I wish Mr Knopper would offer a $5 download of current code. That would be sensible. I like his choices of games a lot.
Anyway, This is my /etc/grub.d/40_custom file stored on my main OS which is antiX on /dev/sda1. After editing the file sudo update-grub needs to be run to generate the new grub.cfg. Then when you reboot it gets used.
On my system:
/dev/sda3 has directories where ISO files are stored to boot from loopback. It runs exactly as it would have from flashdrive or DVD, and no changes are saved.
/dev/sda7 was formatted to Ext4, then Knoppix 8.2 was loaded by booting Knoppix 8.2 from flashdrive with tohd=/dev/sda7. I then renamed the file /KNOPPIX/knoppix-data.inf to was-knoppix-data.inf so that the mkimage boot parameter would ask how big of a persistence file to build and then build it the next time I booted into it. Note the nocompiz does the same thing as no3d (which now crashes the machine) used to do for older versions.
Code:
menuentry "Knoppix 8.2 DVD ISO Loopback" {
set isofile="/knoppix-8.2/KNOPPIX_V8.2-2018-05-10-EN.iso"
loopback loop (hd0,3)$isofile
echo "Loading Knoppix 8.2 linux"
linux (loop)/boot/isolinux/linux bootfrom=/dev/sda3$isofile keyboard=us lang=en tz=America/Chicago nocompiz
echo "Loading minirt"
initrd (loop)/boot/isolinux/minirt.gz
}
menuentry "Knoppix 8.1 DVD ISO Loopback" {
set isofile="/knoppix-8.1/KNOPPIX_V8.1-2017-09-05-EN.iso"
loopback loop (hd0,3)$isofile
echo "Loading Knoppix 8.1 linux"
linux (loop)/boot/isolinux/linux bootfrom=/dev/sda3$isofile keyboard=us lang=en tz=America/Chicago no3d nomce hpsa.hpsa_allow_any=1 loglevel=1
echo "Loading minirt"
initrd (loop)/boot/isolinux/minirt.gz
}
menuentry "Knoppix 8.2 from /dev/sda7" {
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
linux /KNOPPIX/linux64 knoppix_dir=/KNOPPIX mkimage keyboard=us lang=us tz=America/Chicago nocompiz
initrd /KNOPPIX/minirt.gz
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Lenovo Laptop ThinkPad Light Gaming AMD Ryzen 7 PRO 16GB 256GB SSD Windows 11 picture](/store/img/g/wUwAAOSwtRhmaVRt/s-l225/Lenovo-Laptop-ThinkPad-Light-Gaming-AMD-Ryzen-7-PR.jpg)
Lenovo Laptop ThinkPad Light Gaming AMD Ryzen 7 PRO 16GB 256GB SSD Windows 11
$279.99
![Lenovo ThinkPad T480s Laptop Computer 14](/store/img/g/xRUAAOSwdIdmZ~pA/s-l225/Lenovo-ThinkPad-T480s-Laptop-Computer-14-Core-i5-8.jpg)
Lenovo ThinkPad T480s Laptop Computer 14" Core i5 8GB RAM 128GB SSD Windows 11
$199.99
![Lenovo ThinkPad x250 12.5](/store/img/g/cK8AAOSwSA9mTPQQ/s-l225/Lenovo-ThinkPad-x250-12-5-Touch-Laptop-Intel-i5-8G.jpg)
Lenovo ThinkPad x250 12.5" Touch Laptop Intel i5 8GB RAM 128GB SSD Windows 10
$85.50
![Lenovo ThinkBook 15 Gen 4 Notebook 15.6](/store/img/g/sfoAAOSwilxmMx9X/s-l225/Lenovo-ThinkBook-15-Gen-4-Notebook-15-6-FHD-AMD-R7.jpg)
Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD AMD R7 5825U 16GB RAM 512GB SSD
$529.99
![Lenovo ThinkBook 15 Gen 4 Notebook 15.6](/store/img/g/p58AAOSwUlZman8a/s-l225/Lenovo-ThinkBook-15-Gen-4-Notebook-15-6-FHD-Intel-.jpg)
Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD Intel Core i7-1255U 8GB RAM
$544.99
![Lenovo Yoga 2-in-1 Touch Laptop PC 11.6](/store/img/g/Z2EAAOSw-dpmYCcE/s-l225/Lenovo-Yoga-2-in-1-Touch-Laptop-PC-11-6-Windows-10.jpg)
Lenovo Yoga 2-in-1 Touch Laptop PC 11.6" Windows 10 4GB RAM 250GB SSD HDMI WiFi
$89.99
![Lenovo - Legion Slim 5 16](/store/img/g/k70AAOSwoZZkjHfX/s-l225/Lenovo-Legion-Slim-5-16-Gaming-Laptop-WUXGA-Ryzen-.jpg)
Lenovo - Legion Slim 5 16" Gaming Laptop WUXGA - Ryzen 5 7640HS with 16GB Mem...
$949.99
![LENOVO THINKPAD T480 14](/store/img/g/10QAAOSw5GhmeYh-/s-l225/LENOVO-THINKPAD-T480-14-Intel-i5-No-Hard-drive-No-.jpg)
LENOVO THINKPAD T480 14" Intel i5 - No Hard drive, No OS, and no power supply
$79.99
![Lenovo Thinkpad T490s Core i7 8665U 16GB 512GB Touchscreen Windows 11 Pro picture](/store/img/g/05gAAOSwQvNmbPgc/s-l225/Lenovo-Thinkpad-T490s-Core-i7-8665U-16GB-512GB-Tou.jpg)
Lenovo Thinkpad T490s Core i7 8665U 16GB 512GB Touchscreen Windows 11 Pro
$289.00
![Lenovo ThinkPad L13 Yoga Gen 2 i5-1145G7 @ 2.60GHz 16GB/256GB Win 10 Pro - W/Pen picture](/store/img/g/WfsAAOSwK2JmPjsb/s-l225/Lenovo-ThinkPad-L13-Yoga-Gen-2-i5-1145G7-2-60GHz-1.jpg)
Lenovo ThinkPad L13 Yoga Gen 2 i5-1145G7 @ 2.60GHz 16GB/256GB Win 10 Pro - W/Pen
$279.99