Prevent Bazzite from auto-mounting Windows' EFI partition on a dual boot system
There is no reason for Bazzite to mount it, and it causes Windows to force check the partition every time during boot up. I have spent a lot of time looking for a way to stop it from mounting in Disks and /etc/fstab, but to no avail.
Please help me exclude it from being auto mounted.
Please help me exclude it from being auto mounted.
Solution
finally found the solution to this pain, the long era of suffering is over!!
https://www.answeroverflow.com/m/1278474242635206740
https://www.answeroverflow.com/m/1278474242635206740
As root copy the steam automounter udev rules from:
/usr/lib/udev/rules.d/99-steamos-automount.rules
to:
/etc/udev/rules.d/99-steamos-automount.rules
Comment the two lines that begin
ACTION
by adding a
#
at the start of them i.e:
#ACTION=="add", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh add %k"
#ACTION=="remove", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh remove %k"
reload the udev rules:
udevadm control --reload
As root copy the steam automounter udev rules from:
to:
Comment the two lines that begin by adding a at the start of them i.e:
```
#ACTION=="add", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hws...
to:
Comment the two lines that begin by adding a at the start of them i.e:
```
#ACTION=="add", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hws...