Skip navigation.
Home
The QNX Community Portal

View topic - Bootable USB drive

Bootable USB drive

Discussion about the QNX6 OS.

Bootable USB drive

Postby sheran.vaz » Tue Apr 11, 2017 8:35 pm

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?
sheran.vaz
Active Member
 
Posts: 98
Joined: Mon May 11, 2009 9:17 am

Re: Bootable USB drive

Postby Tim » Tue Apr 11, 2017 8:50 pm

Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Re: Bootable USB drive

Postby sheran.vaz » Tue Apr 11, 2017 11:50 pm

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
sheran.vaz
Active Member
 
Posts: 98
Joined: Mon May 11, 2009 9:17 am

Re: Bootable USB drive

Postby sheran.vaz » Wed Apr 12, 2017 12:52 am

Any idea, on creating bootable qnx6 fs on USB stick?
sheran.vaz
Active Member
 
Posts: 98
Joined: Mon May 11, 2009 9:17 am

Re: Bootable USB drive

Postby Tim » Wed Apr 12, 2017 1:39 pm

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
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Re: Bootable USB drive

Postby sheran.vaz » Thu Apr 20, 2017 1:53 am

I'm not sure why qnx6 filesystem didn't work, for now going with qnx4 filesystem. I will try qnx6 later.
sheran.vaz
Active Member
 
Posts: 98
Joined: Mon May 11, 2009 9:17 am


Return to QNX6 - OS

Who is online

Users browsing this forum: No registered users and 2 guests

cron