I'm trying to use 24.10 Oracular Orial and I have an external USB hard drive which I have tried partitioning as MBR, and I also later tried as GPT. Both cases, I created just 1 partition with fdisk. In the case of MBR, I made the partition primary. I did this through terminal by running lsblk. This shows me that /dev/sdb is the disk I'll be targeting.
sudo umount /dev/sdb
sudo fdisk /dev/sdb
I started by either creating a gpt, or an MBR table by either typing g, and pressing enter, or typing o, and pressing enter.
Then I made a new partition by pressing n, and then enter, and accepting all default values. (I want the partition to extend to the entire capassity of the disk, all 2TB.)
Then I wrote the changes by typing w, and pressing enter.
Back at my prompt, I then am running
sudo mkfs.ext4 /dev/sdb
Once done, I close the terminal, then unplug the drive from USB, then plug it back in after about 20 seconds. Here's where the issue then starts. The drive is not mounted to the desktop, nor is it mounted under /media/chris as it should be like any other drive I've plugged in.
This isn't happening if I use mkfs.exfat. It only seems to happen with mkfs.ext4. Ext4 is the only time it won't automount.
I looked with journalctl -u udisks2 /dev/sdb, everything looks fine. dmesg isn't showing anything out of the ordenary either, aside just that the drive isn't being attempted to mount.
If I manually run
udisksctl mount -b /dev/sdb
That works even if the file system is Ext4. But, as soon as I either reboot, or unplug the drive, then plug it back in, it again no longer automounts.
After unplugging, then replugging it in, I can confirm that lsblk absolutely shows the drive correctly with the correct file system, partition layout etcetera.
Also, fdisk -l is showing the disk correctly. It's simply just not mounting on its own.
Once manually mounted with udisksctl, I ran ls -ld /media/chris/Storage (Storage is what I labeled the file system), and it looks like the permissions and ownership of the drive are all correct as well as the actual virtual mountpoint.
When I look in /etc/fstab, I see no entries for /dev/sdb of any sort, but I guess that kinda makes sense, as I don't think Ubuntu adds entries automatically to that file when hotplugging external storage media, does it?
I tried adding udisks_allow_external_ext4=true below the last line of /etc/udisks2/udisks2.conf, then restarting the service
sudo systemctl restart udisks2
Which didn't give me any error or any output when I did so, so I assume it worked. However, even then, after unplugging and replugging in the drive, no good.
I'm just totally at a loss. This is absolutely bonkers crazy! You'd think, if exfat was automounting, then there's absolutely no reason why ext4 wouldn't.
What in the world am I missing! I've been at this all day trying to figure this out, and am no closer to finding an answer than when I started.