-
@rajibando... I appreciate your help really but unfortunately as I told you, your solution is not valid in my case... I cannot just create partitions on others' PCs. Also I prefer to have a file (.img) rather than a partition. It is more portable in my opinion.
@ Werner P. Schulz... I read your post over and over again going through all the links... I even tried to patch minirt.gz with no luck... Can you please guide to what scripts do I need to modify and where please?
I thank you both for your patience.
I really like Knoppix and would like to learn more about this distro.
-
The interesting part of the script "flash-knoppix2" → "If we don't already have an overlay, ask to create one"
How Knoppix interprets the config files (knoppix-data.inf, knoppix-data.aes or knoppix-data.img) during boot, you can see within the "init"-file of the minirt.gz → function mountdata()
Read and analyze the source code.
If you want another behaviour of Knoppix and his overlay you have to change these two scripts, insert your own code and remaster Knoppix.
Last edited by Werner P. Schulz; 06-17-2015 at 09:37 PM.
-
Senior Member
registered user
Originally Posted by
rspiteri
...I cannot just create partitions on others' PCs,,,
You haven't read and understood.
-
Hi,
I managed to accomplish what I wanted.
Modified mountdata() to check for a new boot parameter which I called overlay and now when you type:
knoppix overlay=/dev/sda1
Init will mount /dev/sda1/knoppix-data.img to KNOPPIX-DATA
I need to update it to cater for aes as well
Thanks for all your help
-
Senior Member
registered user
Now it is your turn to elaborately explain via a post about the steps you took to accomplish your target and where you were going wrong, including the support you obtained from various threads.
You know, freedom comes at a huge price which some of us don't like to pay, but take freedom for granted. We forget that some of our predecessors fought relentlessly for those freedoms.
Intentionally, we don't spoon-feed you because we wish to keep your choices free. Sometimes, we fail to get the message across. And the seekers turn highly abusive - they usually don't wish to own up responsibility and ask the right questions. Usually, they want to be spoon-fed.
I have a difficulty with reading, I am visual, so Linux is difficult for people like me, while people who read relentlessly find it cakewalk. I overcame this difficulty by skimming through the text, trying to pick up things that I require. I don't complain that people don't understand. Why should they understand? It is my problem and I have to solve it. What is my mind (brain) for, if it can't find a way?!
We give up easily and say we don't have time to read or experiment. As if others are in lesser responsible positions!
I have found that if I ask the right questions there are people who would answer my query. And sitting still like in meditation helps a lot. Your subconscious mind provides you answers but you have to be really calm and attentive to listen.
Anyway, keep learning, and remember the suggestions I had earlier given you.
Last edited by rajibando; 06-21-2015 at 10:21 PM.
-
Basically I have followed the links and comments you both supplied and came up with the following solution:
1. Decompress minirt.gz
2. Open init with vim.
3. At the start of mountdata(), use checkbootparam() to check for if the overlay parameter exists
4. If yes, read its value and mount the image as loop on KNOPPIX-DATA using trymount(), outputting a valid message at boot (optional)
Basically the code to mount the overlay image is already there in mountdata(), I just reused it for my purpose.
Now obviously I can tweak init to search if the overlay exists before mounting it, but for now I am satisfied with the output since I managed to do what I had in mind.
Then it is
-
Senior Member
registered user
Thank you for posting your experience.
But why do you have to take the hard way? Editing minirt.gz.
You could have :
(1) been patient
(2) Booted to the laptop owner's system normally.
(3) Copied your pendrive's boot and KNOPPIX folders, renamed your pendrive's KNOPPIX binary to KNOPPIX000.
(4) Booted from your pendrive, let your syslinux search and find the HDD's KNOPPIX binary and knoppix-data.inf and boot from there.
(5) You could also have used knoppix-data.img had you so chosen.
Matter ends.
There is a phrase called Occham's razor. You are a programmer, so also try to find simple solutions
It is not for a reason that Windows has been DBD, i.e., defective by design
Anyway, best wishes with your professional work. Bye!
Last edited by Werner P. Schulz; 06-23-2015 at 07:11 AM.
Reason: Wanted by poster
-
knoppix overlay=/dev/sda1
3. At the start of mountdata(), use checkbootparam() to check for if the overlay parameter exists
Your way to use a own cheatcode and test for it within a modified init (of minirt.gz) is a simple and nice solution.
-
Senior Member
registered user
Originally Posted by
Werner P. Schulz
...simple and nice solution...
But rspiteri is not booting knoppix in his system!
He wants to boot knoppix from his clients' systems, and the clients may not allow by default rspiteri's saving the KNOPPIX image in the HDD of his lap(desk)top's first partition. Then his edited minirt.gz will fail, and his pendrive syslinux will use the default method to search and find out the KNOPPIX image from the HDD, I am not aware if the modified init shall fail.
In that case, it is worthwhile to let the minirt.gz alone and let syslinux do what it does best.
Anyway his approach is not general.
Else, please advise.
Last edited by rajibando; 06-23-2015 at 09:54 AM.
-
Your way to use a own cheatcode and test for it within a modified init (of minirt.gz) is a simple and nice solution.
Thanks for the feedback Werner P. Schulz, I appreciate...
@rajibando, perhaps you did not understand me well then. let me explain better...
1. I boot knoppix from my pendrive on every machine and NOT from the client's machine. That would not make sense since I need 4GB on disk on every machine then.
2. However I do not want to store all the different clients' modifications (keyboard settings, wifi settings etc) on my pendrive.
3. Therefore I create a knoppix-data.img file on each client's machine.
4. Finally I specify overlay=/dev/sda1 (where sda1 refers to the partition where the overlay file (knoppix-data.img) is found. (overlay is the new boot parameter I configured init to look for)
5. That's it. Like this, if I need to save few settings or make minor modifications for the future, I just create a 500MB overlay file and save all changes there.
6. If I do not want to save any settings or modifications on the client's machine, I just omit the overlay boot parameter and knoppix will boot normally in "read only" mode. My edited minirt.gz does not search for an img file on the client's machine unless the boot parameter is specified.
The solution you proposed also works but is very expensive in terms of the client's disk space.
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
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$99.99
1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed
$42.59
1TB 2.5" Internal Laptop TESTED Mixed Major Brands Hard Drives HDD - Tested
$15.94
1TB HDD 3.5" SATA Hard Drive DeskTop with Windows 10 HOME / PRO Installed Legacy
$26.95
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$15.49
1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed
$13.55
PNY - CS900 1TB Internal SSD SATA
$54.99
TEAMGROUP MS30 1TB SSD w/ SLC Cache 3D NAND TLC M.2 2280 SATA3 6Gb/s Internal
$44.99
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$80.39
1TB HDD 2.5" SATA Hard Drive Laptop with Windows 7/10 Pro Installed
$32.55