Перейти к содержимому

Как отменить `rm -r *`?

0

Я хотел стереть все данные на устройстве USB. Дело в том, что я случайно смонтировал /dev/sda1вместо себя /dev/sdb1и случайно удалил раздел восстановления Windows.

Я запускал это из Ubuntu 14.04. Любые идеи, как отменить это?

3 456 просмотров
The Great Widi спросил 12 лет назад
T 16

1 ответ

0

Not sure what you mean by sda1 other than just meaning /dev/sda1.

Anyways, sorry to say that you're pretty much hosed if you're expecting things to return to normal. However, there might be some hope if what you care about recovering most is media files, zip files or doc files. There is a program called foremost that will try to recover various types of files based on their magic byte. If all that was lost in the rm -r is the metadata (filenames, modification times) then you should be able to recover some of the data. Although you'll have to then go through each file and rename it to something meaningful again. Good luck.

`Не уверен, что вы подразумеваете под sd ** a ** 1`. OP хотел подчеркнуть букву` a`, используя форматирование жирным шрифтом, которое не работает должным образом, когда нет окружающих пробелов, если вы не используете тег HTML ` ` ,
and31415 · 12 лет назад · 3
deltaray ответил 12 лет назад
D 1 510