Skip navigation.
Home
The QNX Community Portal

View topic - Bootable USB drive

Page 1 of 1

Bootable USB drive

PostPosted: Tue Apr 11, 2017 8:35 pm
by sheran.vaz
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?

Re: Bootable USB drive

PostPosted: Tue Apr 11, 2017 8:50 pm
by Tim

Re: Bootable USB drive

PostPosted: Tue Apr 11, 2017 11:50 pm
by sheran.vaz
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

Re: Bootable USB drive

PostPosted: Wed Apr 12, 2017 12:52 am
by sheran.vaz
Any idea, on creating bootable qnx6 fs on USB stick?

Re: Bootable USB drive

PostPosted: Wed Apr 12, 2017 1:39 pm
by Tim
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)
http://www.qnx.com/developers/docs/6.4. ... fdisk.html

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

Tim

Re: Bootable USB drive

PostPosted: Thu Apr 20, 2017 1:53 am
by sheran.vaz
I'm not sure why qnx6 filesystem didn't work, for now going with qnx4 filesystem. I will try qnx6 later.