LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mkdir fails ( even with -p ): No such file or directory (https://www.linuxquestions.org/questions/linux-software-2/mkdir-fails-even-with-p-no-such-file-or-directory-811098/)

axisofevil 05-30-2010 12:29 PM

mkdir fails ( even with -p ): No such file or directory
 
The setup ( although dont trust anything I say ):

I'm working on an embedded system device using a NFS mounted rootfs ( as shared by my host ) , but I store large video content directly on the device's hdd in /data.

Device's hdd partition /dev/sda3 is ext3 fs mounted at /tmp/mnt/diska3 (rw) , then I have a script create dirs like /tmp/mnt/diska3/data
and /tmp/mnt/diska3/incoming, then symlink : ln -s /tmp/mnt/diska3/data /data so that the /data appears like any other directory.

I can see /tmp/mnt/diska3/data/incoming. I did chmod -R a+w tmp to rule out permissions.

Running a subsequent script calls mkdir: mkdir -p /data/incoming/gui

BUT fails:
mkdir: cannot create directory '/data/': No such file or directory

What's the deal?

Thanks for use of your brain.. dB

axisofevil 05-30-2010 12:31 PM

minor correction:

was: then I have a script create dirs like /tmp/mnt/diska3/data
and /tmp/mnt/diska3/incoming,

should be:
then I have a script create dirs like /tmp/mnt/diska3/data
and /tmp/mnt/diska3/data/incoming,

axisofevil 06-01-2010 11:11 AM

I'm keeping this thread in General forum , see same there.


All times are GMT -5. The time now is 01:35 PM.