How Do I Make A Secondary Drive Accessible Through The Main Directory Or In A Way Where Programs That Don't Have A Means To Access It In Their System
I know that title was a bit convoluted, but I am running on 22.04, I have a Samsung M.2 SSD, and Seagate HDD both connected directly to the motherboard. The issue I keep running into is the secondary drive (HDD) that the OS "IS NOT" installed on is only accessible through "Other Locations" under the "Files" program. When I attempt to save a new file to the HDD like lets say in Blender, the "Directories" that are available only go as deep as the folder above "Home". Certain programs like Steam have an option in the settings under storage to add an additional storage device, but in most situations I have run into that isn’t the case.
I am brand new to the Linux system, and kind of am learning as I go. Another issue I am running into which I am not sure whether or not may have something to do with some of my current issues, the HDD appears differently in the "Disks" program then the SSD. I formatted the HDD when I first started installing and updating, but it appears to be full even though it allows me to write to the disk, and the disk is brand new.
I have attempted a few different fixes, but I fear I am in a bit over my head the last attempt some how wiped out the "Home" directory and the only thing I could get to run was "Terminal". So I ended up just reinstalling Ubuntu from the boot menu. This is my first custom built PC, and every OS I have run up to this point has been a Windows. The goal was to build a PC for the purpose of running art, modeling, and game engine work. Windows did not fit into that equation.
So like the title says I need a way to make the HDD accessible to all programs, regardless of program configurations.
I included a picture of the "Disks" program if that helps any I have others but I only able to attach one. I assume I am probably doing something wrong. I appreciate any help, because like I said I am learning, and thank you in advance for your effort and consideration.
I think you will achieve what you are asking about with the following steps.
- Create a new folder in your home directory such as “data”.
- Edit your /etc/fstab file and add an entry to mount your HDD to /home/user/data when the system boots.
- Having done the above the entire filesystem of the HDD will appear below the data folder in your home directory. Hopefully this is what you want.
There are plenty of guides online describing how to do these steps if you don’t know how. Your fstab entry should be something like
/dev/sda /home/user/data ext4 defaults 0 0
I noticed that your HDD is not partitioned and that the entire device has an ext4 filesystem. This will work but conventionally you would place one or more partitions on the HDD and then add the filesystem. Without a partition the filesystem is at /dev/sda. Most guide’s expect partitions such as /dev/sda1.
So I have gone back and forth with this, trying to do this in "Terminal" and definitely need to learn more about the "Terminal" commands but I may have solved my own problem on accident. So first I am on 22.04 so it may differ for earlier versions, but
First go to your "Home" directory and copy the directory you want to be your access point for the disk
go into "Disks"
select the "Disk" you are trying to make accessible through the "Home" directory
Main click (Left Click for me) on "Additional Partition Options" (the gear Icon next to the start/stop button)
go to "Edit Mount Options"
"Paste" the location of the folder in the "Home" directory you want to make the access point
Verify and restart your PC.