I'm not sure what would cause this. Are the .hdr files OK? Can SPM or any other package be used to display the images? Is there anything unusual about the disk you have the images on? Does it work if you quit MATLAB and try it again? Here are the reasons that the documentation about memory mapping gives for failures, and I'm not sure which of these corresponds most closely to your error message. EBADF fd is not a valid file descriptor (and MAP_ANONY MOUS was not set). EACCES A file descriptor refers to a non-regular file. Or MAP_PRIVATE was requested, but fd is not open for reading. Or MAP_SHARED was requested and PROT_WRITE is set, but fd is not open in read/write (O_RDWR) mode. Or PROT_WRITE is set, but the file is append-only. EINVAL We don't like start or length or offset. (E.g., they are too large, or not aligned on a PAGESIZE boundary.) ETXTBSY MAP_DENYWRITE was set but the object specified by fd is open for writing. EAGAIN The file has been locked, or too much memory has been locked. ENOMEM No memory is available, or the process's maximum number of mappings would have been exceeded. ENODEV The underlying filesystem of the specified file does not support memory mapping. Best regards, -John On Friday 16 November 2007 13:08, boris suchan wrote: > Hi all, > > I am trying to run a realginemet operation under spm5 /Linux. > > I get the following error message > > > > Running "Realign: Estimate" > > Error running job: > > Invalid MEX-file '/mnt/windowsF/spm5/spm_bsplinc.mexa64': > /mnt/windowsF/spm5/spm_bsplinc.mexa64: Fehler beim Mappen des Shared > Objects: Die Operation ist nicht erlaubt. > > /mnt/windowsF/spm5/spm_realign.m at line 398 > > /mnt/windowsF/spm5/spm_realign.m at line 202 > > /mnt/windowsF/spm5/spm_realign.m at line 115 > > /mnt/windowsF/spm5/spm_config_realign.m at line 389 > > /mnt/windowsF/spm5/toolbox/vbm5/spm_jobman.m at line 1557 > > /mnt/windowsF/spm5/toolbox/vbm5/spm_jobman.m at line 1567 > > /mnt/windowsF/spm5/toolbox/vbm5/spm_jobman.m at line 1567 > > /mnt/windowsF/spm5/toolbox/vbm5/spm_jobman.m at line 1567 > > /mnt/windowsF/spm5/toolbox/vbm5/spm_jobman.m at line 1504 > > > > > > The error description at the end of line 3 says: error during mapping of > shared objects, this operation is not allowed. > > > > Can anybody help me? > > > > I tried to do the realignement under Windows, but these are images of a > femur and they have a size of 200 MB each, so even realigning 2 images > brings the error message: out f memory…. > > > > > > Many thanks in advance > > > > boris > > > > Priv.-Doz. Dr. Boris Suchan > > Institute of Cognitive Neuroscience > > Ruhr University Bochum > > Universitätsstr. 150 > > 44780 Bochum > > GAFO 05/613 > > Tel.: + 49 234 3227575 > > Fax: + 49 234 3214622 > > mailto: <mailto:[log in to unmask]> [log in to unmask] > > <http://www.ruhr-uni-bochum.de/neuropsy/mitarbeiter/boris_suchan.html> > http://www.ruhr-uni-bochum.de/neuropsy/mitarbeiter/boris_suchan.html