[E3-hacking] Config / content filesystem

Ralph Corderoy ralph at inputplus.co.uk
Sat Apr 20 18:39:23 BST 2019


Hi Nick,

> sudo nand-oob-strip.py e3-nand-backup.0 e3-nand.0: No such file or
> directory

Two things.  You probably don't need sudo as your ordinary user should
be able to read e3-nand-backup.0 and write e3-nand.0.  You have to
specify a path to the nand-oob-strip.py script for the shell to find it.
Since it's in the current directory, that's just `.', i.e.

    ./nand-oob-strip.py in.0 out.0

If that complains, then it's because ./nand-oob-strip.py lacks the
`execute' permission for you.  Either add it with chmod(1), or run the
Python interpreter directly:

    python3 nand-oob-strip.py in.0 out.0

Alternatively, to modify the file in place, so ensure they're not your
only copies, you can do

    LC_ALL=C perl -i -0777pe 's/(.{512})(.{16})/$1/gs' \
        e3-nand-backup.{0..5}

which substitutes every 512 bytes followed by 16 bytes with just the
512.

-- 
Cheers, Ralph.



More information about the e3-hacking mailing list