From e8763236b6aa7e5bb1f38ba98f4ba952e79ab88e Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Tue, 9 Feb 2021 18:57:01 -0600 Subject: [PATCH] Ubuntu/Debian: Disable automounting If the disk has been used before (with partitions at the same offsets), previous filesystems (e.g. the ESP) will automount if not disabled. Co-authored-by: attero Signed-off-by: Richard Laager Closes #119 --- docs/Getting Started/Debian/Debian Buster Root on ZFS.rst | 7 +++++++ docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst index 0fd1025..18889a0 100644 --- a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst @@ -126,6 +126,13 @@ Step 1: Prepare The Install Environment ``ip addr show scope global | grep inet``. Then, from your main machine, connect with ``ssh user@IP``. +#. Disable automounting: + + If the disk has been used before (with partitions at the same offsets), + previous filesystems (e.g. the ESP) will automount if not disabled:: + + gsettings set org.gnome.desktop.media-handling automount false + #. Become root:: sudo -i diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst index 6568c48..2e5f7ad 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst @@ -253,6 +253,13 @@ Step 1: Prepare The Install Environment ``ip addr show scope global | grep inet``. Then, from your main machine, connect with ``ssh ubuntu@IP``. +#. Disable automounting: + + If the disk has been used before (with partitions at the same offsets), + previous filesystems (e.g. the ESP) will automount if not disabled:: + + gsettings set org.gnome.desktop.media-handling automount false + #. Become root:: sudo -i