software:linux_server:lfs:lfs-12.1:man:cfdisk_8
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
software:linux_server:lfs:lfs-12.1:man:cfdisk_8 [2025/04/05 11:14] – [OPTIONS] vladpolskiy | software:linux_server:lfs:lfs-12.1:man:cfdisk_8 [2025/04/05 14:17] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 20: | Строка 20: | ||
===== Параметры ===== | ===== Параметры ===== | ||
- | **-L, --color[=when]** | + | |**-L, --color[=when]**|Раскрасить вывод. Необязательный аргумент when может быть auto , never или always . Если аргумент when опущен, |
+ | |**--lock[=mode]**|Использовать исключительную блокировку BSD для устройства или файла, с которым он работает. Необязательный аргумент mode может быть yes , no (или 1 и 0) или **nonblock**. Если аргумент mode опущен, | ||
+ | |**-r, --read-only**|Принудительное открытие в режиме только для чтения.| | ||
+ | |**-b, --sector-size sectorsize**|Укажите размер сектора диска. Допустимые значения: | ||
+ | |**-z, --zero**|Запустить с обнуленной в памяти таблицей разделов. Эта опция не обнуляет таблицу разделов на диске; она просто запускает программу без чтения существующей таблицы разделов. Эта опция позволяет создать новую таблицу разделов с нуля или из совместимого со скриптом sfdisk(8).| | ||
+ | |**-h, --help**|Отобразить текст справки и выйти.| | ||
+ | |**-V, --version**|Показать версию и выйти.| | ||
+ | ===== Команды ===== | ||
+ | Команды для **cfdisk** можно вводить нажатием соответствующей клавиши (нажатие Enter после команды не обязательно). Вот список доступных команд: | ||
- | Раскрасить вывод. | + | |**b**|Переключить флаг загрузки текущего |
+ | |**d**|Удалить текущий раздел. Это преобразует текущий раздел в свободное пространство и объединит его с любым свободным пространством, | ||
+ | |**h**|Показать экран справки.| | ||
+ | |**n**|Создайте новый раздел из свободного пространства. Затем **cfdisk** запросит у вас размер раздела, который вы хотите создать. Размер по умолчанию равен всему доступному свободному | ||
+ | |**q**|Выйти из программы. Это приведет к выходу из программы без записи каких-либо данных на диск.| | ||
+ | |**r**|Уменьшите или увеличьте текущий раздел. Затем cfdisk запросит новый размер раздела. Размер | ||
+ | |**s**|Сортировать разделы в порядке возрастания начального сектора. При удалении и добавлении разделов, | ||
+ | |**t**|Изменить | ||
+ | |**u**|Сохраните | ||
+ | |**W**|Запишите таблицу разделов на диск (необходимо ввести заглавную букву W). Поскольку это может уничтожить данные на диске, необходимо подтвердить или отклонить запись, | ||
+ | |**x**|Включить/ | ||
+ | //Стрелка вверх , Стрелка вниз// | ||
+ | * Переместить курсор на предыдущий или следующий раздел. Если разделов больше, | ||
+ | // | ||
+ | * Выберите предыдущий или следующий пункт меню. Нажатие Enter выполнит текущий выбранный пункт. Все команды можно вводить как заглавными, | ||
- | **--lock[=mode]** | + | ===== Цвета ===== |
+ | Раскрашивание выходных данных реализовано с помощью функциональности terminal-colors.d(5) . Неявное окрашивание можно отключить с помощью пустого файла | ||
- | Использовать исключительную блокировку BSD для устройства или файла, с которым он работает. Необязательный аргумент mode может быть yes , no (или 1 и 0) или **nonblock**. Если аргумент mode опущен, | + | **/ |
- | **-r, --read-only** | + | для команды cfdisk или для всех инструментов |
- | Принудительное открытие в режиме только для чтения. | + | **/ |
- | **-b, --sector-size sectorsize** | + | Начиная с версии 2.41 также поддерживается переменная среды $NO_COLOR для отключения раскрашивания вывода, если оно явно не включено параметром командной строки. |
- | Укажите размер | + | Пользовательский параметр |
- | **-z, --zero** | + | Обратите внимание, что раскрашивание вывода может быть включено по умолчанию, |
- | Запустить с обнуленной в памяти таблицей разделов. Эта опция не обнуляет таблицу разделов на диске; она просто запускает | + | cfdisk |
- | **-h, --help** | + | ===== Среда ===== |
+ | |**CFDISK_DEBUG**=all|включает отладочный вывод cfdisk.| | ||
+ | |**LIBFDISK_DEBUG**=all|включает отладочный вывод libfdisk.| | ||
+ | |**LIBBLKID_DEBUG**=all|включает отладочный вывод libblkid.| | ||
+ | |**LIBSMARTCOLS_DEBUG**=all|включает отладочный вывод libsmartcols.| | ||
+ | |**LIBSMARTCOLS_DEBUG_PADDING**=on|использовать видимые символы заполнения. Требуется включенный **LIBSMARTCOLS_DEBUG.**| | ||
+ | |**LOCK_BLOCK_DEVICE**=< | ||
+ | ===== Авторы ===== | ||
+ | Karel Zak [[mail> | ||
- | Отобразить текст справки и выйти. | + | Текущая |
- | **-V, --version** | + | ===== См. также ===== |
+ | [[software: | ||
- | Показать версию и выйти. | + | ===== Сообщение об ошибках |
- | ===== COMMANDS | + | Для сообщений об ошибках используйте //систему отслеживания ошибок// https:// |
- | Команды для cfdisk можно вводить нажатием соответствующей клавиши (нажатие Enter после | + | |
- | |b|Toggle the bootable flag of the current partition. This allows you to select which primary partition is bootable on the drive. This command may not be available for all partition label types. | + | ===== Доступность ===== |
- | d | + | Команда **cfdisk** является частью пакета util-linux, который можно загрузить из архива ядра Linux https://www.kernel.org/ |
- | Delete the current partition. This will convert the current partition into free space and merge it with any free space immediately surrounding the current partition. A partition already marked as free space or marked as unusable cannot be deleted. | + | ===== Дополнения и Файлы |
- | h | + | [[https://man.archlinux.org/man/cfdisk.8|Ссылка на оригинальную статью]] |
- | + | ||
- | Show the help screen. | + | |
- | n | + | |
- | + | ||
- | Create a new partition from free space. cfdisk then prompts you for the size of the partition you want to create. The default size is equal to the entire available free space at the current position. | + | |
- | The size may be followed by a multiplicative suffix: KiB (=1024), MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the " | + | |
- | + | ||
- | q | + | |
- | + | ||
- | Quit the program. This will exit the program without writing any data to the disk. | + | |
- | r | + | |
- | + | ||
- | Reduce or enlarge the current partition. cfdisk then prompts you for the new size of the partition. The default size is the current size. A partition marked as free space or marked as unusable cannot be resized. | + | |
- | Note that reducing the size of a partition might destroy data on that partition. | + | |
- | + | ||
- | s | + | |
- | + | ||
- | Sort the partitions in ascending start-sector order. When deleting and adding partitions, it is likely that the numbering of the partitions will no longer match their order on the disk. This command restores that match. | + | |
- | t | + | |
- | + | ||
- | Change the partition type. By default, new partitions are created as Linux partitions. | + | |
- | u | + | |
- | + | ||
- | Dump the current in-memory partition table to an sfdisk(8)-compatible script file. | + | |
- | The script files are compatible between cfdisk, fdisk(8) sfdisk(8) and other libfdisk applications. For more details see sfdisk(8). | + | |
- | + | ||
- | It is also possible to load an sfdisk-script into cfdisk if there is no partition table on the device or when you start cfdisk with the --zero command-line option. | + | |
- | + | ||
- | W | + | |
- | + | ||
- | Write the partition table to disk (you must enter an uppercase W). Since this might destroy data on the disk, you must either confirm or deny the write by entering `yes' or `no'. If you enter `yes', cfdisk will write the partition table to disk and then tell the kernel to re-read the partition table from the disk. | + | |
- | The re-reading of the partition table does not always work. In such a case you need to inform the kernel about any new partitions by using partprobe(8) or partx(8), or by rebooting the system. | + | |
- | + | ||
- | x | + | |
- | + | ||
- | Toggle extra information about a partition. | + | |
- | Up Arrow, Down Arrow | + | |
- | + | ||
- | Move the cursor to the previous or next partition. If there are more partitions than can be displayed on a screen, you can display the next (previous) set of partitions by moving down (up) at the last (first) partition displayed on the screen. | + | |
- | Left Arrow, Right Arrow | + | |
- | + | ||
- | Select the preceding or the next menu item. Hitting Enter will execute the currently selected item. | + | |
- | All commands can be entered with either uppercase or lowercase letters (except for Write). When in a submenu or at a prompt, you can hit the Esc key to return to the main menu. | + | |
- | + | ||
- | ===== COLORS ===== | + | |
- | The output colorization is implemented by terminal-colors.d(5) functionality. Implicit coloring can be disabled by an empty file | + | |
- | + | ||
- | / | + | |
- | + | ||
- | for the cfdisk command or for all tools by | + | |
- | + | ||
- | / | + | |
- | + | ||
- | Since version 2.41, the $NO_COLOR environment variable is also supported to disable output colorization unless explicitly enabled by a command-line option. | + | |
- | + | ||
- | The user-specific $XDG_CONFIG_HOME/ | + | |
- | + | ||
- | Note that the output colorization may be enabled by default, and in this case terminal-colors.d directories do not have to exist yet. | + | |
- | + | ||
- | cfdisk does not support color customization with a color-scheme file. | + | |
- | + | ||
- | ===== ENVIRONMENT ===== | + | |
- | CFDISK_DEBUG=all | + | |
- | + | ||
- | enables cfdisk debug output. | + | |
- | LIBFDISK_DEBUG=all | + | |
- | + | ||
- | enables libfdisk debug output. | + | |
- | LIBBLKID_DEBUG=all | + | |
- | + | ||
- | enables libblkid debug output. | + | |
- | LIBSMARTCOLS_DEBUG=all | + | |
- | + | ||
- | enables libsmartcols debug output. | + | |
- | LIBSMARTCOLS_DEBUG_PADDING=on | + | |
- | + | ||
- | use visible padding characters. Requires enabled LIBSMARTCOLS_DEBUG. | + | |
- | LOCK_BLOCK_DEVICE=< | + | |
- | + | ||
- | use exclusive BSD lock. The mode is " | + | |
- | ===== AUTHORS ===== | + | |
- | Karel Zak < | + | |
- | + | ||
- | The current cfdisk implementation is based on the original cfdisk from Kevin E. Martin < | + | |
- | + | ||
- | ===== SEE ALSO ===== | + | |
- | fdisk(8), parted(8), partprobe(8), | + | |
- | + | ||
- | ===== REPORTING BUGS ===== | + | |
- | For bug reports, use the issue tracker | + | |
- | + | ||
- | ===== AVAILABILITY ===== | + | |
- | The cfdisk command is part of the util-linux package which can be downloaded from Linux Kernel Archive https:// | + |
software/linux_server/lfs/lfs-12.1/man/cfdisk_8.1743840842.txt.gz · Последнее изменение: — vladpolskiy