Added Solid State Disk to the web server

Today I bought a Solid State Disk (SSD) ADATA 120GB for $45 and added it to the server in hope the performance will improve.

Root file system is still on the original SD card, I just moved /var directory and the swap file onto the new disk. Mind you that MySQL server, Apache web server, log files etc. are in /var directory.

First I created partition table and partitions with cfdisk. Next I formatted the partition with EXT4 file system, mounted the partition, added an entry in fstab.

Next I switched Linux to single user mode – server was connected to HDMI cable to the TV and USB keyboard (this can’t be done via ssh). Then I moved var folder onto the new partition and created symlink to the original place var should be. Rebooted and everything was back to normal.

It remains to be seen whether performance has been improved, but at least I have plenty of disk space now and also SD cards don’t have much write cycles during their life time.

Update: it is definitely faster. As my data grows, maybe I should buy a bigger disk now- like this Samsung

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>