QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
How to boot from floppy and access hard drive |
Ref. No. |
QNX.000009326 |
Category(ies) |
Installation, Filesystem, Configuration |
Issue |
Our QNX4 system will no longer boot from the hard disk. How can we boot from floppy and see what's happened to our disk?
|
Solution |
This solution is documented in the "QNX OS Installation & Configuration" manual in the chapter "What to do if your system will no longer boot" (in the Chapter "Disk & File Recovery").
The following steps show you how to boot from floppy and then switch over to work on the hard disk. This can be useful if you have a corrupted sysinit or altsysinit, or if your boot images (/.boot or /.altboot) have been corrupted and you wish to rebuild them.
Be sure to read the entire chapter on disk and file recovery in the User's Guide before you attempt this procedure:
1.x09Boot from the QNX boot floppy that was used to install your system onto the hard disk.
2.x09Start a hard disk driver. For example, if you have a standard Western Digital-compatible controller, enter:
x09x09Fsys.wd &
3.x09If desired, you can run fdisk to view the partition table:
x09x09fdisk /dev/hd0
4.x09Mount the partition as a block special file:
x09x09mount -p /dev/hd0
5.x09Mount a QNX filesystem:
x09x09mount /dev/hd0t77 /hd
6.x09Change your prefix tree in order to redirect from the hard disk instead of the floppy:
x09x09/hd/bin/prefix -R /=/hd/
Your system prefix for root (/) has now been changed to /hd/ in order to access the hard disk more easily. You may now want to run chkfsys to examine the filesystem.
|
|