I am using Google Compute Engine for the first time and trying to attach additional disk to my instance. I am following instructions on this page with no luck.
Here is what I have done till now:
Created a disk - 'test-disk' - of 10GB. I am using a small disk as of now since I am just trying things for the first time.
Started an instance with this additional disk:
$ ./bin/gcutil --service_version="v1" --project="my-project-id" ssh --zone="us-central1-a" "test-disk"
Logged in to the instance via SSH and ran
the safe_format_and_mountcommand.$ sudo mkdir /disk
$ sudo /usr/share/google/safe_format_and_mount -m "mkfs.ext4 -F" test-disk /disk
At this point I keep getting this error:
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.
I am using CentOS 6.0, I have disabled the SELINUX. Apart from that I haven't made any change. any help is much appreciated.
Thanks.