# File Recovery

Find disks using `mount` and looking for `sd[a-z]`:

<pre class="language-shell-session"><code class="lang-shell-session"><strong>$ mount
</strong>/dev/sdb on / type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
...
</code></pre>

Then grep for any known text:

```shell-session
$ sudo grep -a -C 200 -F 'Insert text here' /dev/sdb | tee /tmp/recovered
```

This will output a lot of garbage as well, so you can then filter on ASCII lines only:

```shell-session
$ grep --color=never -aoP '^[[:ascii:]]*$' /tmp/recovered
```
