Bug in schnapps? - unable to work on ext drive, ntfs-3g interference

Hello,
I have on my Omnia (TurrisOS 7.1.1) this filesystem:

root@schvab-rtr:~# btrfs filesystem show /mnt/schvab/data
Label: ‘schvab_data’ uuid: cf6850fb-46fa-4d2e-bdd9-0e7a9615fab4
Total devices 2 FS bytes used 156.30GiB
devid 1 size 238.47GiB used 166.03GiB path /dev/sda1
devid 2 size 238.47GiB used 166.03GiB path /dev/sdb1

…and I wanted to make a snapshot but I’m getting this unexpected result:

root@schvab-rtr:~# schnapps -d /mnt/schvab/data/ create
ERROR: unable to access /dev/sda1
/dev/sdb1: No such file or directory
ntfs-3g: Failed to access volume ‘/dev/sda1
/dev/sdb1’: No such file or directory

ntfs-3g 2021.8.22 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2021 Jean-Pierre Andre
Copyright (C) 2009-2020 Erik Larsson

Usage: ntfs-3g [-o option[,…]] <device|image_file> <mount_point>

Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

Plugin path: /usr/lib/ntfs-3g

News, support and information: http://tuxera.com
Can’t mount root partition

There is no NTFS file system at that time mounted or even connected to the router so the ntfs-3g stuff really surprised me. Is it a bug? Or possible interference with ntfs-3g package?

Looks like schnapps isn’t ready to handle multi-device filesystems when specified via the -d parameter. I believe that all the erroneous output (incl. ntfs-3g) is a consequence of the corrupt ROOT_DEV variable.

The code is there for the standard / use-case, so I submitted a simple merge request to add it for the -d case. Since schnapps is written in Bash you can simply manually make the change in /usr/bin/schnapps in the meantime.

2 Likes

How come you have the rights on GitLab to submit PR? I wanted to submit some and could only do Issue with patch

1 Like