Bootable USB drive

I trie dbelow sequence of steps to create a bootable USB stick,

fdisk /dev/umass0 delete -a
fdisk /dev/umass0 loader
fdisk /dev/umass0 add -s1 -b -t 77
mount -e /dev/umass0
dinit -h /dev/umass0t77

then copied a a bootable ifs onto .boot of th partition.

But when i try to boot from USB drive, i get “Missing Operating system”

Any infor on this?

Aren’t you missing a loader?

qnx.com/support/knowledgebas … 000000Smi2

Tim

The format i mentioned above works for CFast card and with type 179(qnx6 fs). (The loader is specified from fdisk) But seems for USB stick, the same format doesn’t work, therefore i was trying to create type 77 (qnx4 fs)

But as per the QNX documentation shared by Tim, if i use the dloader to assign the loader at the end (instead of fdisk loader) for type 77 fs, then it works

FINAL:
fdisk /dev/umass0 delete -a
fdisk /dev/umass0 add -s1 -b -t 77
mount -e /dev/umass0
dinit -h /dev/umass0t77
dloader /dev/umass0 pc1
dloader /dev/umass0t77 pc2

Any idea, on creating bootable qnx6 fs on USB stick?

I’m glad you got it working.

Are you not happy with using those steps?

My understanding of why it isn’t working with your original commands is because fdisk either isn’t installing an MBR (master boot record) because the drive came with a default Windows one or that doesn’t handle the USB drive geometry correctly. So what you are doing with the dloader command is forcibly installing a new MBR.

Fdisk talks about this (and googling around QNX doc’s will find more references to it)
qnx.com/developers/docs/6.4. … fdisk.html

You can force fdisk to put the MBR on with the ‘-B pc2’ option.

Tim

I’m not sure why qnx6 filesystem didn’t work, for now going with qnx4 filesystem. I will try qnx6 later.