How to mount drive at Google Cloud (Google Compute Engine)?
I have runned instance in Google Compute Engine with 120Gb boot drive.
But I'm not able to use it.
1. sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 1.1G 8.3G 12% /
tmpfs 3.6G 0 3.6G 0% /dev/shm
2. sudo ls -l /dev/disk/by-id/*
lrwxrwxrwx. 1 root root 9 Nov 3 09:00 /dev/disk/by-id/google-instance-3 -> ../../sda
lrwxrwxrwx. 1 root root 10 Nov 3 09:00 /dev/disk/by-id/google-instance-3-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 9 Nov 3 09:00 /dev/disk/by-id/scsi-0Google_PersistentDisk_instance-3 -> ../../sda
lrwxrwxrwx. 1 root root 10 Nov 3 09:00 /dev/disk/by-id/scsi-0Google_PersistentDisk_instance-3-part1 -> ../../sda1
3. sudo fdisk -l
Disk /dev/sda: 134.2 GB, 134217728000 bytes
4 heads, 32 sectors/track, 2048000 cylinders
Units = cylinders of 128 * 512 = 65536 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0003b4b9
Device Boot Start End Blocks Id System
/dev/sda1 17 163825 10483712+ 83 Linux
I have spended several hours trying to mount it in different ways even have changed instance but unsuccessfully.
UPD: If someone has this issue follow this instruction: https://cloud.google.com/compute/docs/disks#repartitionrootpd
When you issue the mount command, check if you are not mounting a whole drive instead of a single partition or try to add the correct partition to the mount command.
(ex.: mount /dev/disk/by-id/scsi-0Google_PersistentDisk_instance-3-part1 /your/mount/location )
Did you had any error messages?
Have you also tried gsutil - Google Cloud Storage Tool?