The file system F2FS is broken
Hello everybody. There was a need to create a swap. There was no free partition, so I decided to create a swap in the file. I did everything according to the instructions https://wiki.archlinux.org/index.php/Swap As a result, it was done:
Code:
dd if=/dev/zero of=/swapfile bs=1M count=4096 Code:
... upd: When asked whether to restore files, answered no, after asking whether to restore the partition - answered yes, then asked whether to restore files - answered no. Posted by Done. The partition is still not mounted, but at startup it now writes: Code:
... |
Swapping to a NAND card is a bad idea. It seems obvious that you broke your filesystem beyond repair.
If there is no backup, I would use something like photorec to recover whatever useful data can be found on the card, throw the card away and reinstall the system on a new one. If your computer requires swapping, use an external disk or a computer with more RAM. My story: My file server used to run regular Centos 6 from a USB key. It took about a year to break similarly to yours. Now I use an old spinning laptop disk I had lying around. No issues for years. |
Looks like only (very) recently has f2fs supported native swap. As in 5.3 kernels.
If your data isn't worth backing up prior to you messing around, it isn't worth anything. |
Thanks for answers. testdisk destroyed all partitions of the disk, because it does not understand f2fs. reinstalled the system on a new one on btrfs with support for creating snapshots
|
All times are GMT -5. The time now is 03:15 PM. |