Slackware HowTo

Partition GPT disks with gdisk on Slackware

Create or modify a GPT table carefully before filesystems, RAID, or LVM.

1. When to use it

Useful when you need to initialize a new disk or reorganize storage more cleanly than with classic MBR.

gdisk | GPT | partitioning | lsblk | blkid

2. Base setup

gdisk /dev/sdb
partprobe /dev/sdb
lsblk /dev/sdb

Adjust host names, IPs, interfaces, paths, and versions to the real system before making the change persistent.

3. Quick verification

gdisk -l /dev/sdb
blkid /dev/sdb*
lsblk -f /dev/sdb

Confirm that the output matches the expected state before considering the intervention complete.

4. Operational notes

Confirm the target device twice before writing the table: the operational mistake here costs far more than the time spent rechecking.

Quick checklist

[ ] Steps completed\n[ ] Config updated\n[ ] Tests executed\n[ ] Rollback ready\n[ ] Logs checked

Back to Linux HowTo