Search code examples
linuxmountqnxqnx-neutrino

How to mount a qnx partition as read -write enabled only for executing particular lines of code?


ie the partition of interest is already mounted as read-only.the partition need to be mounted as a rw enabled partition for executing particular lines of script alone.After that the partition should go to it's previous state of read only.


Solution

  • To remout a partition read-write:

    mount /mnt/mountpoint -oremount,rw
    

    and to remout read-only

    mount /mnt/mountpoint -oremount,ro