Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Batch - Mounting Existing Persistent Disk

Hi. I'm having trouble mounting an existing persistent disk using batch. I get the following error

mount: /mnt/share_conda: cannot mount /dev/sda read-only

I'm using the Batch GUI to launch. Is there some special read-only restriction I'm tripping up on?

Thanks so much!

Solved Solved
1 3 604
1 ACCEPTED SOLUTION

Glad to know it works! ro is a default option for existing pd now and noload could be specified by users based on their needs.

Best,

Wen

View solution in original post

3 REPLIES 3

Hi, thanks for the question!

For existing persistent disk, we only support read-only. Could you please elaborate more on the disk spec? Is it ext4 and unmounted before being used for this Batch Job? From https://unix.stackexchange.com/questions/509973/mount-ext4-disk-cannot-mount-dev-sdc-read-only, could "noload" mount option help?

Thanks!

Passing ro,noload did the trick! Possibly a good default to consider.

Thanks a ton.

Glad to know it works! ro is a default option for existing pd now and noload could be specified by users based on their needs.

Best,

Wen