Code: Select all
#!/bin/sh -e
#
# rc.local
#
mount -t tmpfs -o size=1024M tmpfs /home
mkdir /home/username
rsync -av /etc/skel/ /home/username
chown username -R /home/username
exit 0
3. Edit /etc/fstab file commenting out (adding # in the front of the line) /home line and adding a new line.
Code: Select all
tmpfs /home tmpfs defaults,size=1024M 0 0
Edit: An intresting thing with ramdisk
http://forums.linuxmint.com/viewtopic.p ... 5#p1058355
sudo mkdir /mnt/ramdisk
sudo mount -t tmpfs -o size=2048m tmpfs /mnt/ramdisk
Add a permanent entry in /etc/fstab (this creates a 2gb Ramdrive that persists after reboots.)
tmpfs /mnt/tmpfs.ramdisk tmpfs nodev,nosuid,noexec,nodiratime,size=2048M 0 0
You can move all /tmp to ram by adding this to fstab (sets an upper limit of 3GB, but you can leave that out or change it):
tmpfs /tmp tmpfs nodev,nosuid,noatime,size=3G,mode=1777 0 0