all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [PATCH proxmox-backup 5/5] fix #7533: restore-daemon: last resort fallback to mount via ntfs-3g
Date: Thu, 14 May 2026 17:25:10 +0200	[thread overview]
Message-ID: <20260514152510.2273112-6-c.ebner@proxmox.com> (raw)
In-Reply-To: <20260514152510.2273112-1-c.ebner@proxmox.com>

Some Windows NTFS partitions fail to mount with the current in-kernel
filesystem implementations. The same filesystems can however be
mounted using the user space ntfs-3g implementation.

Provide a last resort fallback if all other attempts fail to mount ai
disk or partition, trying to use the FUSE implementation of ntfs-3g.

Fixes: https://bugzilla.proxmox.com/show_bug.cgi?id=7544
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
Tested this by a modified version where the in-kernel ntfs and ntfs3
were excluded from the supported fs list.

 .../src/proxmox_restore_daemon/disk.rs                   | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/proxmox-restore-daemon/src/proxmox_restore_daemon/disk.rs b/proxmox-restore-daemon/src/proxmox_restore_daemon/disk.rs
index 7936dc764..e1777d1b1 100644
--- a/proxmox-restore-daemon/src/proxmox_restore_daemon/disk.rs
+++ b/proxmox-restore-daemon/src/proxmox_restore_daemon/disk.rs
@@ -344,6 +344,15 @@ impl Filesystems {
             }
         }
 
+        info!("All provided in-kernel filesystems failed: try FUSE mount using ntfs-3g");
+
+        let mut cmd = Command::new("/usr/bin/ntfs-3g");
+        cmd.args(["-o", "ro", source, target].iter());
+        match run_command(cmd, None) {
+            Ok(_) => return Ok(()),
+            Err(err) => warn!("ntfs-3g mount failed for '{source}': {err:#}"),
+        }
+
         bail!("all mounts failed or no supported file system")
     }
 
-- 
2.47.3





      parent reply	other threads:[~2026-05-14 15:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14 15:25 [RFC proxmox{-backup-restore-image,-backup} 0/5] fix #7544: provide fallback to ntfs-3g for file-restore VM Christian Ebner
2026-05-14 15:25 ` [PATCH proxmox-backup-restore-image 1/5] update ZFS to 2.4.2 Christian Ebner
2026-05-14 15:25 ` [PATCH proxmox-backup-restore-image 2/5] update kernel to Ubuntu-7.0.0-17.17 Christian Ebner
2026-05-14 15:25 ` [PATCH proxmox-backup-restore-image 3/5] config: enable FUSE support to allow using ntfs-3g Christian Ebner
2026-05-14 15:25 ` [PATCH proxmox-backup-restore-image 4/5] initramfs: add ntfs-3g as build dependency Christian Ebner
2026-05-14 15:25 ` Christian Ebner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260514152510.2273112-6-c.ebner@proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal