Results 1 to 9 of 9

Thread: add "toram" arguments for /var and /usr/local

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Posts
    5

    add "toram" arguments for /var and /usr/local

    I love knoppix. I use it "live" (uninstalled) in a variety of situations. I'm looking for an easy workaround that allows apt-get to use the ramdisks for its operations.

    The earliest I've seen this mentioned is July 2003. Having looked at the newest cheatcodes, here's my proposal:

    Add to the "toram" option, allowing /usr/local and /var to be individually specified. This would allow a machine of modest means to be reconfigurable/extendable without HD installation.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159

    Re: add "toram" arguments for /var and /usr/local

    You would need approx. 2 gb of RAM for /usr
    You really need a translucency/overlay filesystem for what you want to to. But these where not usable with Knoppic in a stable way yet last time I checked.

  3. #3
    Junior Member
    Join Date
    Jun 2004
    Posts
    5
    >You would need approx. 2 gb of RAM for /usr

    Right.
    Allow me to restate my proposal.
    I plan to mount /usr/local separately.

    Honestly, a "fresh" linux instillation *should* have an empty /usr/local.
    Similarly, /var and /etc are primarily "dynamic" & site-specific

    Why not mount these dynamic "local" filesystems into RAM whenever possible?

  4. #4
    Junior Member registered user
    Join Date
    Jun 2004
    Posts
    16
    I agree with this concept.

    It would be ideal to be able to use TORAM with only certain directories or filesystems, rather than the way it is, which is "all or nothing", because who has enough ram for the entire CD?

  5. #5
    Junior Member
    Join Date
    Jun 2004
    Posts
    5
    Quote Originally Posted by airplays
    I agree with this concept.

    who has enough ram for the entire CD?
    Indeed. Maybe in 2-4 years...

    I realize that the problem is designing a sane mount table. It seems that "mounting over" gives the most obvious solution.

    Let's try the following simple hack as root on command line:

    Code:
    # cp -rp  /var  /ramdisk/my_var
    # cp -rp  /usr/local  /ramdisk/my_local
    # mount /ramdisk/my_var  /var
    # mount /ramdisk/my_local /usr/local

  6. #6
    Junior Member
    Join Date
    Jun 2004
    Posts
    5
    Quote Originally Posted by helmingstay

    Let's try the following simple hack as root on command line:
    Hahahah. That was funny. If only it were so easy...
    Here is what (sortof) works (with >256M RAM, pref 512M):

    [code]
    dd if=/dev/zero of=/ramdisk/tmpfile \
    bs=1k count=200000
    losetup /dev/loop0 /ramdisk/tmpfile
    mkfs -t ext2 /dev/loop0
    mount /dev/loop0 /mnt
    cp -rp /KNOPPIX/var/* /mnt
    umount /mnt
    mount /dev/loop0 /var

    ----------
    Note: If you don't have a HD partition, but you do have room on a rw HD partition, you can mount that and substiture
    /yourHDpart/yourKnoppixDir for /ramdisk/tmpfile. Then, next boot, you just use the "losetup" and "mount var" commands.

  7. #7
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297
    Quote Originally Posted by helmingstay

    Let's try the following simple hack as root on command line:

    Code:
    # cp -rp  /var  /ramdisk/my_var
    # cp -rp  /usr/local  /ramdisk/my_local
    # mount /ramdisk/my_var  /var
    # mount /ramdisk/my_local /usr/local
    You almost had it .

    Working:

    Code:
    # cp -rp  /var  /ramdisk/my_var
    # cp -rp  /usr/local  /ramdisk/my_local
    # mount --bind /ramdisk/my_var  /var
    # mount --bind /ramdisk/my_local /usr/local
    No need to hassle ...

    cu

    Fabian

  8. #8
    Member
    Join Date
    Oct 2003
    Posts
    55
    How about:

    cp -pRH /usr/local /ramdisk
    ln -sf /usr /ramdisk/local

  9. #9
    Junior Member
    Join Date
    Jun 2004
    Posts
    5
    Quote Originally Posted by TyphoonMentat
    ln -sf /ramdisk/local /usr
    Ah, but you can't write to /usr, can you? :)

    Quote Originally Posted by Fabianx
    Working:
    Code:
    # cp -rp  /var  /ramdisk/my_var
    # cp -rp  /usr/local  /ramdisk/my_local
    # mount --bind /ramdisk/my_var  /var
    # mount --bind /ramdisk/my_local /usr/local
    Quote Originally Posted by man mount
    Since Linux 2.4.0 it is possible to remount
    part of the file hierarchy somewhere else. The call is
    #mount --bind olddir newdir
    Awesome! Ah, sweet commandline...

    Now if only Debian would create a politically stable mechanism whereby apt-get can download packages for manual install into someplace like /usr/local <big pet peeve; i can't find the relevant flamewar link just now...>

Similar Threads

  1. Problem with "toram" option with my remaster
    By Gromit in forum Customising & Remastering
    Replies: 1
    Last Post: 04-08-2005, 05:01 AM
  2. DVD toram(For 2gb DISC Klaus sez 3GB req"d in ram)
    By lilsirecho in forum Knoppix DVD
    Replies: 8
    Last Post: 10-05-2004, 05:11 PM
  3. "Connection Reset by Peer" or "hang"
    By oreo in forum General Support
    Replies: 11
    Last Post: 07-23-2003, 06:33 PM
  4. "Foreign" drive formats and "dd" command
    By geebee2000 in forum Hardware & Booting
    Replies: 9
    Last Post: 05-21-2003, 07:29 PM
  5. Locate Knoppix "group" in "K" menu
    By Juny in forum General Support
    Replies: 4
    Last Post: 03-14-2003, 09:02 AM

Posting Permissions

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


Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit NEW picture

Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit NEW

$13.89



V3 Robot Vacuum and Mop Combo,Self-Charging,5000pa Strong Suction,WiFi/Alexa NIB picture

V3 Robot Vacuum and Mop Combo,Self-Charging,5000pa Strong Suction,WiFi/Alexa NIB

$82.00



Trucozie Cordless Vacuum Cleaner, Self-Standing Lightweight Stick Vacuum New Ope picture

Trucozie Cordless Vacuum Cleaner, Self-Standing Lightweight Stick Vacuum New Ope

$89.00



KARDV Cordless Vacuum Cleaner, 500W/40Kpa Vacuum Cleaners for Home, 60Mins St... picture

KARDV Cordless Vacuum Cleaner, 500W/40Kpa Vacuum Cleaners for Home, 60Mins St...

$64.99



Cordless Handheld Vacuum Cleaner Compatible with DeWalt 20V Battery picture

Cordless Handheld Vacuum Cleaner Compatible with DeWalt 20V Battery

$103.98



US Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kits picture

US Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kits

$13.89



🔥 OEM Shark Cordless Vacuum Charger DK33-248080H-U for Shark Rocket picture

🔥 OEM Shark Cordless Vacuum Charger DK33-248080H-U for Shark Rocket

$18.75



Paladone USB Desk Vac Novelty Upright Mini Computer Vacuum Retro Vintage picture

Paladone USB Desk Vac Novelty Upright Mini Computer Vacuum Retro Vintage

$59.99



Compressed Air Duster & Vacuum, 320000RPM Rechargeable Mini Electric Blower picture

Compressed Air Duster & Vacuum, 320000RPM Rechargeable Mini Electric Blower

$44.99



WeePro Compressed Air Duster 180000RPM Cordless Mini Turbo Fan, 3-Speed Vacuum picture

WeePro Compressed Air Duster 180000RPM Cordless Mini Turbo Fan, 3-Speed Vacuum

$149.99