I recently got an SSD for my computer. Therefore I reinstalled my system and mounted /
on /dev/sda1
(which is a partition on the SSD).
To protect the SSD, I managed to mount /tmp
on the RAMdisk. However, I would also want some other folders to be outsourced, not on the SSD but on my RAID1.
The following folders should be outsourced:
/var/log
/var/cache
/var/games
/var/tmp
- (do you have any other suggestions?)
I tried to simply mount those folders on a RAID-partition, just like I did with /tmp
(find a part of my /etc/fstab
below). Now I know, this was not the right way, instead I would have to use bind
.
I would need your help for the following issues:
- What preparations are necessary on the RAID (what about permissions, especially)?
- What are the propper mount options in
/etc/fstab
? - Now that I have done it the wrong way, how would I migrate the data to the correct place (and is this even necessary for those folders?)
a wrong part of my /etc/fstab
<raid uuid>
is the same for all of these lines
UUID=<raid uuid> /var/log ext4 noexec,nodev,nosuid 0 0
UUID=<raid uuid> /var/cache ext4 noexec,nodev,nosuid 0 0
UUID=<raid uuid> /var/games ext4 noexec,nodev,nosuid 0 0
UUID=<raid uuid> /var/tmp ext4 noexec,nodev,nosuid 0 0
UUID=<raid uuid>
the same or 4 different ones? – John Siu Feb 7 '13 at 21:20/var
instead of 4 individual partitions? And why not use standarddefaults
options when mounting? – Karlson Feb 7 '13 at 21:25cache
? Is it a typo? – John Siu Feb 7 '13 at 21:52