I have to drives in my machine a 256ssd and a 1tb hdd I currently have a dual boot setup with 200gb from the hdd going to ubuntu (plan to switch to Manjaro). However this is not ideal due to slow boot times. I want to partion 20 or so gb from my ssd for boot and some essential programs but setup pacman to install the other programs to a folder on the hdd partition.
The main question is how do I make so that if I do âpacman -S some_programâ how do I make it write to a folder on the hdd instead of the ssd.
Aim
SSD 20~40gb:
boot
main programs ( browser, editor etc)
HDD 200gb:
other not as commonly used programs ( 3D slicer software, necessary bloat etc)
You cannot do that â thatâs Microsoft Windows logic. GNU/Linux is a UNIX-family operating system and at the filesystem level, application software is integrated with the rest of the operating system.
The UNIX paradigm is that there is no distinction between system and applications. All executables are merely utilities, and applications are just more tools in the toolbox.
What you can however do is split off certain parts of the filesystem hierarchy onto separate partitions, regardless of whether these partitions exist on the same physical drive or not, or even on another computer in the network.
Especially the section on âWindows has drives, Linux has a hierarchical file systemâ (which contains a subset of the documentation @Aragorn is referring to)
And what you want to do is possible but complex and what you need to do is:
Note the directories where what you consider bloat is installed (you cannot move individual files, only directories)
uninstall the bloat you want to move from the SSD
mount the specific directories noted in step #1 to the HDD in your fstab
reinstall the bloat and now theyâll go to the HDD.
Iâd put /var on the hdd, set 40 to 64 GB (on the ssd) for root and /home on the hdd. Iâd also set the hdd partitions as bcache filesystem, but you need to give up more space on the ssd for that. Iâve been using bcache for a while now. It works preatty well.
Another possibility is to give up at least 32GB in the SSD and set everything on hdd as bcache, but Iâve never set a bcache root. You have info here, though.
For the record, I use bcache for reading and writing and, although the archwiki is centered on btrfs, I never used it. I use ext4. The procedures are the same.
Thank you, I think this is the advice I was looking for I will follow you suggestion have had a bit of a delay windows doesnât seem to want to shrink the ssd volume
I recommend you AOMEI Partition Assistant. Itâs free and very reliable. I used it many times to manipulate Windows partitions. Itâs better to defrag and optimize the volume before shrinking it, because Windows always puts a large chunk of undefragable garbage at the end of the partition, and you need continuous space available to properly move that chunk.