I have a Lenovo 80Q0001NUS laptop that uses a 128 GB SSD and a 1 TB HDD. Both drives now use GPT, and I need to use both Windows and Linux (OpenSUSE) via dual boot. I have my drives partitioned in this way (most names are not the same as my partition or label names but are used to make this question useable for as many different users as possible):
SSD
/dev/sda1 BOOT ESP (FAT32)
/dev/sda2 Windows C (NTFS)
/dev/sda3 Linux Distro Root (BTRFS)
/dev/sda4 Linux Swap (Swap)HDD
/dev/sdb1 NTFS Storage (Partition for Windows) (NTFS)
/dev/sdb2 EXT4 Storage (Partition for Windows with Ext2Fsd and Linux) (EXT4)
/dev/sdb3 BTRFS Storage (Partition for Linux) (BTRFS)
I use:
- sda2 as my Windows C Drive,
- sda3 for my Linux Root stuff;
- sdb1 for anything for Windows that will take too much room on my C drive (which is 50-80 GB depending on how I have my partitions setup at the time);
- sdb2 as my storage for my pictures, videos, Linux software, music, isos, and other files that I need to share between operating systems as well as to be stored under a more personally preferred filesystem format (my most preferred is
btrfs
because of its features and potential as a Linux standard replacement for ext4); - sdb3 for the rest of my Linux stuff that will use too much space on my SSD partition for Linux.
I am hoping to be able to install OpenSUSE in a way where I have:
- folders like /lib, /lib64, /usr, /opt, /home, /etc, etc. installed on the hard drive partition
- and anything else installed on the SSD partition.
However,
- I am not trying to say I surely want all of the mentioned directories and everything in them on the hard drive partition.
- Plus, I don't want to make my sdb3 partition dedicated for just /home or just /usr/local (or any other mountpoint directory already given as choices).
- I want sda3 to hold all of the "base stuff" for OpenSUSE.
- If I install many libraries, packages, etc., they won't all fit in the SSD partition. I need most of my software, libraries/packages, etc. to be installed on the much larger partition sdb3. That way, OpenSUSE will still receive some benefit from my SSD's performance.
Is there a way to configure the OpenSUSE installation so that it will install the "base stuff" on the ssd and then create the library, package, and home directories on the hard drive partition for the additional software I download and install? If possible, please give me the answer that will work for most Linux distributions so that this question can be used as a reference for those distros as well.