Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Kind of homework related so further reading is always appreciated!

Using sfdisk I have to specify the size of certain partitions in bytes.

For this I used

sfdisk -lub /dev/sdd

Which lists the units as sectors of 512b. Is there an option to only show the count of single bytes? I've been slightly cheating and taking the output and multiplying it for the answer!

share|improve this question

migrated from Apr 22 '13 at 9:15

This question came from our site for professional and enthusiast programmers.

so you want to show how much bytes per partition, right? just use -l argument only, or if you want to know how exacty per partition just use -s argument. this is manpage for sfdisk

share|improve this answer

You must log in to answer this question.