If your hard drive is getting errors, you can scan for bad sectors and try to fix them with the Check Disk Utility.
Linux can support these workflows, but the experience is less uniform. Sandboxing can restrict access to external drives.
If you need to expand your Mac storage in a big way without breaking the bank, your best bet is with external hard drives.