Google compute engine google计算引擎装载持久性磁盘问题

Google compute engine google计算引擎装载持久性磁盘问题,google-compute-engine,Google Compute Engine,我遵循本指南,特别是关于使用另一个vm恢复持久磁盘的部分 我试着遵循这一部分: mount /dev/disk/by-id/scsi-0Google_PersistentDisk_myinstance-debugging /mnt/myinstance mount/dev/disk/by id/scsi-0Google\u PersistentDisk\u myinstance-debug/mnt/myinstance 这是我得到的错误: root@debugger:~# mount /dev/

我遵循本指南,特别是关于使用另一个vm恢复持久磁盘的部分

我试着遵循这一部分:

mount /dev/disk/by-id/scsi-0Google_PersistentDisk_myinstance-debugging /mnt/myinstance mount/dev/disk/by id/scsi-0Google\u PersistentDisk\u myinstance-debug/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 root@debugger:~#mount/dev/disk/by id/scsi-0Google_PersistentDisk_marty-wll-debug/mnt/marty-wll 装载:必须指定文件系统类型 我不确定文件系统,因为正在使用google计算磁盘,并且系统已经按照我上面提到的google开发者指南被删除并连接到另一台机器上

parted scsi-0Google_PersistentDisk_marty-wll-debugging -l 分离scsi-0Google\u PersistentDisk\u marty-wll-debugging-l root@debugger:/dev/disk/by id#parted scsi-0Google_PersistentDisk_marty-wll-debug-l 型号:Google PersistentDisk(scsi) 磁盘/dev/sda:10.7GB 扇区大小(逻辑/物理):512B/4096B 分区表:msdos 数字开始结束大小类型文件系统标志 1 1049kB 10.7GB 10.7GB主ext4 型号:Google PersistentDisk(scsi) 磁盘/dev/sdb:10.7GB 扇区大小(逻辑/物理):512B/4096B 分区表:msdos 数字开始结束大小类型文件系统标志 1 1049kB 10.7GB 10.7GB主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 root@debugger:~#mount-t ext4/dev/disk/by id/scsi-0Google\u PersistentDisk\u marty-wll-debug/mnt/marty-wll 挂载:错误的fs类型、错误的选项、错误的超级块(位于/dev/sdb上), 缺少代码页或帮助程序,或其他错误 在某些情况下,可以在syslog-try中找到有用的信息 dmesg |尾巴左右 syslog的dmesg说:

[ 2452.205447] EXT4-fs (sdb): VFS: Can't find ext4 filesystem [2452.205447]EXT4 fs(sdb):VFS:找不到EXT4文件系统
有什么想法吗?

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

mount /dev/disk/by-id/scsi-0Google_PersistentDisk_myinstance-debugging-part1 /mnt/myinstance
此外,还有更干净的别名,因此这也应该起作用:

mount /dev/disk/by-id/google-myinstance-debugging-part1 /mnt/myinstance

谢谢你的更正。这是我本周帮助纠正的第二份云平台文档!另一个是关于云sql二进制日志记录。再次感谢@布莱恩·多尔西?这个问题与将-part1追加到磁盘名有关吗?
mount /dev/disk/by-id/google-myinstance-debugging-part1 /mnt/myinstance