我正在遵循本指南https://developers.google.com/compute/docs/troubleshooting#ssherrors,特别是关于使用另一个vm恢复持久磁盘的部分。
我正在尝试遵循这一部分:
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
任何想法?
答案 0 :(得分:7)
感谢您指出这一点,我将更新文档。尝试将-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