Нет, Nitrux не будет использовать весь раздел:
The first thing you have to do in order to use znx is to initialize the device. znx will wipe the device and create a new GPT partition table on it, with two partitions. One of those partitions stores the bootloader data, while the other stores user data (including the images). Those partitions are then formatted with the FAT32 and the BTRFS filesystems respectively. After that, znx creates some directories on both partitions, as well as copying some files to the boot partition. Once those things are done, the device is considered initialized.
Далее...
Images are stored on the /boot_images directory of the data partition. Inside that directory, a hierarchy of subdirectories that match the name of the image are created. So, when you, for example, deploy your_distro/rolling, a directory /boot_images/your_distro/rolling is created in the data partition. Then, the image is stored in that directory.
Nitrux рекомендует 4G не для раздела , а для всего устройства ; Это очень важно. znx
по существу занимает весь диск, как описано в первой цитате выше. Возможно, вы сможете заставить его работать с разделом размером 200 ГБ, но это не то, как это описано в документации znx.
Подробную -информацию можно прочитать в znx Wiki .
Решение состояло в том, чтобы добавить эту строку в «/etc/udev/rules.d/99 -local.rules»:
KERNEL=="sd[a-z]*", SUBSYSTEMS=="usb", MODE="660", GROUP="plugdev"
Изменения из ответа @StephenKitt::
ATTR{removable}=="1"
. Если бы ATTR{removable}=="1"
было включено, разделы(/dev/sdn1
)не были бы затронуты. (udevadm test $(udevadm info -q path -n /dev/sdn)
имел решающее значение для решения этой проблемы. Спасибо @StephenKitt за это ).
Вместо того, чтобы пытаться защитить устройства от root, я бы удостоверился, что узлы съемных USB-устройств доступны для записи группе usbwriters
, используя правило udev
, такое как
KERNEL=="sd[a-z]*", ATTR{removable}=="1", SUBSYSTEMS=="usb", MODE="660", GROUP="usbwriters"
Добавьте это где-нибудь в/etc/udev/rules.d
(У меня есть 01-local.rules
файл для локальных правил ), и добавьте себя в группу, которую вы использовали.