Recently, I bought a house. One of the things I was excited to do was build/buy/have a server with a whole bunch of VMs on it. I should setup a blog post about its setup but whatever. I've got this server on a UPS, so I figured it would last the half hour it would take to swap out some breakers. I took longer than half an hour and the server died. When I tried to turn it back on, lo and behold no boot. Turns out the SSD I had everything hosted on died in the mess. I booted into a linux disc, but the SSD didn't show up in 'blkid' or 'lsblk' as more than just a drive without partitions. Crap. Pulled out the SSD, put it in an enclosure on my laptop and run
smartctl /dev/sdc -a -T permissive and see that the capacity is 32.7KB, 32,768 bytes. This seems low for a 240GB drive. Double crap. Google didn't show any way of fixing it, so I figured I'd try some stuff. In the below output, there is a hint that says to turn on SMART use the 'smartctl' command with '-s on
, yielding smartctl /dev/sdc -a -T permissive -s on`. I an this with "SMART support is: Unavailable - device lacks SMART capability.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enable failed: scsi error unsupported scsi opcode
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
" as output. Disconnecting it and reconnecting it though.... I got the partitions! And the size! It works! We'll see if it will take a backup... Here's hoping.