Results 1 to 3 of 3

Thread: knoppix_dir and module_dirs

  1. #1
    Banned
    Join Date
    Aug 2006
    Posts
    3

    knoppix_dir and module_dirs

    i've been trying to merge two different knoppix versions, namely 402 and 501, on a single multi-boot dvd. i've rebased root directories on the dvd for each distribution to a separate unique one and tried booting with an apropriate 'knoppix_dir' parameter at the isolinux prompt. 402 boots sucessfully, but 501 fails. i've tracked down the problem to "cloop.ko" module loading section in the linuxrc startup script. when enumerating devices in search of the cdrom media the 'FOUND_KNOPPIX' variable gets properly set pointing to '/dev/hdc' but then is reset upon failure to load 'cloop.ko'. the 'module_dirs' variable is not 'knoppix_dir' dependant and since the cloop module for 501 has been moved out of the initrd filesystem it fails to find the module file. was it in any way intentional or is more of a bug ?

  2. #2
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Finland
    Posts
    272
    You can use different kernels but you must have kernel specific cloop.ko and unionfs.ko files, too. You can do it in a very simple way.

    Just make so many modules directories with different names under /KNOPPIX, e.g. /KNOPPIX/modules_402 and /KNOPPIX/modules_501. Then place corresponding modules under those directories.

    Then you must tell to the kernel where these modules can be found. You must modify linuxrc file. This is what you have in Knoppix 5.0.1:
    Code:
    MODULE_DIRS="/cdrom/KNOPPIX/modules /cdrom2/KNOPPIX/modules /modules /modules/scsi"
    Change the directory to the same name where your modules dwell, e.g.:
    Code:
    MODULE_DIRS="/cdrom/KNOPPIX/modules_402 /cdrom2/KNOPPIX/modules_402 /modules /modules/scsi"
    Was this what you were asking? But if you really want to have two different /KNOPPIX images (e.g. /KNOPPIX1 and /KNOPPIX2) to hold different Knoppix versions, I don't know if this is enough. I have always used one compressed /KNOPPIX image and have never tried your idea. And believe it or not, my image is about 3 Gt (no 2 gig limit existing any more with new Debian programs).

    -tapsa-

  3. #3
    Banned
    Join Date
    Aug 2006
    Posts
    3
    that is absolutely true. but the problem is not the very solution but the reason for it.

    for the 402 version the modules, including the essential cloop.ko, were contained in the initial ramdisk filesystem, in "/modules" directory, and NOT in the cd directory tree on the iso9660 filesystem. it was enough to pass the "knoppix_dir=/KNOPPIX1" parameter to kernel at startup to make the distribution boot properly from a different directory. there was no need to modify the "linuxrc" script, because it parses the kernel command line on its own, it reads the "knoppix_dir" parameter and adjust its internal variables accordingly. the default "module_dirs", just as you've quoted it, contains the "/modules" search path, so it loads the files contained in the initial ramdisk.

    but for the 501 version, the boot-critical modules have been moved out of the initial ramdisk and placed directly on the cd filesystem. the "module_dirs" is not "knoppix_dir"-aware, the path is hardwired to "KNOPPIX". so this version fails to boot from a different directory. if one would set "module_dirs" to
    Code:
    MODULE_DIRS="/cdrom/$knoppix_dir/modules /cdrom2/$knoppix_dir/modules /modules /modules/scsi"
    instead, it would work as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA picture

LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA

$229.99



HPE 727263-003 BL460c G9 Raid BBWC Smartstorage Battery picture

HPE 727263-003 BL460c G9 Raid BBWC Smartstorage Battery

$24.99



Dell R740XD2 26LFF 3.6Ghz 8-C 384GB H730P MINI RAID 2x10G SFP+ NIC 2x1100W Rails picture

Dell R740XD2 26LFF 3.6Ghz 8-C 384GB H730P MINI RAID 2x10G SFP+ NIC 2x1100W Rails

$2998.08



Dell R630 8SFF 2.1Ghz 16-Core 128GB H730 RAID 10GB RJ-45 NIC 2x750W PSU 8x Trays picture

Dell R630 8SFF 2.1Ghz 16-Core 128GB H730 RAID 10GB RJ-45 NIC 2x750W PSU 8x Trays

$425.04



Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE picture

Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE

$15.98



LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License picture

LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License

$39.95



LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture

LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault

$39.00



OWC Guardian Maximus RAID 0/1 Enclosure picture

OWC Guardian Maximus RAID 0/1 Enclosure

$45.00



4 Bay RAID External Hard Drive Enclosure for 2.5/3.5

4 Bay RAID External Hard Drive Enclosure for 2.5/3.5" SATA HDD/SSD

$79.99



ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs picture

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs

$134.99