I think my issue is similar. only I am unsure how to make the necessary updates to to /etc/fstab. I can see it in nano. I want to be careful here.
To be clear I am using a shortcut on my desktop to run a Windows game in wine. It works fine after I go into dolphin and re-mount the windows drive each time. I just want it to mount automatically.
After reading several threads like this I have an idea of what to do, I know I need to add something like:
Ok so I got most of it done, but when I tried to add the label I got this:
sudo ntfslabel /dev/nvme0n1p3 “windows”
Windows is hibernated, refused to mount.
Failed to mount ‘/dev/nvme0n1p3’: Operation not permitted
The NTFS partition is hibernated. Please resume Windows and turned it
off properly, so mounting could be done safely.
I already logged into windows and turned fast start off in the settings. Also hibernate was unchecked, I checked (lol).
No idea why it would think windows is in hibernate, or why it would be.
Also I shut down fully every time I log out of windows because I hardly ever log in.
If you fail to disable those services - Linux will not mount the device.
Create a file using below snippet - paste it into the terminal
sudo tee -a /etc/systemd/system/data-windows.mount > /dev/null <<EOT
[Unit]
Description=My Windows Partition
[Mount]
What=/dev/disk/by-uuid/$(lsblk -no UUID /dev/sda1)
Where=/data/windows
Type=auto
Options=rw,noatime
[Install]
WantedBy=multi-user.target
EOT
start and enable the mount
sudo systemctl enable --now data-windows.mount
Now your windows partition will be available at the path /data/windows
What the first part did was to construct a mount unit - then use tee to write it to the correct location. The UUID is inserted as the result of a command which lists the UUID of the partition in question.