I attached, formatted, and mounted a persistent storage disk to my google cloud compute VM last week. Saved some work to it, and left for a week. When I returned the disk had been unmounted, and now seems corrupt, how can I recover the data on this corrupt disk?
Some hopefully relevant information:
Machine type: n1-standard-2 (2 vCPUs, 7.5 GB memory)
OS: Ubuntu 16.04
Additional disks: Standard persistent disk, Read/write, Keep disk when deleting instance
$ mount -o discard,defaults /dev/sdb /mnt/disks/data mount: /dev/sdb: can't read superblock $ fdisk -l ... Disk /dev/sdb: 1000 GiB, 1073741824000 bytes, 2097152000 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 1000G 0 disk sda 8:0 0 10G 0 disk ??sda1 8:1 0 10G 0 part / $ fsck.ext4 -v /dev/sdb e2fsck 1.42.13 (17-May-2015) /dev/sdb has unsupported feature(s): metadata_csum e2fsck: Get a newer version of e2fsck! $ cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults 0 0
Thank you for your time!