mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 16:51:47 +00:00
Update cheatsheets
This commit is contained in:
21
linux/partx
Normal file
21
linux/partx
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# partx
|
||||
|
||||
> Parse a partition table and tell the kernel about it.
|
||||
> More information: <https://man7.org/linux/man-pages/man8/partx.8.html>.
|
||||
|
||||
- List the partitions on a block device or disk image:
|
||||
|
||||
`sudo partx --list {{path/to/device_or_disk_image}}`
|
||||
|
||||
- Add all the partitions found in a given block device to the kernel:
|
||||
|
||||
`sudo partx --add --verbose {{path/to/device_or_disk_image}}`
|
||||
|
||||
- Delete all the partitions found from the kernel (does not alter partitions on disk):
|
||||
|
||||
`sudo partx --delete {{path/to/device_or_disk_image}}`
|
||||
Reference in New Issue
Block a user