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
  •  


Samsung Galaxy Tab A9+ 11.0

Samsung Galaxy Tab A9+ 11.0" 64GB Gray Wi-Fi Tablet Bundle SM-X210NZAYXAR 2023

$129.99



Samsung XE310XBA-KA1US Chromebook 4 11.6

Samsung XE310XBA-KA1US Chromebook 4 11.6" HD 4GB/16GB SSD Celeron N4020 1.1GHz

$30.00



Samsung Galaxy Tab A9+ 11'' 4GB RAM 64GB Storage Navy Wi-Fi Tablet picture

Samsung Galaxy Tab A9+ 11'' 4GB RAM 64GB Storage Navy Wi-Fi Tablet

$116.00



Samsung Galaxy Tab A WIFI 7

Samsung Galaxy Tab A WIFI 7" 8GB Tablet SM-T280 - Black (/RT6-20262-SM-T280-S...

$29.99



WiFi Only Samsung Galaxy Tab S7 FE 12.4

WiFi Only Samsung Galaxy Tab S7 FE 12.4" 64GB Silver SM-T738U

$154.99



Samsung Galaxy Tab A9+ 11

Samsung Galaxy Tab A9+ 11" 128GB Navy Wi-Fi SM-X210NDBEXAR

$143.00



Samsung - S Pen Creator Edition - White picture

Samsung - S Pen Creator Edition - White

$27.00



HOLIDAY DEAL:Samsung Galaxy Tab A9+ 5G -64 GB -Wi-Fi  + 11

HOLIDAY DEAL:Samsung Galaxy Tab A9+ 5G -64 GB -Wi-Fi + 11"+ Graphite

$119.99



Samsung Galaxy Tab A9+ Plus WiFi - 128GB Graphite New No BOX picture

Samsung Galaxy Tab A9+ Plus WiFi - 128GB Graphite New No BOX

$200.00



SAMSUNG AM-P613NZBMXAR Galaxy S6 Lite 2022 10.4

SAMSUNG AM-P613NZBMXAR Galaxy S6 Lite 2022 10.4" 64GB Wi-Fi Tablet With S Pen,

$140.00