I have to manually edit a FAT 16 partition. After trying few hex editors, I decided to try Emacs Hexl.

sudo emacs -> M-x hexl-find-file -> /dev/sdb

The commands open device file but its empty, although others hex editors (including 'sudo cat /dev/sdb') show its content.

Why so?

Thank you.


IMHO, There is no way to read/write device file in Emacs.

See also http://www.emacswiki.org/emacs/EmacsLispLimitations

  • 1
    Any hex editor can, so it looks like to be the Emacs's fault. – hellodanylo Dec 9 '11 at 13:32

Trying to open the entire drive at once would be far too big. Use dd to transfer parts of the disk to/from a file and edit the file in hexl mode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.