Tag: fdisk

Linux: Get capacity of a drive with fdisk (root permission needed)

Sometimes one needs to know the exact capacity of a drive (e.g. for bash scripts). Here is a one liner for this with fdisk:

Tagged with: , , , , ,
Top