I am having trouble with hdds. I’m running a virtualization machine that actually has a few drives. I had 2 of the drives drop from the normal rw to ro. No significant event took place with the system. I really know enough bash and linux to be dangerous. I really only worked with 1 of the 2 drives so far, which is /dev/sdc1 and this is what I have done.
removed mount points that I see as not important and/or security sensitive but not the /dev/sdc and changed hostnames
root@vit18:~# mount -lsysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=3070599,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=2458444k,mode=755)
/dev/mapper/pve-root on / type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=0,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=4916880k)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/mapper/pve-data on /var/lib/vz type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered)
/dev/sda2 on /boot type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered)
/dev/sdb1 on /ssd1 type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=0,data=ordered)
/dev/sdd1 on /storage/hdd0 type ext3 (ro,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered)
root@vit18:~# fdisk -l /dev/sd*
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders, total 468862128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 468862127 234431063+ ee GPT
Disk /dev/sda1: 1 MB, 1048576 bytes
255 heads, 63 sectors/track, 0 cylinders, total 2048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda1 doesn't contain a valid partition table
Disk /dev/sda2: 534 MB, 534773760 bytes
255 heads, 63 sectors/track, 65 cylinders, total 1044480 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda2 doesn't contain a valid partition table
Disk /dev/sda3: 239.5 GB, 239519924224 bytes
255 heads, 63 sectors/track, 29119 cylinders, total 467812352 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda3 doesn't contain a valid partition table
Disk /dev/sdb: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 63 500118191 250059064+ 83 Linux
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb1: 256.1 GB, 256060482048 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118129 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
Alignment offset: 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdb1 doesn't contain a valid partition table
Disk /dev/sdd1: 1000.2 GB, 1000203837440 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdd1 doesn't contain a valid partition table
The scary part *for me at least *starts here
root@vit18:~# fsck /dev/sdc1fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
fsck.ext3: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc1
Could this be a zero-length partition?
root@vit18:~# dd if=/dev/sdc1 of=/storage/smb/sdc1dd: reading `/dev/sdc1': Input/output error
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00107448 s, 0.0 kB/s
Is there a hope of saving the data?
Thanks!!