You are on page 1of 3

Create and Mount New Partition

!!!The step below should not be done from the remote PC!!!

1. Log in as 'root'

2. Type: fdisk /dev/hd0 --> this will open interactive fdisk screen

3. Go to 'Loader' by using 'RIGHT' arrow key then press ENTER and make sure loader is
showing 'QNX as shown below'

4. Choose next empty partition slot by using the 'DOWN'arrow key (in case below slot 2
is selected.

5. Go to 'Change' menu and press 'RETURN' Key to create the partion

Creating and Mounting partition in QNX 4.25 by: JP


1
6. Input the following.
type: 78
Start Cylinder: RETURN on default value
End Cylinder: RETURN on default value

Note: use the next value available for type... 77 is for 1st partition, in case above, 78 is used
since there is no other partition.
Taking default values in Start and End Cylinders means using the remaining
unpartitioned space on the HD.
Decreasing the value in End Cylinder reduces the alloted space of the created
partition.

7. Go to SAVE and hit RETURN


8. Restart the CPU, type:
shutdown -f
9. Log in as 'root'
10. Verify if there is hd0t78: this is the new partion, type:
ls /dev
11. Initialize/format the partitioned disk. Type:
dinit -h /dev/hd0t78
12. Check for bad sector, Optional... may take sometime to finish, type:
dcheck -m /dev/hd0t78
13. Verify disk usage in available partitions, type:
df
14. Mount the created partition, type:
mount /dev/hd0t78 /flexicam/tmp

Creating and Mounting partition in QNX 4.25 by: JP


2
15. Verify if new partion is mounted

Note: Restarting the machine unmounts the new partition so you need to add the line
below to a startup file, e.g. /usr/bin/startnet

16. Add this line to startnet: mount /dev/hd0t78 /flexicam/tmp


17. Restart the machine
18. Log in as 'root'
19. Type: df ---> Verifies if new partion is mounted

Creating and Mounting partition in QNX 4.25 by: JP


3

You might also like