I've been trying to combine my SSD and HDD under one partition so my user data ends up on the HDD and everything else ends up on the SSD. However, I've been having the hardest time doing this. Here's what I've done so far:
- I started off just mounting the HDD to the
/mediadirectory and symbolic link the user data folders (that I put on my HDD) into the\homedirectory (that was still on my SSD) but this seemed to cause issues with snap apps (I found out that snap apps run in isolated environments that expect the folders to be directly in the/homedirectory, so symbolic linking isn't going to work) - I completely wiped my Ubuntu installation and manually setup LVM on the SSD and made a non-LVM partition on my HDD that mounts directly to the
/homedirectory, but the capacity of the HDD isn't showing up at all on Nautilus (but it does appear in the Disks app).
So now, I'm at a lost of what to do to make both drives' capacities appear in the file explorer (while keeping them all under the same partition so my snap apps work) all while using LVM (since I plan on upgrading the drives soon).
101 Answer
- Make a backup of your important data
- Create ext4 partition using the whole hdd disk for this in GParted.
- Log off from desktop environment
- Switch to tty3: Ctrl+Alt+F3
- Log in as root
- Mount your hdd to
/mnt:sudo mount /dev/sdXX /mnt - Move everything from
/homeon ssd to your hdd in/mnt/:mv /home/* /mnt/ - Umount hdd partition:
umount /mntand/homeif it is present in fstab. Also comment out current mount point record for/homeon SSD in fstab. Add hdd
/homemount point to/etc/fstab/dev/sdXX /home ext4 defaults 0 2where
sdXX- your hdd partition.