This document describes, among other things, how to mount the cloop file
when running from hard disk:
http://www.stirnimann.com/mystuff/doc/knoppix.txt
I am trying to learn the remastering using the O'Reilly article. The resulting disks start to boot (discovery down to "Welcome to Knoppix..."), but then fails after finding the system. It can't locate an "ld.cache" and then "rm", "awk", .... It makes it through 10-15 lines of "not founds" and drops into a shell awaiting reboot.
I want to compare the the /KNOPPIX/KNOPPIX file I built with the one from the distribution. I thought to do that by mounting it with a loop somehow. But the 'testDidtribution.sh' pipes the iso through "create_compressed_fs". and then stores it.
What commandline commands would give me the equivelant of how the disk is mounted (accessed) during live CD access? Hopefully with the same on-the-fly decompression during acces as is happening during the live CD boot.
My remastering problem is that I have completed Part#1, cobbled the equivelant to Part#2. This part is a bit vague and seems to have been done with a different set of directory structures. In Part#3 I made no changes and simply remastered (using the scripts) what I had just extracted. I must have made a mistake somewhere in Part #2. (I have requested some clarifications from the author, which I am still awaiting).
Any help will be appreciated.
BillS
This document describes, among other things, how to mount the cloop file
when running from hard disk:
http://www.stirnimann.com/mystuff/doc/knoppix.txt
windos;
Thanks for the link, and the example.
I also found the problem I mentioned in my post. The O'Reilly article has a typo (IMHO)(or at least missing characters).
Part #2 Step #3
---
bash-2.05# cp -pR /KNOPPIX/ /mnt/hdc1/KNOPPIX_original
bash-2.05# cp -pR /mnt/hdc1/KNOPPIX_original /mnt/hdc1/KNOPPIX_remastered
---
the cp commands are missing "/*" each (IMHO) after the source directories
---
bash-2.05# cp -pR /KNOPPIX/* /mnt/hdc1/KNOPPIX_original
bash-2.05# cp -pR /mnt/hdc1/KNOPPIX_original/* /mnt/hdc1/KNOPPIX_remastered
---
That way the testDistribution.sh produces a bootable file
BillS
Ok; I tried the "insmod cloop file=..." command from the document referenced above and it failed.
That is probably because cloop in already loaded. So I tried the followingCode:root@knop33:/tmp#insmod cloop file=/home/vapor/CYA/KNOPPIX-dir-from-hda10-original/KNOPPIX/KNOPPIX Using /lib/modules/2.4.22-xfs/kernel/drivers/block/cloop.o /lib/modules/2.4.22-xfs/kernel/drivers/block/cloop.o: init_module: Cannot allocate memory
insert KNOPPIX Live CD in drive
The stickler seems to be the -t argument. What is the type? In the document windos references, a simple:Code:root@knop33:/tmp# mount /cdrom root@knop33:/tmp# ls /cdrom Demos KNOPPIX Talks autorun.bat autorun.inf cdrom.ico index.html root@knop33:/tmp# losetup /dev/loop4 /cdrom/KNOPPIX/KNOPPIX root@knop33:/tmp# losetup -a /dev/loop3: [0309]:373250 (/home/vapor/CYA/KNOPPIX-dir-from-hda10-original/KNOPPIX/KNOPPIX) offset 0, no encryption /dev/loop4: [0b00]:67584 (/cdrom/KNOPPIX/KNOPPIX) offset 0, no encryption root@knop33:/tmp# mount -t iso9660 /dev/loop4 /mnt/test mount: block device /dev/loop4 is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/loop4, or too many mounted file systems root@knop33:/tmp#
mount -o ro /dec/cloop /compressed/
command was specified.
??What Next??
BillS
When you have booted from HD it should NOT be loaded automatically.Originally Posted by BillS
Which version of cloop are you using ?
Version 2 is incompatible with the earlier verions so you need to use the one that came with the tools used to create the compressed image you are trying to mount.
Alright, The version I boot from the HD is 3.3 dated 9-24-03. I just rebooted (after attempting a remastered boot) and got this:
It looks like it is being loaded at bootCode:root@knop33:~# modprobe -l |grep cloop /lib/modules/2.4.22-xfs/kernel/drivers/block/cloop.o root@knop33:~#
I found this line in the messages file:
The one I am trying to remaster is 3.3 dated 11-19-03.Code:Jan 4 13:10:26 knop33 kernel: cloop: Initializing cloop v1.02 Jan 4 13:10:26 knop33 kernel: cloop: /home/vapor/CYA/original/KNOPPIX/KNOPPIX: 29973 blocks, 65536 bytes/block, largest block is 0 bytes.
<shrug>
BillS
Right, so you are using the wrong version of cloop. To mount 11-19-03 you need version 2.00 ! Get it here: http://developer.linuxtag.net/knoppi..._2.00-1.tar.gz , open it, read the instuctions, compile & install.(if my menory serves me right you need the sources for the kernel too)
Thanks;
I tried that last night and it worked. I was just browsing through other questions and saw the part about the 'head -4' on the file giving the version. So I checked and found that the 9-24-03 is 1.2 .
It seems strange to have such a critical change happen without any real change in the versioning of the OS. Dis the install and the remasters now boot!!
Anyway, this morning I have slowly working into the changes I want.
Thanks for the time and the help....
BillS
Aarrgh...
Thankyou BillS. You rescued me from a multi-hour misery.
Now for that email to the O'Reillys...
F
...the cp commands are missing "/*" each (IMHO) after the source directories...

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS
$199.00
Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On
$450.00
$280.00
Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset
$129.99
Supermicro E200-8D Mini Server Xeon D-1528 6-Core 64GB ECC 1TB SSD 2x10GbE IPMI
$525.00
SUPERMICRO CSE-836 XEON E5-1620 v3 @ 3.50GHz, 32GB RAM, NO HDD/OS
$299.99
Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3
$219.99
Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*
$369.99
Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC
$187.50
Supermicro CSE-216 No CPU No Ram No HDD Tested & Reset
$149.99