-
How can I run well from the hard drive with persistence
I have Knoppix 7.7.1. I really like the KDE games section, as it has some of my favorite games. I also hope to use the Wine, which I don't have working on any other distro. The distro looks nice and seems very stable.
I have a fast Dell Inspiron 15 7559 laptop which is UEFI and it has 2 GPT hard drives, /dev/sd5 is a fast SSD. It has an nVidia GTX 960 graphics card which most distros have problems with, but Knoppix works well with.
What I would like is a setup where I run from the hard drive, but run the original Knoppix, and save my changes to a persistence file, and would have the ability later to identify all my changes in case I want to implement them again in a newer version. I don't want to boot or run from USB flashdrive because its slow and requires me to hold down F12 during the boot to get it to boot from USB flashdrive.
I tried the "Poor man's install", but it only copied a small portion of Knoppix to the hard drive, and seemed to require me to have the USB flashdrive in to boot which I would like to avoid.
I found Werner P Schulz's wiki section "ISO Install to HD" http://knoppix.net/wiki/Category:Har...e_Installation which was certainly helpful getting it running, but I don't understand how to implement persistence with the ISO Install to HD method.
My attempt to install:
I created an EXT4 partition /dev/sda5 on the SSD. I created a folder ISO on the partition and downloaded the Knoppix to there via bittorrent. As instructed, I renamed the .iso file to KNX.iso
I edited /etc/grub.d/40_custom to add a menuentry for Knoppix and ran update-grup to put it into effect
menuentry "Knoppix64 7.7.1 fromISO (on /dev/sda5)" {
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
loopback loop (hd0,gpt5)/ISO/KNX.iso
linux (loop)/boot/isolinux/linux64 bootfrom=/dev/sda5/ISO/KNX.iso mkimage screen=1440x900 desktop=icewm acpi_osi='!Windows 2015' i915.preliminary_hw_support=1
initrd (loop)/boot/isolinux/minirt.gz
}
1. This does boot, but it boots after a 5 or 10 second delay. What could I do to get it to boot faster? My guess is that what I need is a hybrid of the "Poor man's install" and the "ISO Install to HD"
2. I don't think the desktop=icewm option worked because the system looked to be running lxde. I would like to run Icewm if possible, but it's not critical.
3. The menus are all in German. I tried lang=us as suggested in the cheatcodes.txt but that was invalid. I didn't see lang=en as an option.
4. I used the mkimage option, but it doesn't ask about the persistence file. I would like to save any changes I make to a persistence file.
Can you help me resolve my 4 issues above, please
-
AFAIK it is not possible to boot from ISO and have persistence, because the persistent image must reside in the Knoppix directory.
To make a bootable Knoppix do this:
1) boot from your ISO, adding the parameter
tohd=/dev/sda5
to the kernel parameters. This will copy the Knoppix files to /dev/sda5/KNOPPIX
I trust that you are familiar with booting GRUB and editing the boot commands with e and boot the edited command with F10
Is this what you call a poor man's install ?
While running Knoppix from the ISO:
2) mount the ISO file so that you can read from it:
sudo mount /mnt-iso/ISO/KNX.iso /mnt-user
3) copy the kernels and initrd to the Knoppix directory:
sudo cp -a /mnt-user/boot/isolinux/linux* /mnt-iso/KNOPPIX/
sudo cp -a /mnt-user/boot/isolinux/minirt.gz /mnt-iso/KNOPPIX/
Reboot to your normal linux distro
4) make an entry in your GRUB config:
menuentry "Knoppix64 7.7.1 from HD (on /dev/sda5)" {
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
linux /KNOPPIX/linux64 knoppix_dir=/KNOPPIX lang=en screen=1440x900 desktop=icewm acpi_osi='!Windows 2015' i915.preliminary_hw_support=1
initrd /KNOPPIX/minirt.gz
}
5) boot Knoppix using GRUB entry, adding the parameter
mkimage
to the kernel parameters. This will activate the persistence image creation dialog during boot
Next time you boot Knoppix, the persistent image will contain your settings and alterations.
-
Originally Posted by
fredvej
AFAIK it is not possible to boot from ISO and have persistence, because the persistent image must reside in the Knoppix directory. To make a bootable Knoppix do this: 1) boot from your ISO, adding the parameter tohd=/dev/sda5 to the kernel parameters. This will copy the Knoppix files to /dev/sda5/KNOPPIX I trust that you are familiar with booting GRUB and editing the boot commands with e and boot the edited command with F10 Is this what you call a poor man's install ? While running Knoppix from the ISO: 2) mount the ISO file so that you can read from it: sudo mount /mnt-iso/ISO/KNX.iso /mnt-user 3) copy the kernels and initrd to the Knoppix directory: sudo cp -a /mnt-user/boot/isolinux/linux* /mnt-iso/KNOPPIX/ sudo cp -a /mnt-user/boot/isolinux/minirt.gz /mnt-iso/KNOPPIX/ Reboot to your normal linux distro 4) make an entry in your GRUB config: menuentry "Knoppix64 7.7.1 from HD (on /dev/sda5)" { insmod part_gpt insmod ext2 set root='hd0,gpt5' linux /KNOPPIX/linux64 knoppix_dir=/KNOPPIX lang=en screen=1440x900 desktop=icewm acpi_osi='!Windows 2015' i915.preliminary_hw_support=1 initrd /KNOPPIX/minirt.gz } 5) boot Knoppix using GRUB entry, adding the parameter mkimage to the kernel parameters. This will activate the persistence image creation dialog during boot Next time you boot Knoppix, the persistent image will contain your settings and alterations.
Thanks, fredvej. That looks to have made progress. The only thing I never saw was any prompt for the persistence file. The 15 inch screen is almost impossible to read at 3840x2160, but it never paused that I could see. I tried a couple changes and reboot but they were lost. Any ideas how to run the mkimage and where to look for the persistence file?
-
here is a video of it booting 4) make an entry in your GRUB config: menuentry "Knoppix64 7.7.1 from HD (on /dev/sda5)" { insmod part_gpt insmod ext2 set root='hd0,gpt5' linux /KNOPPIX/linux64 knoppix_dir=/KNOPPIX lang=en screen=1440x900 desktop=icewm acpi_osi='!Windows 2015' i915.preliminary_hw_support=1 initrd /KNOPPIX/minirt.gz } 5) boot Knoppix using GRUB entry, adding the parameter mkimage to the kernel parameters. This will activate the persistence image creation dialog during boot https://www.youtube.com/watch?v=IaWp...ature=youtu.be
-
I got it fixed. I rebooted from the flashdrive with knoppix64 tohd=/dev/sda5 mkimage screen=1440x900 lang=en and that got it to prompt for the .img file size. I then changed a setting and rebooted without the flashdrive and it had saved the setting. Thanks for the help
-
Senior Member
registered user
If you want to track system changes for reproducing them, dpkg-query may be of help. Running it with the same parameters on fresh and completed install, saving the outputs, and taking the diff will give you a rather precise picture of what has happened. Because Debian package structure often changes between releases, you may not be able to do it exactly the same way next time, but you have good hints. If you use more than one persistent store, you can also obtain persistence between releases (Think for example Java/Tomcat or SQL Developer.)
-
I now have 8.6.1 running well as an iso from the hard drive with persistence. I used MX19 to setup the partitions and control the boot. 1. create a partition to load/run Knoppix ISO. I used an SSD for max performance. I created a 20 gb partition ext4, but 8 gb would be plenty I think. On my system it is /dev/sda7. I labeled it 07-knoppixboot 2, create a KNOPPIX-DATA partition to hold the persistence data. I used 5 gb of my SSD for this on /dev/sda4 and it needs to be formatted as reiserfs and labeled KNOPPIX-DATA in caps. 3. make a flash drive of knoppix 8.6.1 to boot from. I used a dd frontend on antiX19 to create it. 4. boot from the flashdrive and press F3 5. type in knoppix no3d tohd=/dev/sda7 and press enter to boot 6. it should boot and copy the knoppix to /dev/sda7 7. shutdown and reboot into MX19 8. in root terminal mkdir /media/sda7 9. mount /dev/sda7 /media/sda7 10. copy linux* and minirt.gz from the flashdrive to the KNOPPIX folder on /media/sda7 11. edit /KNOPPIX/knoppix-data.inf on /media/sda7 4 in the line below refers to /dev/sda4 4 /KNOPPIX-DATA reiserfs 12. create custom.cfg in /boot/grub # # custom.cfg # menuentry "Knoppix64 8.6.1 from HD (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='hd0,msdos7' linux /KNOPPIX/linux64 knoppix_dir=/KNOPPIX lang=en no3d initrd /KNOPPIX/minirt.gz } 13. reboot without flashdrive, go to custom.cfg option at bottom and press e to edit 14. add mkimage at end of linux /KNOPPIX line then F10 to boot. When it boots it should create the persistence files on /dev/sda4 15. make a very minor change to something so you can see if your changes get saved when you reboot. You could create a text file in your home folder. 16. reboot, taking custom.cfg option by just pressing enter on it. (no mkimage option) 17. see if your changes were saved. If anyone tries this let me know how it works out. .........................sorry, the forum won't let me format the text. I tried twice.
Last edited by thriftee; 12-04-2019 at 12:43 PM.
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
Supermicro 2U 6028R-E1CR24N 24x LFF- Wholesale Build Your Own Storage Server
$249.99
Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 32gb / 500gb / 495w
$164.99
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$165.99
Dell R640 8x 2.5" SFF Server iDRAC ENT - Wholesale Custom Build Your Server
$270.99
HP PROLIANT DL380 GEN9 719061-B21 Server 15x3.5" 2*XEON E5-2640 v3 128GB
$175.00
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$195.00
Dell PowerEdge R630 Server | 2x Xeon E5-2667v4, 128GB, RAM, H730, Dual 750w PSU
$229.00
New Gigabyte 10 bay SFF Server 2x Xeon Gold 6130 Total 32 Core 64GB DDR4 3x PCIe
$319.20
DELL POWEREDGE C6100 with 4x Nodes 8x Xeon X5660 CPU 96GB RAM no HDD WORKING
$118.99
Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config
$474.99