I have a 1TB HDD. Completely formatted it to free space in the Disks program and made a 500GB EXT4 partition to have the other 500GB for Windows, just in case. Looked up guides and threads on how to make it mount itself automatically on boot so I added PARTUUID=ba69b10a-b371-4ca0-a2af-8cfd309e34a3 /hdd ext4 defaults 0 2
to the end of /etc/fstab
.
This method WORKED for a few restarts until one reboot when I was thrown into emergency mode root. Rebooted into recovery mode which in itself took a while because stuff kept timing out and when I recognized the PARTUUID in one of the messages I knew that was it. I entered root and commented my changes which got Ubuntu to boot normally.
I didn't catch any errors explaining what had happened or why so I'm asking here. While I can manually mount the drive everytime I restart or boot, it's very annoying.
Previously I had problems mounting the drive from the console when I had created the partition from Disks app: mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error
which I fixed by running mkfs.ext4 /dev/sda1
and then mounting it again. But then the drive was read-only and I still just formatted everything in Disks app and recreated the 500GB EXT4 partition.
Clearly something is up with either my HDD or Ubuntu or both. The drive mounts normally when done from Disks app however. How can I have my HDD automount everytime I boot without problems?