谷歌计算引擎挂载持久磁盘问题

3
我正在按照这个指南 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
由于使用了 Google Compute 磁盘,系统已经被删除并附加到另一台机器上,因此我不确定文件系统是什么。
parted scsi-0Google_PersistentDisk_marty-wll-debugging -l
给我提供了信息,它是 "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
syslog 的 dmesg 信息显示:
[ 2452.205447] EXT4-fs (sdb): VFS: Can't find ext4 filesystem
有什么想法吗?
1个回答

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

感谢您的纠正。这是我本周帮助纠正的第二个云平台文档!另一个是关于云SQL二进制日志记录的。再次感谢! - Justin W. Johns
1
@brian dorsey?这个问题是否与将“-part1”附加到磁盘名称有关?http://stackoverflow.com/questions/41024084/attaching-persistent-disks-makes-google-compute-instance-inaccessible - Medya Gh

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接