After a few seconds, you should have your new drive mounted and ready.
Let’s test it out. In my case, my drive is named ‘Projects’ and is mounted in MacOS in the
cd /Volumes/Projects/ touch test touch Test ls
The output is:
So I know now that my drive is case sensitive.
There’s no real reason why I have all my code in the
~/Sitesfolder - I’m using containers and virtual machines, but that’s where I have it.
I want to move all of my projects from my Sites folder to this new drive. (Keep in mind, with the updated filesystem that they’re going to, some of the projects might need some tweaks then. Perhaps you have some case-insensitive code that will need to be updated. This is a little headache now for a lot of benefit in the long run.)
mv ~/Sites ~/Sites_backup ln -s /Volumes/Projects ~/Sites mv ~/Sites_backup/* ~/Sites rm -rf ~/Sites_backup
First, we move our data to a different folder. Then, make a symbolic link from your volume to the location that you’d like to keep your files. I want to stay with my Sites folder name. Finally, move all the content from your back up file to your new drive (and delete the backup folder). Please note that this may take a while, depending on the size of your files. You are moving from one drive to another.
I don’t like being cavalier with my files, and I was a little bit nervous to do this because I haven’t fully tested out this process. However, all of my project files are in version control (except for any “user content” I use during testing), so I’m not worried.
There are a few down-sides to this method (I can’t seem to get the Sites folder icon to return to the same that it was before, for example.) But one that I can solve: having the Projects icon on the desktop by default. I wanted that gone.
CDs, DVDs and iPodsif it checked.
This will also hide your CDs and iPods if they’re attached… but for me, that’s not a big deal.
I can already tell the speed. On the SD card, using Jekyll to compile this blog takes about 29 seconds. On the SSD directly, it takes 16 seconds. A set of 987 unit tests with PHPUnit take 19 seconds on the SSD, but are taking about 28 seconds on the SD card.
Second, SD cards are known to use up battery life (I also notice that my fan seems to be spinning up a little bit more, too.)
A final, really silly issue: When you’re on the command line and you try to
cd to a folder using tab auto-complete, it puts the trailing slash at the end. With a symbolic link, it does not. You don’t need the trailing slash for the change directory command to work, though. But most other places, when you tab and there is no trailing slash, it tends to indicate that there are multiple matches. In this case, there is not one.
Hopefully in a week or so, I’ll revisit this and see if this was a good idea. :)
Return to All Posts