software:linux_server:lfs:lfs-12.1:man:cfdisk_8
Различия
Показаны различия между двумя версиями страницы.
Следующая версия | Предыдущая версия | ||
software:linux_server:lfs:lfs-12.1:man:cfdisk_8 [2025/04/05 11:02] – создано vladpolskiy | software:linux_server:lfs:lfs-12.1:man:cfdisk_8 [2025/04/05 14:17] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
====== cfdisk ====== | ====== cfdisk ====== | ||
- | ===== NAME ===== | + | ===== Имя |
cfdisk - отображение или управление таблицей разделов диска | cfdisk - отображение или управление таблицей разделов диска | ||
- | ===== SYNOPSIS | + | ===== Синопсис ===== |
cfdisk [options] [device] | cfdisk [options] [device] | ||
- | ===== DESCRIPTION | + | ===== Описание ===== |
- | cfdisk | + | cfdisk |
- | Note that cfdisk | + | Обратите внимание, |
- | All disk label changes will remain in memory only, and the disk will be unmodified until you decide to write your changes. Be careful before using the write command. | + | Все изменения меток дисков останутся только в памяти, и диск не будет изменен, |
- | Since version | + | Начиная с версии |
- | Since version | + | Начиная с версии |
- | If you want to remove an old partition table from a device, use wipefs(8). | + | Если вы хотите удалить старую таблицу разделов с устройства, используйте |
- | ===== OPTIONS | + | ===== Параметры ===== |
- | -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 после команды не обязательно). Вот список доступных команд: | ||
- | Colorize the output. The optional argument when can be auto, never or always. If the when argument is omitted, it defaults to auto. The colors can be disabled, for the current built-in default see --help output. See also the COLORS section. | + | |**b**|Переключить флаг загрузки текущего раздела. Это позволяет выбрать, какой основной раздел будет загрузочным на диске. Эта команда может быть недоступна для всех типов меток разделов.| |
- | --lock[=mode] | + | |**d**|Удалить текущий раздел. Это преобразует текущий раздел в свободное пространство и объединит его с любым свободным пространством, непосредственно окружающим текущий раздел. Раздел, уже отмеченный как свободное пространство или отмеченный как непригодный для использования, |
+ | |**h**|Показать экран справки.| | ||
+ | |**n**|Создайте новый раздел из свободного пространства. Затем **cfdisk** запросит у вас размер раздела, | ||
+ | |**q**|Выйти из программы. Это приведет к выходу из программы без записи каких-либо данных на диск.| | ||
+ | |**r**|Уменьшите или увеличьте текущий раздел. Затем cfdisk запросит новый размер раздела. Размер по умолчанию — текущий. Раздел, | ||
+ | |**s**|Сортировать разделы в порядке возрастания начального сектора. При удалении и добавлении разделов, | ||
+ | |**t**|Изменить тип раздела. По умолчанию новые разделы создаются как разделы Linux.| | ||
+ | |**u**|Сохраните текущую таблицу разделов в памяти в файл сценария, | ||
+ | |**W**|Запишите таблицу разделов на диск (необходимо ввести заглавную букву W). Поскольку это может уничтожить данные на диске, необходимо подтвердить или отклонить запись, | ||
+ | |**x**|Включить/ | ||
+ | // | ||
+ | * Переместить курсор на предыдущий или следующий раздел. Если разделов больше, | ||
+ | // | ||
+ | * Выберите предыдущий или следующий пункт меню. Нажатие Enter выполнит текущий выбранный пункт. Все команды можно вводить как заглавными, | ||
- | Use exclusive BSD lock for device or file it operates. The optional argument mode can be yes, no (or 1 and 0) or nonblock. If the mode argument is omitted, it defaults to yes. This option overwrites environment variable $LOCK_BLOCK_DEVICE. The default is not to use any lock at all, but it’s recommended to avoid collisions with systemd-udevd(8) or other tools. | + | ===== Цвета ===== |
- | -r, --read-only | + | Раскрашивание выходных данных реализовано с помощью функциональности terminal-colors.d(5) . Неявное окрашивание можно отключить с помощью пустого файла |
- | Forced open in read-only mode. | + | **/ |
- | -b, --sector-size sectorsize | + | |
- | Specify the sector size of the disk. Valid values are 512, 1024, 2048, and 4096. The kernel is aware of the sector size for regular block devices. Use this option only on very old kernels, when working with disk images, or to override the kernel’s default sector size. Since util-linux-2.17, | + | для команды cfdisk или для всех инструментов |
- | -z, --zero | + | |
- | Start with an in-memory zeroed partition table. This option does not zero the partition table on the disk; rather, it simply starts the program without reading the existing partition table. This option allows you to create a new partition table from scratch or from an sfdisk(8)-compatible script. | + | **/ |
- | -h, --help | + | |
- | Display help text and exit. | + | Начиная с версии 2.41 также поддерживается переменная среды $NO_COLOR для отключения раскрашивания вывода, если оно явно не включено параметром командной строки. |
- | -V, --version | + | |
- | Display version and exit. | + | Пользовательский параметр **$XDG_CONFIG_HOME/ |
- | COMMANDS | + | |
- | The commands for cfdisk can be entered by pressing the corresponding key (pressing Enter after the command is not necessary). Here is a list of the available commands: | + | |
- | 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. | + | cfdisk не поддерживает настройку цвета с помощью файла цветовой схемы. |
- | d | + | |
- | 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 | + | |**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> | ||
- | Show the help screen. | + | Текущая реализация cfdisk основана на оригинальном cfdisk от Kevin E. Martin [[mail> |
- | 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 " | + | [[software: |
- | q | + | ===== Сообщение об ошибках ===== |
+ | Для сообщений об ошибках используйте // | ||
- | Quit the program. This will exit the program without writing any data to the disk. | + | ===== Доступность ===== |
- | r | + | Команда **cfdisk** является частью пакета util-linux, который можно загрузить из архива ядра Linux https://www.kernel.org/ |
- | 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. | + | [[https://man.archlinux.org/man/cfdisk.8|Ссылка на оригинальную статью]] |
- | + | ||
- | 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.1743840170.txt.gz · Последнее изменение: — vladpolskiy