mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-17 09:25:32 +00:00
Update fdisk
This commit is contained in:
parent
f868f83446
commit
565df5eff0
24
sheets/fdisk
24
sheets/fdisk
@ -7,19 +7,19 @@ Command (m for help): d
|
|||||||
Partition number (1-9): XXX
|
Partition number (1-9): XXX
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
fdisk [options] <disk> change partition table
|
# fdisk [options] <disk> change partition table
|
||||||
fdisk [options] -l <disk> list partition table(s)
|
# fdisk [options] -l <disk> list partition table(s)
|
||||||
fdisk -s <partition> give partition size(s) in blocks
|
# fdisk -s <partition> give partition size(s) in blocks
|
||||||
|
|
||||||
# Options:
|
# Options:
|
||||||
-b <size> sector size (512, 1024, 2048 or 4096)
|
# -b <size> sector size (512, 1024, 2048 or 4096)
|
||||||
-c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
|
# -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
|
||||||
-h print this help text
|
# -h print this help text
|
||||||
-u[=<unit>] display units: 'cylinders' or 'sectors' (default)
|
# -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
|
||||||
-v print program version
|
# -v print program version
|
||||||
-C <number> specify the number of cylinders
|
# -C <number> specify the number of cylinders
|
||||||
-H <number> specify the number of heads
|
# -H <number> specify the number of heads
|
||||||
-S <number> specify the number of sectors per track
|
# -S <number> specify the number of sectors per track
|
||||||
|
|
||||||
# To display partition table
|
# To display partition table
|
||||||
p
|
p
|
||||||
@ -60,4 +60,4 @@ df -h /opt
|
|||||||
5. reboot
|
5. reboot
|
||||||
6. e2fsck -f /dev/sdc1
|
6. e2fsck -f /dev/sdc1
|
||||||
7. resize2fs /dev/sdc1
|
7. resize2fs /dev/sdc1
|
||||||
8. mount /dev/sdc1 - uncomment fstab
|
8. mount /dev/sdc1 - uncomment fstab
|
||||||
|
Loading…
Reference in New Issue
Block a user