谷歌计算引擎安装持久性磁盘问题

Jus*_*hns 3 google-compute-engine

我按照本指南https://developers.google.com/compute/docs/troubleshooting#ssherrors专门介绍了有关使用其他虚拟机恢复永久磁盘的部分.

我试图遵循这一部分:

mount /dev/disk/by-id/scsi-0Google_PersistentDisk_myinstance-debugging /mnt/myinstance

这是我得到的错误:

root@debugger:~# mount /dev/disk/by-id/scsi-0Google_PersistentDisk_marty-wll-debugging /mnt/marty-wll
mount: you must specify the filesystem type

由于使用了谷歌计算磁盘,我不确定文件系统,并且系统已经被删除并附加到我上面引用的谷歌开发者指南之后的另一台机器上.

parted scsi-0Google_PersistentDisk_marty-wll-debugging -l
root@debugger:/dev/disk/by-id# parted scsi-0Google_PersistentDisk_marty-wll-debugging -l
Model: Google PersistentDisk (scsi)
Disk /dev/sda: 10.7GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  10.7GB  10.7GB  primary  ext4


Model: Google PersistentDisk (scsi)
Disk /dev/sdb: 10.7GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  10.7GB  10.7GB  primary  ext4

给了我"ext4"的信息.

虽然当我发出以下命令时,我仍然会收到错误:

root@debugger:~# mount -t ext4 /dev/disk/by-id/scsi-0Google_PersistentDisk_marty-wll-debugging /mnt/marty-wll 
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

系统日志的dmesg说:

[ 2452.205447] EXT4-fs (sdb): VFS: Can't find ext4 filesystem

有任何想法吗?

Bri*_*sey 7

感谢您指出这一点,我将更新文档.尝试添加-part1到设备名称的末尾.这将挂载分区,而不是磁盘.对于您的具体情况:

mount /dev/disk/by-id/scsi-0Google_PersistentDisk_myinstance-debugging-part1 /mnt/myinstance
Run Code Online (Sandbox Code Playgroud)

此外,还有更清洁的别名,所以这也应该工作:

mount /dev/disk/by-id/google-myinstance-debugging-part1 /mnt/myinstance
Run Code Online (Sandbox Code Playgroud)