kaggle: How to solve OSError: [Errno 30] Read-only file system?

What you can do is copy the transformed images directory to the /kaggle/working folder by doing the following
!cp -r original_directory_path ./

cp is the copy command for linux ( since notebooks run on a linux kernel)
-r is for copying the whole directory comments
./ is the current working directory ( /kaggle/working)

Note in case you have changed your current working directory, do this
!cp -r original_directory_path /kaggle/working

Sushanth D

Posted 4 years ago

This post earned a bronze medal

arrow_drop_up41arrow_drop_down

more_vert

To add to the already existing answers:
You cannot write to the "input" directory as it is read-only.
So you will have to write to the directory called "working"
This directory location is as follows:
"/kaggle/working/"

Note that: "/" is for root at the very beginning. Then you go into the "working" directory.
This knowledge is particularly useful when you have "cd"ed into a different directory in your kernel.

Also, it is under "/kaggle/" directory you see the directories: "input", "working".

你可能感兴趣的:(linux,运维,服务器)