Created
July 5, 2022 13:48
-
-
Save Nurlan199206/04d10265ba9bb1cf6fec5778530cb99e to your computer and use it in GitHub Desktop.
create new partition fdisk example for LVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@backup:/home/nizimbetov# fdisk /dev/sdb | |
Welcome to fdisk (util-linux 2.34). | |
Changes will remain in memory only, until you decide to write them. | |
Be careful before using the write command. | |
The old LVM2_member signature will be removed by a write command. | |
Device does not contain a recognized partition table. | |
Created a new DOS disklabel with disk identifier 0x73e02a73. | |
Command (m for help): | |
Command (m for help): m | |
Help: | |
DOS (MBR) | |
a toggle a bootable flag | |
b edit nested BSD disklabel | |
c toggle the dos compatibility flag | |
Generic | |
d delete a partition | |
F list free unpartitioned space | |
l list known partition types | |
n add a new partition | |
p print the partition table | |
t change a partition type | |
v verify the partition table | |
i print information about a partition | |
Misc | |
m print this menu | |
u change display/entry units | |
x extra functionality (experts only) | |
Script | |
I load disk layout from sfdisk script file | |
O dump disk layout to sfdisk script file | |
Save & Exit | |
w write table to disk and exit | |
q quit without saving changes | |
Create a new label | |
g create a new empty GPT partition table | |
G create a new empty SGI (IRIX) partition table | |
o create a new empty DOS partition table | |
s create a new empty Sun partition table | |
Command (m for help): n | |
Partition type | |
p primary (0 primary, 0 extended, 4 free) | |
e extended (container for logical partitions) | |
Select (default p): e | |
Partition number (1-4, default 1): | |
First sector (2048-167772159, default 2048): | |
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-167772159, default 167772159): +80G | |
Value out of range. | |
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-167772159, default 167772159): +79G | |
Created a new partition 1 of type 'Extended' and of size 79 GiB. | |
Command (m for help): w | |
The partition table has been altered. | |
Calling ioctl() to re-read partition table. | |
Syncing disks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment