Results 1 to 3 of 3

Thread: help me understand the symlinks on /ramdisk

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    help me understand the symlinks on /ramdisk

    Hi all,

    When booting knoppix from CD, I see a line that says:

    Code:
    Creating directories and symlinks on /ramdisk...Done
    But I can't find that step in the init scripts anywhere.

    I want to build a box that will boot from the hard drive, but basically treat the hard drive like a read-only filesystem (just like the CD). It should mount /dev/hd? as ro, so the system coudl be used (and abused) and then be recovered with a reboot.

    Can anybody give me a hint on how the root filesystem and all the symlinks on the ramdisk are created when bootinf from CD, so I can mimick it with a hard drive install?

    Thanks!

    Al

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Knoppix loads the kernel and mini root partition from /KNOPPIX-CD-ROOT/boot/isolinux. If you use the 2.4 kernel on knoppix then the kernel loaded is linux24 and the mini root is minirt24.gz. If you use the 2.6 kernel on knoppix then the kernel loaded is linux26 and the mini root is minirt26.gz. You can view the mini root by copying it to another location, unziping it, and loop mounting it.
    Code:
    cd $HOME
    cp /KNOPPIX-CD-ROOT/boot/isolinux/minirt24.gz ./
    mkdir foobar
    gunzip minirt24.gz
    sudo mount -t ext2 -o loop minirt24 ./foobar
    Inside the minirt you will find a executable script named linuxrc. This linuxrc script is init script for Knoppix.
    #!/static/sh
    #
    # KNOPPIX General Startup Script
    # (C) Klaus Knopper (knoppix@knopper.net)
    #
    #
    # This script needs some of the builtin ash commands (if, test, ...)
    # mount/umount, insmod/rmmod are also a builtin in ash-knoppix
    #
    Line at about line 612 to 618 is where the symlinks get created.
    I hope this helps.
    James

  3. #3
    Senior Member registered user
    Join Date
    Mar 2005
    Posts
    103
    UnderScore

    I think this will help me solve my issue also. I am trying to start vdr from withen my CD. vdr requires a folder called /video. I copied this folder to my remaster sources folder. After compression it became /KNOPPIX/video so vdr was not able to see it. So, I want to create a symilink /video to /KNOPPIX/video at start up. I have done several things using the above as follows but all failed:
    1- I added a line in linuxrc with code: ln -s /KNOPPIX/video /video
    2- I added a line in linuxrc with code: ln -s /KNOPPIX/video /
    3- I created a folder /video in ./foobar and made the above similink, but the system ignored that folder.
    4- I created a similink at ./foobar to /KNOPPIX/video and same thing it was ignored.
    I tried many other thing.
    Can you sugesst any thing else?

Similar Threads

  1. knoppix 511 eng ask me something I don't understand....
    By armanso in forum Hardware & Booting
    Replies: 3
    Last Post: 03-14-2007, 02:29 PM
  2. don't understand all IP stuff
    By csodabogar in forum Networking
    Replies: 4
    Last Post: 06-27-2006, 08:29 PM
  3. please telk for me easy to understand.Thank!
    By lytieulongcon in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 11-09-2004, 12:07 PM
  4. Two things about remastering I dont understand.
    By estranged in forum Customising & Remastering
    Replies: 2
    Last Post: 09-25-2003, 09:39 PM
  5. Replies: 2
    Last Post: 01-21-2003, 03:22 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
  •  


HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB picture

HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB

$59.00



G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5

G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5" SSD 0G5T03 SSDSC2BA800G3E

$55.00



Brand New 128GB-240GB-256GB-512GB 2.5 inch SATA3 Solid State Drive 2.5

Brand New 128GB-240GB-256GB-512GB 2.5 inch SATA3 Solid State Drive 2.5" SSD

$17.99



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$14.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$13.99



Samsung - Geek Squad Certified Refurbished 980 PRO 1TB Internal SSD PCIe Gen ... picture

Samsung - Geek Squad Certified Refurbished 980 PRO 1TB Internal SSD PCIe Gen ...

$71.99



Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$209.99



Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5

Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5" SATA III 6GB/s for PC/MAC Lot

$178.19