0% found this document useful (0 votes)
310 views

Create and Mount New Partition

This document provides steps to create and mount a new partition in QNX 4.25. It involves using fdisk to create a new partition, initializing and checking it for bad sectors, mounting it, and adding a line to automatically mount it on startup. The key steps are: 1) Log in as root and use fdisk to create a new partition in an empty slot. 2) Initialize and check the new partition for bad sectors. 3) Mount the partition and verify that it is mounted. 4) Add a line to /usr/bin/startnet to automatically mount the partition on startup.

Uploaded by

sami4330
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
310 views

Create and Mount New Partition

This document provides steps to create and mount a new partition in QNX 4.25. It involves using fdisk to create a new partition, initializing and checking it for bad sectors, mounting it, and adding a line to automatically mount it on startup. The key steps are: 1) Log in as root and use fdisk to create a new partition in an empty slot. 2) Initialize and check the new partition for bad sectors. 3) Mount the partition and verify that it is mounted. 4) Add a line to /usr/bin/startnet to automatically mount the partition on startup.

Uploaded by

sami4330
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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