0

I would like to use the dd command to make a bootable flash drive, but for that I need to know what the correct block size is. I know that I can just boot the ISO in a VM and run parted or fdisk to obtain it, but I would like to know if it's possible to get the block size from the file directly. I've tried looking at it with both parted and fdisk, both mounted and unmounted as a loop device, but I just get the logical block size of the drive where the ISO is located, not the block size of the data in the ISO.

3

You can use software like cdrecord, isoinfo and search for lines like:

Current Secsize: 2048

or

Logical block size is: 2048

but why you do not try w/o block size in dd command?

1
  • 1
    Thanks, isoinfo works. To answer your question, not specifying the block size in dd can lead to problems, like the live usb hanging before reaching the desktop environment. – RayinMay Apr 22 at 21:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.