Difference between revisions of "Parted"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Draft}} | {{Draft}} | ||
− | + | [[wikipedia:parted]] | |
− | parted | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Number Start End Size File system Name Flags | + | parted -l |
− | 14 1049kB 5243kB 4194kB bios_grub | + | Model: ATA BHYVE SATA DISK (scsi) |
− | 15 5243kB 116MB 111MB fat32 boot, esp | + | Disk /dev/sda: 5369MB |
− | + | Sector size (logical/physical): 512B/512B | |
+ | Partition Table: gpt | ||
+ | Disk Flags: | ||
+ | |||
+ | Number Start End Size File system Name Flags | ||
+ | 14 1049kB 5243kB 4194kB bios_grub | ||
+ | 15 5243kB 116MB 111MB fat32 boot, esp | ||
+ | 1 116MB 5369MB 5252MB ext4 | ||
+ | |||
+ | |||
+ | Warning: Unable to open /dev/sr0 read-write ([[Read-only file system]]). /dev/sr0 | ||
+ | has been opened read-only. | ||
+ | Error: /dev/sr0: unrecognised disk label | ||
+ | Model: BHYVE BHYVE DVD-ROM (scsi) | ||
+ | Disk /dev/sr0: 53.2kB | ||
+ | Sector size (logical/physical): 2048B/2048B | ||
+ | Partition Table: unknown | ||
+ | Disk Flags: | ||
− | + | parted -s /dev/vdb mklabel gpt mkpart ext4 0% 100% | |
− | + | ||
− | + | parted disk.img mklabel [[msdos]] | |
− | + | (no output) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | == Related commands == | ||
+ | * <code>[[fdisk]]</code> | ||
+ | * <code>[[losetup]] -a</code> | ||
== See also == | == See also == | ||
+ | * {{fdisk}} | ||
* {{linux block devices}} | * {{linux block devices}} | ||
+ | |||
+ | [[Category:Computing]] |
Latest revision as of 10:10, 21 September 2020
This article is a Draft. Help us to complete it.
parted -l Model: ATA BHYVE SATA DISK (scsi) Disk /dev/sda: 5369MB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 14 1049kB 5243kB 4194kB bios_grub 15 5243kB 116MB 111MB fat32 boot, esp 1 116MB 5369MB 5252MB ext4 Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only. Error: /dev/sr0: unrecognised disk label Model: BHYVE BHYVE DVD-ROM (scsi) Disk /dev/sr0: 53.2kB Sector size (logical/physical): 2048B/2048B Partition Table: unknown Disk Flags:
parted -s /dev/vdb mklabel gpt mkpart ext4 0% 100%
parted disk.img mklabel msdos (no output)
Related commands[edit]
See also[edit]
- Block devices, partition, GUID Partition Table (GPT),
fdisk
,parted
,Kpartx
, partition,/proc/partitions
,blockdev, mkfs, partprobe
,diskpart (Windows)
,fdisk -l /dev/nbd0
- Block devices:
blkid
(UUID),lshw -class disk
,hwinfo --disk
,udevadm
,rescan-scsi-bus.sh
,LUN
,hdparm
,findfs
, Add a new disk lsblk
,pvscan
lspci
,lsscsi
,smartctl
,fdisk
,parted
,Kpartx
,pvdiplay
,pvs
,udisksctl
,/dev/sd, nvme list
Advertising: