Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/share/google/safe_format_and_mount does not exist on new google cloud instance

I'm trying to run my first ever google VM following this tutorial which says to run the command

sudo /usr/share/google/safe_format_and_mount -m "mkfs.ext4 -F" /dev/disk/by-id/google-minecraft-disk /home/minecraft

But, there is no /usr/share/google directory on my VM, so no safe_format_and_mount.

This is what I see in /usr/share:

enter image description here

How do I format the volume I created? or, where is this safe_format_and_mount executable?

like image 633
Jose M Vidal Avatar asked Nov 28 '25 15:11

Jose M Vidal


1 Answers

To format the drive I used

sudo mkfs.ext4 -F -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/disk/by-id/google
-minecraft-disk 
like image 71
Jose M Vidal Avatar answered Dec 01 '25 05:12

Jose M Vidal