View topic - Bootable USB drive
Bootable USB drive
6 posts
• Page 1 of 1
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?
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
- Senior Member
- Posts: 101
- Joined: Mon May 11, 2009 9:17 am
Re: Bootable USB drive
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
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
- Senior Member
- Posts: 101
- Joined: Mon May 11, 2009 9:17 am
Re: Bootable USB drive
Any idea, on creating bootable qnx6 fs on USB stick?
- sheran.vaz
- Senior Member
- Posts: 101
- Joined: Mon May 11, 2009 9:17 am
Re: Bootable USB drive
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
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: 1519
- Joined: Wed Mar 10, 2004 12:28 am
Re: Bootable USB drive
I'm not sure why qnx6 filesystem didn't work, for now going with qnx4 filesystem. I will try qnx6 later.
- sheran.vaz
- Senior Member
- Posts: 101
- Joined: Mon May 11, 2009 9:17 am
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests