title: How do I mount and format new google compute disk to be mounted in a GKE pod?
body: <p>I have created a new disk in Google Compute Engine.</p>
  
  <pre><code>gcloud compute disks create --size=10GB --zone=us-central1-a dane-disk
  </code></pre>
  
  <p>It says I need to format it. But I have no idea how could I mount/access the disk?</p>
  
  <pre><code>gcloud compute disks list
  NAME                                               LOCATION       LOCATION_SCOPE  SIZE_GB  TYPE         STATUS
  notowania-disk                                     us-central1-a  zone            10       pd-standard  READY
  </code></pre>
  
  <blockquote>
    <p>New disks are unformatted. You must format and mount a disk before it
    can be used. You can find instructions on how to do this at:</p>
    
    <p><a href="https://cloud.google.com/compute/docs/disks/add-persistent-disk#formatting" rel="noreferrer">https://cloud.google.com/compute/docs/disks/add-persistent-disk#formatting</a></p>
  </blockquote>
  
  <p>I tried instruction above but <code>lsblk</code> is not showing the disk at all</p>
  
  <p>Do I need to create a VM and somehow attach it to it in order to use it? My goal was to mount the disk as a <a href="https://kubernetes.io/docs/concepts/storage/#gcepersistentdisk" rel="noreferrer">persistent GKE volume</a> independent of the VM (last time GKE upgrade caused recreation of VM and data loss)</p>