<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shravan Omanakuttan</title>
    <description>The latest articles on DEV Community by Shravan Omanakuttan (@sxrxvxnn).</description>
    <link>https://dev.to/sxrxvxnn</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4047818%2Fa505caa2-82af-4647-85da-842f58fe814a.jpg</url>
      <title>DEV Community: Shravan Omanakuttan</title>
      <link>https://dev.to/sxrxvxnn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sxrxvxnn"/>
    <language>en</language>
    <item>
      <title>How I Freed 15GB on My 256GB MacBook and Made an External SSD My Primary Storage (With 46 Automation Scripts)</title>
      <dc:creator>Shravan Omanakuttan</dc:creator>
      <pubDate>Sun, 26 Jul 2026 10:59:55 +0000</pubDate>
      <link>https://dev.to/sxrxvxnn/how-i-freed-15gb-on-my-256gb-macbook-and-made-an-external-ssd-my-primary-storage-with-46-55i8</link>
      <guid>https://dev.to/sxrxvxnn/how-i-freed-15gb-on-my-256gb-macbook-and-made-an-external-ssd-my-primary-storage-with-46-55i8</guid>
      <description>&lt;p&gt;My MacBook's internal storage was full. Not "almost full" — &lt;strong&gt;full&lt;/strong&gt;. No more space for new projects, no room for dependencies, constant "Your disk is almost full" alerts.&lt;/p&gt;

&lt;p&gt;I had a 1TB external SSD sitting on my desk doing nothing.&lt;/p&gt;

&lt;p&gt;So I built a system to use the SSD as my Mac's primary storage — transparently, automatically, with a full terminal menu and 18 scheduled automation scripts running in the background.&lt;/p&gt;

&lt;p&gt;Here's exactly how I did it, and how you can too.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;256GB internal SSD. Here's what was eating it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Notion app data&lt;/td&gt;
&lt;td&gt;7.7G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Chrome cache&lt;/td&gt;
&lt;td&gt;7.4G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude desktop&lt;/td&gt;
&lt;td&gt;6.8G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OperaGX&lt;/td&gt;
&lt;td&gt;1.6G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VS Code&lt;/td&gt;
&lt;td&gt;1.7G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discord&lt;/td&gt;
&lt;td&gt;998M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Whisky (unused)&lt;/td&gt;
&lt;td&gt;854M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wondershare installer&lt;/td&gt;
&lt;td&gt;493M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TabNine models&lt;/td&gt;
&lt;td&gt;477M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;.rustup&lt;/code&gt; toolchain&lt;/td&gt;
&lt;td&gt;1.4G&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;.android&lt;/code&gt; SDK&lt;/td&gt;
&lt;td&gt;515M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;.pub-cache&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;434M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;.nvm&lt;/code&gt; Node versions&lt;/td&gt;
&lt;td&gt;204M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;.npm&lt;/code&gt; cache&lt;/td&gt;
&lt;td&gt;460M&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's &lt;strong&gt;~30GB&lt;/strong&gt; in things that either don't need to be on the internal drive or can be moved transparently.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Solution: SSD as Primary Storage via Symlinks
&lt;/h2&gt;

&lt;p&gt;The core idea is simple. macOS follows symlinks transparently — apps and tools have no idea they're reading from an external drive.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Move Downloads to SSD&lt;/span&gt;
&lt;span class="nb"&gt;mv&lt;/span&gt; ~/Downloads /Volumes/007/Downloads
&lt;span class="nb"&gt;ln&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt; /Volumes/007/Downloads ~/Downloads

&lt;span class="c"&gt;# Now everything that writes to ~/Downloads&lt;/span&gt;
&lt;span class="c"&gt;# actually writes to the SSD — no config changes needed&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I did this for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;~/Downloads&lt;/code&gt;, &lt;code&gt;~/Documents&lt;/code&gt;, &lt;code&gt;~/Desktop&lt;/code&gt;, &lt;code&gt;~/Movies&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;All Dev projects (&lt;code&gt;leadgen-platform&lt;/code&gt;, &lt;code&gt;linkedin_automate&lt;/code&gt;, etc.)&lt;/li&gt;
&lt;li&gt;Toolchains: &lt;code&gt;.rustup&lt;/code&gt;, &lt;code&gt;.cargo&lt;/code&gt;, &lt;code&gt;.android&lt;/code&gt;, &lt;code&gt;.nvm&lt;/code&gt;, &lt;code&gt;.npm&lt;/code&gt;, &lt;code&gt;.m2&lt;/code&gt;, &lt;code&gt;.gradle&lt;/code&gt;, &lt;code&gt;.pub-cache&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Result: 36GB freed on internal. Mac went from 96% full to 68% full in one session.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Automation Layer
&lt;/h2&gt;

&lt;p&gt;Moving files manually is a one-time fix. The real value is automation. I built 27 shell scripts and wired them to macOS launchd.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;ssd&lt;/code&gt; — Terminal Menu for SSD Management
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ╔═══════════════════════════════════════════════════════════════════════╗
  ║                      ◈  SSD TOOLS — 007  ◈                           ║
  ╚═══════════════════════════════════════════════════════════════════════╝

  ● SSD 007   899G free / 33G used       ● Mac Internal  36G free / 17G used

  STORAGE &amp;amp; SYSTEM
  ┌──────┬──────────────────────┬────────────────────────────────────────┐
  │  1   │  mount-check         │  Check SSD mount + symlink health      │
  │  2   │  cache-cleanup       │  Clear caches (Library, npm, pnpm)     │
  │  3   │  low-disk-alert      │  Check internal Mac free space         │
  │  7   │  duplicate-finder    │  Scan SSD for duplicate files          │
  │ 12   │  ssd-health          │  SSD space + fill prediction           │
  └──────┴──────────────────────┴────────────────────────────────────────┘

  DEV &amp;amp; CODE
  ┌──────┬──────────────────────┬────────────────────────────────────────┐
  │  5   │  dev-backup          │  Rsync active projects to backup       │
  │  9   │  git-status          │  Uncommitted changes across projects   │
  │ 20   │  env-backup          │  Backup all .env files                 │
  │ 25   │  focus-mode          │  Block distractions (25min)            │
  └──────┴──────────────────────┴────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;code&gt;mac&lt;/code&gt; — Terminal Menu for Mac System Tools
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ╔═══════════════════════════════════════════════════════════════════════╗
  ║                    ◈  MAC TOOLS — SHRAVAN  ◈                         ║
  ╚═══════════════════════════════════════════════════════════════════════╝

  CPU 12%   Battery 100% (charged)   Uptime 2 days
  Wifi HomeNetwork   IP 192.168.1.6

  SYSTEM        APPS           MAINTENANCE      SECURITY        POWER
  system-stats  kill-hogs      clear-caches     firewall-status caffeinate
  battery-health app-usage     brew-update      open-ports      sleep-timer
  wifi-info     startup-items  run-all-agents   lock-screen     battery-saver
  processes     force-quit     large-files      ssh-keys
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  The 18 Scheduled LaunchAgents
&lt;/h2&gt;

&lt;p&gt;These run automatically via macOS launchd — no cron, no manual triggers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Check what's running&lt;/span&gt;
launchctl list | &lt;span class="nb"&gt;grep &lt;/span&gt;shravan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Agent&lt;/th&gt;
&lt;th&gt;Schedule&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;dev-backup&lt;/td&gt;
&lt;td&gt;Nightly 11pm&lt;/td&gt;
&lt;td&gt;Rsync projects to SSD backup, keeps 7 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dotfiles-backup&lt;/td&gt;
&lt;td&gt;Nightly 10:30pm&lt;/td&gt;
&lt;td&gt;Backup .zshrc, .gitconfig, SSH config&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;env-backup&lt;/td&gt;
&lt;td&gt;Nightly 10pm&lt;/td&gt;
&lt;td&gt;Backup all .env files, keeps 14 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cache-cleanup&lt;/td&gt;
&lt;td&gt;Monday 9am&lt;/td&gt;
&lt;td&gt;Clear Library/Caches, npm, pnpm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;git-status&lt;/td&gt;
&lt;td&gt;Daily 9am&lt;/td&gt;
&lt;td&gt;Report uncommitted changes across all projects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dep-audit&lt;/td&gt;
&lt;td&gt;Monday 10am&lt;/td&gt;
&lt;td&gt;npm vulnerability scan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ssd-health&lt;/td&gt;
&lt;td&gt;Daily 10am&lt;/td&gt;
&lt;td&gt;Space usage + fill rate prediction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;low-disk-alert&lt;/td&gt;
&lt;td&gt;Every hour&lt;/td&gt;
&lt;td&gt;Alert if Mac internal &amp;lt; 5GB free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ram-monitor&lt;/td&gt;
&lt;td&gt;Every 5min&lt;/td&gt;
&lt;td&gt;Log RAM usage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;battery-logger&lt;/td&gt;
&lt;td&gt;Daily 12pm&lt;/td&gt;
&lt;td&gt;Log battery cycles + health&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Serial Lock: SSD Only Works on My Mac
&lt;/h2&gt;

&lt;p&gt;I didn't want the SSD to work if stolen. So I built a serial number lock:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/zsh&lt;/span&gt;
&lt;span class="nv"&gt;AUTHORIZED_SERIAL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"CPWY0XTG9Y"&lt;/span&gt;
&lt;span class="nv"&gt;CURRENT_SERIAL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;system_profiler SPHardwareDataType | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="s2"&gt;"Serial Number"&lt;/span&gt; | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'{print $NF}'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$CURRENT_SERIAL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$AUTHORIZED_SERIAL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
  &lt;/span&gt;diskutil eject disk5
  osascript &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;'display alert "Unauthorized Mac. SSD ejected." as critical'&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This fires automatically via a WatchPaths LaunchAgent whenever the SSD mounts. Wrong Mac → instant eject.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Install Script
&lt;/h2&gt;

&lt;p&gt;The whole toolkit is packaged with a one-command installer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/sxrxvxnn/mac-ssd-toolkit
&lt;span class="nb"&gt;cd &lt;/span&gt;mac-ssd-toolkit
./install.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It asks for your username, SSD volume name, and project names — then configures everything, installs LaunchAgents, and adds aliases to &lt;code&gt;.zshrc&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;23GB free&lt;/td&gt;
&lt;td&gt;36GB free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manual backups&lt;/td&gt;
&lt;td&gt;Nightly automated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No disk monitoring&lt;/td&gt;
&lt;td&gt;Hourly alerts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scattered dotfiles&lt;/td&gt;
&lt;td&gt;Nightly backup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No SSD security&lt;/td&gt;
&lt;td&gt;Serial lock&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;The repo is open source and looking for contributors. If you have ideas for new scripts — storage tools, dev workflow automation, system monitoring — open an issue or PR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/sxrxvxnn/mac-ssd-toolkit" rel="noopener noreferrer"&gt;github.com/sxrxvxnn/mac-ssd-toolkit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ideas already in the backlog:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Git commit streak tracker&lt;/li&gt;
&lt;li&gt;Wifi speed daily logger&lt;/li&gt;
&lt;li&gt;Auto-organize Downloads by file type&lt;/li&gt;
&lt;li&gt;Monthly storage trend report&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're a Mac developer with limited internal storage, give it a try. One command and you're set up.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built while working as a BD intern at Beagle Security, building &lt;a href="https://github.com/sxrxvxnn/leadgen-platform" rel="noopener noreferrer"&gt;Sonar&lt;/a&gt; — an Apollo-style B2B intelligence platform.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>productivity</category>
      <category>terminal</category>
      <category>opensource</category>
      <category>macos</category>
    </item>
  </channel>
</rss>
