View Single Post
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#753
I have modified the backupmenu 0.65 files in order to allow optfs formatting instead than erasing.

Thing is, when optfs is seriously damaged, erasing all files and directories like before might be insufficient to repair the filesystem.

This was an itch I really needed to scratch, because this way my N900 is much more independent from an external device in case the optfs gets messed up (an issue that happens quite often, unfortunately, at least in my hands, with all that fiddling plus an OC'd processor).

Of course, after formatting is done, you'll have to restore your (rootfs and) optfs.

The modded files in the attached tar.gz archive are BackupMenu.item and extrafiles.tar.gz and should be copied (as root) inside /usr/share/backupmenu - but you better rename the original files before, instead that overwriting, so that the pristine functionality can be restored if for any reason my mod doesn't work on your device.

Of course, before you test that, also do a full rootfs and optfs backup, in case everything gets messed up. I tested it twice and it always formatted optfs as expected, and the optfs tar file could be correctly restored.

Please RobbieThe1st consider including this mod in your next version; I don't think it's more dangerous than erasing all optfs files like was before, and it's more useful, at least imho.
Attached Files
File Type: gz bkpmnu0.65_mod_format.tar.gz (9.5 KB, 112 views)
__________________
Ernesto de Bernardis

 

The Following 7 Users Say Thank You to debernardis For This Useful Post: