QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
How to invoke fdisk? |
Ref. No. |
QNX.000004592 |
Category(ies) |
Filesystem |
Issue |
We are trying to reformat a hard-drive before installing QNX4 and Hemocare. The QNX4 boot disk (fdisk utility?) keeps reporting a corrupted file system, even though we want to reformat the entire HD.
We have also tried the QNX installation disk with the same results. We are using version 4.23. Could you please help?
|
Solution |
Here are 7 steps to partitioning a new harddrive:
1. Start the driver for the Hard drive (Fsys.eide, Fsys.aha7scsi, etc.)
2. Make sure there is an entry for the drive under /dev. (it will look something like /dev/hd0).
3. fdisk what you want for partitions.
4. type: mount -p /dev/hd0 (if you have more than 1 drive on the system, this may be hd1 or hd2, etc.)
5. dinit -hq /dev/hd0t77 (disk initalization of the new parition where h is for hard disk initing, and q is for quiet operation)
6. type: mount /dev/hd0t77 /hd
7. type: dcheck -m /dev/hd0t77
You may be missing one of the above steps. If not: If its a DOS disk, go back into DOS and delete the partitions, and try the partition again.
If its a new FAT32 disk, go into windows and delete the paritions.
What happens if you use a blank, new hard drive? It may be a problem with the drive if its an older one, ie. bad block or some such.
If those don't get it working, can you ask on the qdn.public.qnx4 newsgroup at news://inn.qnx.com
When posting please provide:
- the disk brand, model, size, interface (ide/scsi/etc) and parameters of the hard drive (ie. Quantum Fireball 1 Gig xxxx cyls/xx heads, or whatever yours is)
- what the drive was formatted to previously
- the output from 'sin', 'sin args', and 'sin ver'
- is there an entry in /dev for the drive you are trying to use?
This should either solve the problem or give enough information to find out whats going on. |
|