delpart

Ask the Linux kernel to forget about a partition. More information: <https://manned.org/delpart>.

Install

All systems
curl cmd.cat/delpart.sh
Debian Debian
apt-get install util-linux
Ubuntu
apt-get install util-linux
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install util-linux
CentOS
yum install util-linux
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install util-linux
OS X
brew install util-linux
Raspbian
apt-get install util-linux
Docker
docker run cmd.cat/delpart delpart powered by Commando

Ask the Linux kernel to forget about a partition. More information: <https://manned.org/delpart>.

  • Tell the kernel to forget about the first partition of `/dev/sda`:
    sudo delpart /dev/sda 1

© tl;dr; authors and contributors