THREAD NAVIGATION:  
    Where am I?   Original message   Top of thread   Current page 
Displays all thread messages Displays thread map That to which this responds This thread's lead message Your most recent Tavern page

A cool native feature of Linux
05/17/2016, 12:17:37

    Sudo writes:

    You can create ram-disks easily through a terminal, or preferably just putting the commands in a script:
    create_ramdisk.sh:
    #/bin/sh
    size=700000 #700mb
    ramdisk="mmgaming"
    this_user=$(whoami)
    sudo mkfs -q /dev/ram0 $size
    mkdir ~/$ramdisk
    sudo mount /dev/ram0 ~/$ramdisk
    sudo chown $(this_user):users ~/$ramdisk
    sudo chmod u+w ~/$ramdisk

    This creates a ramdisk in your home directory, and authorizes you on it. Must be run in a terminal, as you need to authorize yourself, as sudo (super-user do/act) is used, to give the user temporary super-user permissions.

    So, this way you can play all the old MM games in full speed. Though you have to load one game in at a time, as it's only 700mb. But if you have 16gb of ram, you can run your whole OS and more in ram ^^





Reply to this message   Back to the Tavern  

Replies to this message