Ubuntu – Move /home partition from SSD to RAID

Having an SSD (solid state disk) store the boot operating system has many advantages and a few disadvantages. One of the main disadvantages being the average SSD life span is a bit more sensitive to read/writes when compared to traditional hard disk drives. This makes moving the /home partition (user data) on the SSD to a traditional hard disk very advantageous. Also, having traditional hard disk drives set up using RAID 1 (mirroring) helps ensure against disk failure.

Having already created the software “FAKERAID” partition using dmraid this guide will cover how to map the partition over as the main /home directory. Following is a simple set of commands to run:
cd /
sudo -s -H
mv /home /home2
mkdir /home
sudo gedit /etc/fstab
(at the bottom add)
/dev/mapper/isw_cbgddidiaj_RAID2p2 /home ext4 defaults 0 0
mount -a
*there are multiple ways to move the data from the old home2 directory to the new home directory*
cp -R /home2/* /home/
rm -r /home2
exit

Most of these steps are taken and adapted from this guide: Ubuntu Wiki Raid

Leave a Reply

Your email address will not be published. Required fields are marked *

*