但我无法使用它.
1. sudo df -hfilesystem Size Used Avail Use% Mounted on/dev/sda1 9.9G 1.1G 8.3G 12% /tmpfs 3.6G 0 3.6G 0% /dev/shm2. sudo ls -l /dev/disk/by-ID/*lrwxrwxrwx. 1 root root 9 Nov 3 09:00 /dev/disk/by-ID/Google-instance-3 -> ../../sdalrwxrwxrwx. 1 root root 10 Nov 3 09:00 /dev/disk/by-ID/Google-instance-3-part1 -> ../../sda1lrwxrwxrwx. 1 root root 9 Nov 3 09:00 /dev/disk/by-ID/scsi-0Google_Persistentdisk_instance-3 -> ../../sdalrwxrwxrwx. 1 root root 10 Nov 3 09:00 /dev/disk/by-ID/scsi-0Google_Persistentdisk_instance-3-part1 -> ../../sda13. sudo fdisk -ldisk /dev/sda: 134.2 GB,134217728000 bytes4 heads,32 sectors/track,2048000 cylindersUnits = cylinders of 128 * 512 = 65536 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesdisk IDentifIEr: 0x0003b4b9 Device Boot Start End Blocks ID System/dev/sda1 17 163825 10483712+ 83 linux
我花了好几个小时尝试以不同的方式安装它,即使已更改实例但未成功.
UPD:如果有人遇到此问题,请按照以下说明 *** 作:https://cloud.google.com/compute/docs/disks#repartitionrootpd
解决方法 发出mount命令时,请检查是否未安装整个驱动器而不是单个分区,或尝试将正确的分区添加到mount命令.(例如:mount / dev / disk / by-ID / scsi-0Google_Persistentdisk_instance-3-part1 / your / mount / location)
你有没有错误信息?
你有没有试过gsutil – Google Cloud Storage Tool?
总结以上是内存溢出为你收集整理的linux – 如何在Google Cloud(Google Compute Engine)上安装驱动器?全部内容,希望文章能够帮你解决linux – 如何在Google Cloud(Google Compute Engine)上安装驱动器?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)