Невозможно смонтировать файловую систему btrfs «open_ctree failed»

Запуск от имени пользователя root rsync -og , возможно, это то, что вы ищете.

Из справочной страницы:

-o, --owner
              This option causes rsync to set the owner of the destination file to be the same as the source file, but only if the receiving rsync is being run as the super-user (see also the --super and --fake-super options).  Without this option,  the  owner  of
              new and/or transferred files are set to the invoking user on the receiving side.

              The preservation of ownership will associate matching names by default, but may fall back to using the ID number in some circumstances (see also the --numeric-ids option for a full discussion).

       -g, --group
              This option causes rsync to set the group of the destination file to be the same as the source file.  If the receiving program is not running as the super-user (or if --no-super was specified), only groups that the invoking user on the receiving side
              is a member of will be preserved.  Without this option, the group is set to the default group of the invoking user on the receiving side.

              The preservation of group information will associate matching names by default, but may fall back to using the ID number in some circumstances (see also the --numeric-ids option for a full discussion).
6
06.03.2017, 00:51
1 ответ

Проблема действительно в том, что две версии Linux имеют несколько разные версии BTRFS, т.е.не поддерживают те же функции:

[ 119.698406] BTRFS info (device sdc2): disk space caching is enabled
[ 119.698409] BTRFS: couldn't mount because of unsupported optional features (10).

Похоже, что xbian поддерживает эти функции, а OpenSuse 42.2 — нет, что препятствует взаимодействию.

Эти функции FS являются необязательными. :Это означает, что можно создавать разделы BTRFS с обратной совместимостью в более новых системах, которые доступны для чтения из более старых систем (без этих функций ), управляемых параметрами, которые передаются в Программа mkfs.btrfs.

Числовой код функции: 10 -неизвестный флаг :0x10. Мне было трудно понять, что означают эти коды (моя догадка :расширенные ссылки на иноды. )Но так как число так мало, я думаю, что это что-то основное. Я думаю, что вы больше не можете сделать эту файловую систему доступной для чтения непропатченными ядрами. В противном случае, зная эту функцию, мы, возможно, могли бы указать параметр монтирования, чтобы избежать ошибки; как здесь, где указан алгоритм сжатия fs:

mount -t btrfs -o compress=lz4 dev /mnt

Если мы не знаем, что это за функция, вы даже не сможете обновить ядро ​​в OpenSuse, чтобы оно соответствовало xbian. Обычно в такой ситуации вы полагаетесь на ext4 вместо этого из соображений совместимости.

5
27.01.2020, 20:28

Теги

Похожие вопросы