Interview Prep/Linux/Disk space, inodes and filesystems

A disk shows up in `lsblk` but `pvcreate` says `Cannot use /dev/sdc: device is partitioned`.

IntermediateTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → Leftover partition table or filesystem signatures from a previous use.

Diagnose →

lsblk -f /dev/sdc
sudo wipefs /dev/sdc

Fix → After confirming the disk is really unused: sudo wipefs -a /dev/sdc, then pvcreate /dev/sdc.

Prevent → Wipe disks when decommissioning; always double-check the device name before wiping.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems