Problems Mounting Drives, not NTFS, in Ubuntu 24.04

THIS PROBLEM IS REAL. I installed 24.04 from scratch, twice now. I duplicated the identical setup I had with 22.04, the same hardware, the same fstab.

24.04 does NOT automount BTRFS drives listed in fstab, that had no problems being automounted in 22.04. Under 24.04 the drives will only manually mount to the locations in fstab.

This is NOT a case of windows - there is NO windows, and NO ntfs drives installed on the machine. The BTRFS drive that will NOT automount is a BTRFS drive created in 22.04 and checks out with NO errors with the BTRFS scrub and check.

Does anyone know how to fix this?

So why are you hijacking this thread then, this thread is completely about mounting ntfs volumes (which obviously the ntfs kernel driver refuses in newer releases when the drive is not clean to prevent data corruption) …

Your issue has obviously nothing to do with the original topic at all, pretty please open a new topic …

@alphacrasher Welcome to Ubuntu Discourse :slight_smile:

As @ogra pointed out, this seems to be a separate issue you are dealing with.

Better to have your own thread where we can offer more specific help for your scenario.

Thanks.

1 Like

1 final post before I hang up my hat here in Support and Help, but I have no problems:

 mount | more | grep /dev/md127p1 
/dev/md127p1 on /mnt/12fec2ff-d7fa-41b3-87e5-f5e454cdee2c type btrfs (rw,nosuid,nodev,relatime,discard=async,space_cache=v2,subvolid=5,subvol=/,x-gvfs-show)

That’s a solo drive, my layout in total reads as:

 mount | more | grep btrfs
/dev/nvme0n1p2 on / type btrfs (rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,commit=120,subvolid=256,subvol=/@)
/dev/nvme0n1p2 on /srv type btrfs (rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,commit=120,subvolid=259,subvol=/@srv)
/dev/nvme0n1p2 on /root type btrfs (rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,commit=120,subvolid=258,subvol=/@root)
/dev/nvme0n1p2 on /home type btrfs (rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,commit=120,subvolid=257,subvol=/@home)
/dev/nvme0n1p2 on /var/cache type btrfs (rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,commit=120,subvolid=260,subvol=/@cache)
/dev/nvme0n1p2 on /var/log type btrfs (rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,commit=120,subvolid=262,subvol=/@log)
/dev/nvme0n1p2 on /var/tmp type btrfs (rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,commit=120,subvolid=261,subvol=/@tmp)
**/dev/md127p1 on /mnt/12fec2ff-d7fa-41b3-87e5-f5e454cdee2c type btrfs (rw,nosuid,nodev,relatime,discard=async,space_cache=v2,subvolid=5,subvol=/,x-gvfs-show)**

Clearly there is something Wrong in your setup.

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=EE28-5131                            /boot          vfat    defaults   0 2
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /              btrfs   subvol=/@,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /home          btrfs   subvol=/@home,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /root          btrfs   subvol=/@root,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /srv           btrfs   subvol=/@srv,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /var/cache     btrfs   subvol=/@cache,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /var/tmp       btrfs   subvol=/@tmp,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /var/log       btrfs   subvol=/@log,defaults,noatime,compress=zstd,commit=120 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
UUID="12fec2ff-d7fa-41b3-87e5-f5e454cdee2c"  /btrfs-bu btrfs defaults 0 0
(END)


I asked mine to only open for root ie:

mount -av
/boot                    : already mounted
/                        : ignored
/home                    : already mounted
/root                    : already mounted
/srv                     : already mounted
/var/cache               : already mounted
/var/tmp                 : already mounted
/var/log                 : already mounted
/tmp                     : already mounted
mount: /btrfs-bu: must be superuser to use mount.
       dmesg(1) may have more information after failed mount system call.

To fix that all I need to do is add user ie:

/dev/device /btrfs-bu btrfs defaults,user 0 0

This is a good entry:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=EE28-5131                            /boot          vfat    defaults   0 2
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /              btrfs   subvol=/@,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /home          btrfs   subvol=/@home,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /root          btrfs   subvol=/@root,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /srv           btrfs   subvol=/@srv,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /var/cache     btrfs   subvol=/@cache,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /var/tmp       btrfs   subvol=/@tmp,defaults,noatime,compress=zstd,commit=120 0 0
UUID=55436356-e5e7-42ff-b189-1d8f1f0a228e /var/log       btrfs   subvol=/@log,defaults,noatime,compress=zstd,commit=120 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
UUID=12fec2ff-d7fa-41b3-87e5-f5e454cdee2c /btrfs-bu user defaults 0 0
(END)

Check after systemctl daemon-reload

mount -av
/boot                    : already mounted
/                        : ignored
/home                    : already mounted
/root                    : already mounted
/srv                     : already mounted
/var/cache               : already mounted
/var/tmp                 : already mounted
/var/log                 : already mounted
/tmp                     : already mounted
/btrfs-bu                : already mounted

Good Luck though. :wink:

This topic was automatically closed after 29 days. New replies are no longer allowed.