chore: reserved blocks in linux

This commit is contained in:
Michele Cereda
2024-07-17 18:31:01 +02:00
parent 46daf977b2
commit a4d3efba7d
2 changed files with 30 additions and 0 deletions

7
snippets/filesystems.sh Normal file
View File

@@ -0,0 +1,7 @@
#/usr/bin/env sh
# Get the *sector* size of partitions in 512-byte sectors
sudo blockdev --getsz '/dev/nvme0n1p1'
# Get the *block* size of partitions
sudo blockdev --getbsz '/dev/nvme0n1p1'