T
T
Talyan2020-11-12 19:45:08
Web development
Talyan, 2020-11-12 19:45:08

Is it possible to "reinitialize" a disk device in linux?

Hey!
Is there a way to "re-initialize" the /dev/sdb drive's SSD device, so to speak?
The fact is that the SSD is dead, when you try to clone it, ddrescue manages to copy a different percentage of data each time. For example:
1st time: 1%
2nd time: 43%
3rd time: 34%
4th time: 6%

After that, the cloned half-dead SSD simply stops responding, and mounting any partition hangs the mount utility forever. And ddrescue doesn't go beyond 0% after that (doesn't read a single byte).

But this is solved by rebooting. After a reboot, I can manipulate the SSD again.

The idea is that in order not to restart the computer after each attempt, but somehow reboot the SSD. Reboots are terribly tired.

PS If you give free rein to ddrescue, start cloning the entire disk or at least one of its partitions with important information, then you can wait at least a week for the SSD disk after "folding the skates" - there will be no effect. That is, there was a failure at the 1st percent, and he begins to consider all subsequent sectors broken and unreadable. Although at the next reboot, as I wrote in the example above, you can even achieve a 50 or 60 percent recovery without errors. The file is needed in its entirety, since there is a 1C file base, which the careless owner put on the

most deshman SSD and used it without backups for 4-5 years, and after problems with starting the OS started, they stupidly rebooted it with a hard drive :)

mem! Wow!)

PSPS. I forgot to write that there is a server on the disk, I am restoring from Debian Buster.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sanes, 2016-08-01
@Sanes

The server can be configured. What is a schedule anyway?
I'm assuming it's page generation time. Literally today I struggled with these parrots on ISPmanager 5 Lite. So there, for example, in PHP 7 (alt), Zendopcache is disabled by default. After switching on, the difference is noticeable, about 2 times.

T
Talyan, 2020-11-12
@flapflapjack

Everything turned out to be much more prosaic. "Hot" poke and stick. Debian does everything himself without problems. Sorry for the disturbance.

V
Vladimir, 2020-11-12
@MechanID

You can try reinitializing scsi devices
echo "- - -" > /sys/class/scsi_host/hostX/scan
hostX substitute yourself

O
Oleg Volkov, 2020-11-15
@voleg4u

By the way, if it dies at different percentages, it is very similar to overheating. (remove the cover, go out into the cold?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question