My laptop hard drive is “full”.
sudo fdisk -l
[...]
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: HFM512GD3JX013N
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CC82F627-8A27-4326-9940-38E19AA36263
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 534527 532480 260M EFI System
/dev/nvme0n1p2 534528 567295 32768 16M Microsoft reserved
/dev/nvme0n1p3 567296 586504795 585937500 279.4G Microsoft basic data
/dev/nvme0n1p4 999168000 1000214527 1046528 511M Windows recovery environment
/dev/nvme0n1p5 586506240 977129471 390623232 186.3G Linux filesystem
/dev/nvme0n1p6 977129472 999165951 22036480 10.5G Linux swap
Partition table entries are not in disk order.
It looks like a lot of that space is being wasted by something called “Microsoft Windows” - maybe some kind of virus. Let’s clear those partitions and free them up for something useful.
there we go:
sudo fdisk -l
[...]
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: HFM512GD3JX013N
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CC82F627-8A27-4326-9940-38E19AA36263
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 534527 532480 260M EFI System
/dev/nvme0n1p5 586506240 977129471 390623232 186.3G Linux filesystem
/dev/nvme0n1p6 977129472 999165951 22036480 10.5G Linux swap