Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to create a gpt partition table with fdisk

$ 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.

Command (m for help):

#enter g to create a new gpt partition table

Command (m for help): g

Created a new GPT disklabel (GUID: 4649EE36-3013-214E-961C-51A9187A7503).

# Run the n command to create a new partition

Command (m for help): n

Partition number (1-128, default 1): #hit enter

First sector (2048-500118158, default 2048): #hit enter

# for the last sector, use +symbol and then enter the size of the partition in 
# kibibytes (K), mebibytes (M), gibibytes (G), tebibytes (T), or pebibytes (P).
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-500118158, default 500118158): +100G

Created a new partition 1 of type 'Linux filesystem' and of size 100 GiB.
Comment

PREVIOUS NEXT
Code Example
Shell :: git log for all branchs for specific user 
Shell :: play nethack through firewall 
Shell :: uninstall nvim arch 
Shell :: chmod by group 
Shell :: Unable to install libgnutls-dev 
Shell :: custom prompt in shell / bash 
Shell :: simple youtube video downloader script install extension 
Shell :: list all the created users ids only 
Shell :: react native requiring unknown modual "1" 
Shell :: quit ionic 
Shell :: wsl how to mount make usb accessible 
Shell :: ubuntu show window current desktop 
Shell :: verify SHA256 in Windows Power Shell 
Shell :: trickbot mikrotik 
Shell :: tiger vnc faster 
Shell :: Restore postgres script file 
Shell :: docker run +"--entrypoint" args 
Shell :: Find specific directory in specific path in linux 
Shell :: GIT: borrar repositorio local git 
Shell :: unit gitignore default-2021.dwlt 
Shell :: linux route though zerotier 
Shell :: after git merge it want to commit message 
Shell :: Copying Single File from Server to Local System 
Shell :: add user to sudoer "zsh" customization 
Shell :: html5 parser 
Shell :: linux commans find only file name 
Shell :: Git - Can we recover deleted commits? [duplicate] 
Shell :: docker short flags 
Shell :: shell remove consecutive newline 
Shell :: vscode kite extention uninstall 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =