Results 1 to 7 of 7

Thread: How can I run well from the hard drive with persistence

  1. #1
    Member registered user
    Join Date
    Mar 2010
    Location
    USA
    Posts
    50

    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

  2. #2
    Member registered user
    Join Date
    Dec 2006
    Posts
    44
    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.

  3. #3
    Member registered user
    Join Date
    Mar 2010
    Location
    USA
    Posts
    50
    Quote Originally Posted by fredvej View Post
    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?

  4. #4
    Member registered user
    Join Date
    Mar 2010
    Location
    USA
    Posts
    50
    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

  5. #5
    Member registered user
    Join Date
    Mar 2010
    Location
    USA
    Posts
    50
    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

  6. #6
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    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.)

  7. #7
    Member registered user
    Join Date
    Mar 2010
    Location
    USA
    Posts
    50
    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
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



CRUCIAL DDR3L 8GB 16GB 32GB 1600 MHz PC3-12800 Laptop Memory RAM SODIMM 204-Pin picture

CRUCIAL DDR3L 8GB 16GB 32GB 1600 MHz PC3-12800 Laptop Memory RAM SODIMM 204-Pin

$14.35



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) Intel

$35.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



HMT84GL7AMR4C-RD 32GB DDR3 Server Memory RAM 14900L ECC REG 4Rx4 SK Hynix Cisco picture

HMT84GL7AMR4C-RD 32GB DDR3 Server Memory RAM 14900L ECC REG 4Rx4 SK Hynix Cisco

$13.99



Hynix 64GB 4Rx4 PC4-2133P-L LRDIMM DDR4-17000 ECC Load Reduced Server Memory RAM picture

Hynix 64GB 4Rx4 PC4-2133P-L LRDIMM DDR4-17000 ECC Load Reduced Server Memory RAM

$64.99



A-Tech 32GB 2x 16GB PC4-25600 Laptop SODIMM DDR4 3200 MHz Non-ECC Memory RAM 32G picture

A-Tech 32GB 2x 16GB PC4-25600 Laptop SODIMM DDR4 3200 MHz Non-ECC Memory RAM 32G

$59.99