How should I write the img or iso to a pen drive?

I'm trying several combinations, but fail to boot and I'm not sure the problem is in the writing to the pen drive, so I want to discard this possibility.

If I have a nomadbsd-1.3.1.img (for a persistent live-usb)

Should this work?

dd bs=1M if=nomadbsd-1.3.1.img of=/dev/sdb conv=fsync

or should it be sdb1 instead?

Or, for example, with an ISO:

cp debian-live-10.4.0-amd64-kde.iso /dev/sdb

should above commend suffice?

Should the pen drive be prepared somehow before hand? It's new and was never used/formatted.

  • using dd is not recommended by Ubuntu as it has proven troublesome. It's also slow. How about using balenaEtcher? balena.io/etcher – K7AAY May 28 '20 at 22:57
  • dd proven troublesome? Can you provide more info on that? I've been using it for ages for exactly the task the OP is doing without issues, should I be worried? – Eduardo Trápani May 28 '20 at 23:30
  • @EduardoTrápani: I suppose the comment above yours has in mind using it on the wrong drive. That has surely proven troublesome. Hence he provided the link to a tool that avoids this problem. – Quora Feans May 29 '20 at 0:25

You do the dd on the whole disk. That's because the image already has all the stuff needed to boot.

So this should work (sdX is the device sda,sdb, or whatever):

dd bs=1M if=nomadbsd-1.3.1.img of=/dev/sdX conv=fsync

Note that that will erase the whole device though. You should check first you have the right one (I insert the drive and do a dmesg).

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.