neurohub / neurohub_documentation

5 stars 5 forks source link

The examples to mount squashfs don't run #13

Closed maxadam2017 closed 2 years ago

maxadam2017 commented 3 years ago

Re.: 5.2.Accessing Data squashfs images need to be mounted "read-only" explicitly The examples should be edited to include :ro after each --overlay <filename.squashfs> directive. For example:

singularity shell --overlay neurohub_ukbb_rfmri_ses2_0_bids.squashfs:ro --overlay neurohub_ukbb_rfmri_ses2_1_bids.squashfs:ro (etc.)

And:

cd /project/rpp-aevans-ab/neurohub/ukbb/
over=''
for ov in `printf "%s\n" "imaging/neurohub_ukbb_rfmri_ses2_?_bids.squashfs"`; do
    over+=" --overlay ${ov}:ro"
done
echo "${over}"

A comment should be inserted something like this:

Note that a squashfs image is a read-only filesystem and so it is necessary to issue the --overlay mounting directive with the explicit :ro mount option following each squashfs file.

bryancaron commented 2 years ago

Confirmed with Pierre Rioux and Darcy Quesnel that for the latest version of singularity on Compute Canada that the :ro option is no longer required. So the documentation has been updated on the documentation page so as to remove explicit inclusion of :ro from the syntax.

Bryan.