【发布时间】:2014-04-29 22:56:12
【问题描述】:
我是第一次使用 Google Compute Engine 并尝试将其他磁盘附加到我的实例。我正在按照this page 上的说明进行操作,但没有运气。
这是我到目前为止所做的:
创建了一个 10GB 的磁盘 - 'test-disk'。我现在使用的是一个小磁盘,因为我只是第一次尝试。
-
用这个额外的磁盘启动了一个实例:
$ ./bin/gcutil --service_version="v1" --project="my-project-id" ssh --zone="us-central1-a" "test-disk"
-
通过 SSH 登录实例并运行
the safe_format_and_mount命令。$ sudo mkdir /磁盘
$ sudo /usr/share/google/safe_format_and_mount -m "mkfs.ext4 -F" test-disk /disk
此时我不断收到此错误:
safe_format_and_mount: Running: fsck.ext4 -a test-disk
safe_format_and_mount: fsck.ext4: No such file or directory while trying to open test-disk
safe_format_and_mount: test-disk:
safe_format_and_mount: The superblock could not be read or does not describe a correct ext2
safe_format_and_mount: filesystem. If the device is valid and it really contains an ext2
safe_format_and_mount: filesystem (and not swap or ufs or something else), then the superblock
safe_format_and_mount: is corrupt, and you might try running e2fsck with an alternate superblock:
safe_format_and_mount: e2fsck -b 8193 <device>
safe_format_and_mount:
safe_format_and_mount: Fsck could not correct errors on test-disk
safe_format_and_mount: Running: mount -o defaults test-disk /disk
safe_format_and_mount: mount: you must specify the filesystem type
safe_format_and_mount: Running: mkfs.ext4 -F test-disk
safe_format_and_mount: mke2fs 1.41.12 (17-May-2010)
safe_format_and_mount: mkfs.ext4: No such file or directory while trying to determine filesystem size
safe_format_and_mount: Format of test-disk failed.
safe_format_and_mount: Running: mount -o defaults test-disk /disk
safe_format_and_mount: mount: you must specify the filesystem type
safe_format_and_mount: Tried everything we could, but could not mount test-disk.
我使用的是 CentOS 6.0,我已禁用 SELINUX。除此之外,我没有做任何改变。任何帮助深表感谢。
谢谢。
【问题讨论】:
标签: centos google-cloud-storage mount google-compute-engine