Hi, I have had similar problems in the past and I found that I could add the drive to /etc/fstab and have the drives partition/s mounted automatically at boot using the uuid for the partition or the drive designation, like /dev/nvmexxxxx (/dev/nvme0n1p3 in my case, I'll use that discriptor in this example).
The information you'll need may be found using lsblk, blkid. you may need root access to get one of those to give you a read out.
lsblk
Code:
...
nvme0n1 259:0 0 1.8T 0 disk
├─nvme0n1p1 259:1 0 8M 0 part
├─nvme0n1p2 259:2 0 44.7G 0 part /
├─nvme0n1p3 259:3 0 23.9G 0 part /usr
├─nvme0n1p4 259:4 0 14.4G 0 part [SWAP]
├─nvme0n1p5 259:5 0 10.8G 0 part /tmp
...
blkid
Code:
...
/dev/nvme0n1p5: UUID="c3737cc7-39d2-4106-ada8-bec1b1854c67" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="snipped, not required for this demonstration"
/dev/nvme0n1p3: UUID="1c1068d5-59ae-4294-9e86-614b0db16e95" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="snipped"
/dev/nvme0n1p1: PARTUUID="9c56b000-efdb-4a61-b035-7ce9ba198261"
/dev/nvme0n1p4: UUID="0b2464d0-641c-46f7-a472-ffcee19dc462" TYPE="swap" PARTUUID="snipped"
/dev/nvme0n1p2: UUID="ce6a2394-4d9b-47f2-b000-68ad43fc2a4a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="snipped"
...
note, /dev/nvme0n1p1 is not mounted, but is a system boot partition.
Then you could add the info to fstab like so,
add the lines for the partition. The comment (#) is for your information and is not read by the system.
Code:
# /dev/nvme0n1p3:
UUID=1c1068d5-59ae-4294-9e86-614b0db16e95 /usr ext4 defaults 0 2
The directory must exist, you could add it to the $USER home directory, not /usr... in this example.
If the directory is in /media/(some-name) you may have to set permissions for it after you mkdir /media/(some-name)
Code:
mkdir /media/(some-name)
chown -hR user:usergroup /media/(some-name)
chmod -R 755 /media/(some-name)
I hope this helps, regards Glenn