Add any FILE to persistent SSD disk of a google cloud vm instance

Hello everyone,

I would like to know how to add any file to a persistent SSD disk of a Google Cloud Instance VM.

I tried to copy a file in the home directory to the folder where the Persistent disk is mounted using the following command:

sudo cp    /home/username/project1/filename.csv      /home/username/project1/mounted_dir/filename.csv

But, the file is not getting copied.

Am I doing any mistake or is there any other method for this ?

Thank you

Pavithra

Solved Solved
0 2 490
1 ACCEPTED SOLUTION

If you want to transfer files to a Linux VM, please review this guide. You can transfer files through Cloud Storage, using Cloud CLI, using SSH-in-browser or using SCP.

View solution in original post

2 REPLIES 2

If you want to transfer files to a Linux VM, please review this guide. You can transfer files through Cloud Storage, using Cloud CLI, using SSH-in-browser or using SCP.

Thank you, will refer these and try to do the sane.

 

I would like to know if there is anything like a page cache for a Google cloud VM instance ?

If so, how to add files to it and clear that page cache when necessary ??

 

Thank you

Pavithra