Results 1 to 6 of 6

Thread: Messing around with miniroot... how to add a copy command?

  1. #1
    Member registered user
    Join Date
    Jan 2003
    Location
    PEI, Canada
    Posts
    44

    Messing around with miniroot... how to add a copy command?

    So I'm trying to get knoppix to copy onto the ramdisk and then run completely out of ram. I've managed to trim it down enough to fit, now it's just a matter of figuring out how to get it from the CD to the ram, which is where I run into trouble...

    I tried just copying /bin/cp to /static/cp in miniroot, but no luck there at all, it won't run it for some reason.

    So, any ideas on how to get the cloop image from the CD to the ramdisk?

    Thanks!

  2. #2
    Senior Member registered user
    Join Date
    Dec 2002
    Posts
    196
    Hmm, i'm playing around with 2880kb boot images now, i'll see if i can throw in a loadtoram option. Dunno how far i'll get though

    btw, how small did you get it?

  3. #3
    Member registered user
    Join Date
    Jan 2003
    Location
    PEI, Canada
    Posts
    44

    little bit farther.. only to run into another wall

    It's down to about 195MB... this is by no means the final product, this is just so that I can test it to see if it actually works.

    ok, I've gotten myself a little bit farther, but I've run into another wall.

    So I figured out that the ramdisk isn't set up before the cloop image is mounted.. great. so I made the /ramdisk directory on miniroot and put it onto a boot floppy.

    so I let it start up with no cd in the drive so I'd get dumped at the crappy ash prompt, and loaded the reiserfs.o module from another disk so I could access my cloop image from the hard drive.
    everything's going fine until this point, no problems.. I mount the hard drive to /cdrom and mount the ramdisk by "mount -t tmpfs /dev/shm /ramdisk".
    then instead of copying, i try "cat /cdrom/KNOPPIX/KNOPPIX > /ramdisk/KNOPPIX". this goes through fine, but then when i try "insmod cloop.o file=/ramdisk/KNOPPIX", it gives me some error message about something not matching(damn.. can't remember the word right now. it was like "final (something) is 2..(big number) and not 13...(another big number)".

    sooo.. my guess is cat messes up the image on it's way over to the ramdisk. any idea why or how i could fix it?

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    if you want to put a command into the miniroot.gz, put it in /static, but you can't just copy "cp"

    It has to be statically linked, e.g. doesn't link to any librarys. So you'll have to recompile it wil the gcc option --static

  5. #5
    Member registered user
    Join Date
    Jan 2003
    Location
    PEI, Canada
    Posts
    44
    ok! now it makes sense... thanks!

  6. #6
    Member registered user
    Join Date
    Jan 2003
    Location
    PEI, Canada
    Posts
    44
    ok.. a little farther ahead now. I got cp statically compiled, and added it to it's own dir on the CD along with some other stuff from fileutils. Now the problem I'm having is with getting the ramdisk mounted properly with the limit set(otherwise the full cloop image doesn't get copied)

    I downloaded util-linux, set LDFLAGS=-static and compiled them, but mount doesn't seem to want to work anyway. any ideas here?

    thanks again!

Similar Threads

  1. creating a user in miniroot
    By saurav in forum General Support
    Replies: 0
    Last Post: 10-16-2004, 04:31 PM
  2. Trying to create my own miniroot
    By Triorieel in forum General Support
    Replies: 0
    Last Post: 03-26-2004, 11:59 PM
  3. ClusterKnoppix can't find miniroot.gz
    By photon in forum Networking
    Replies: 0
    Last Post: 10-02-2003, 05:59 PM
  4. How to copy the repertory /dev/*, can I copy nodes???
    By gadave in forum Customising & Remastering
    Replies: 2
    Last Post: 07-08-2003, 09:45 AM
  5. How to copy hidden files use 'cp' command?
    By Omak in forum Customising & Remastering
    Replies: 2
    Last Post: 05-11-2003, 12:15 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
  •  


Commodore 128 C128 Computer FOR PARTS / REPAIR Untested Missing Key No Cords picture

Commodore 128 C128 Computer FOR PARTS / REPAIR Untested Missing Key No Cords

$149.99



TeensyROM+ TR+ v0.4 Cartridge for C64/128 - w/ Case & 32GB SD Preloaded picture

TeensyROM+ TR+ v0.4 Cartridge for C64/128 - w/ Case & 32GB SD Preloaded

$89.50



 Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128  picture

Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128

$79.99



Commodore OS USB | Bootable LIVE + Install | The Ultimate Gaming Linux OS | NEW picture

Commodore OS USB | Bootable LIVE + Install | The Ultimate Gaming Linux OS | NEW

$11.99



Commodore 64 Serial Cable 6PIN DIN 1541 1571 C64 128 C128 Disk Drive Printer USA picture

Commodore 64 Serial Cable 6PIN DIN 1541 1571 C64 128 C128 Disk Drive Printer USA

$10.49



Commodore 64 PC with Model 1541 Diskette Drive and Flight Simulator II *READ* picture

Commodore 64 PC with Model 1541 Diskette Drive and Flight Simulator II *READ*

$199.99



Commodore 1541 Emulator PI1541 HAT with ROTARY, OLED screen, USA Seller picture

Commodore 1541 Emulator PI1541 HAT with ROTARY, OLED screen, USA Seller

$29.99



Commodore 64/C64 23 Original Games (Untested /As Is ,no returns )Maniac Mansion  picture

Commodore 64/C64 23 Original Games (Untested /As Is ,no returns )Maniac Mansion

$115.00



Commodore 64 Dead Test & Diagnostic Cartridge & Test Harness Set - USA seller picture

Commodore 64 Dead Test & Diagnostic Cartridge & Test Harness Set - USA seller

$39.99



Commodore 64c Computer System picture

Commodore 64c Computer System

$550.00