all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Hitt <dan.hitt@gmail.com>
To: tomas@tuxteam.de
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>,
	Hongyi Zhao <hongyi.zhao@gmail.com>
Subject: Re: Fix the destroyed disk image partition table in a raw image file using Emacs.
Date: Sun, 11 Apr 2021 12:56:56 -0700	[thread overview]
Message-ID: <CAOphizKedKDYW=OusVAn5GteeeaRS6qWqzaePvS51pwt90e5Zw@mail.gmail.com> (raw)
In-Reply-To: <20210411184546.GG30008@tuxteam.de>

On Sun, Apr 11, 2021 at 11:45 AM <tomas@tuxteam.de> wrote:

> On Sun, Apr 11, 2021 at 10:26:26AM -0700, Dan Hitt wrote:
> > On Sun, Apr 11, 2021 at 6:41 AM Jean Louis <bugs@gnu.support> wrote:
> >
> > > * Hongyi Zhao <hongyi.zhao@gmail.com> [2021-04-11 16:35]:
> > > > It's well known that Emacs is an 8-bit clean editor which makes it
> > > > safe to edit binary files. So, I want to whether I can fix the above
> > > > destroyed disk image file with Emacs for my scenario.
> > >
> > > There is hexl library:
> > >
> > > ;; This package implements a major mode for editing binary files.  It
> uses
> > > ;; a program called hexl, supplied with the GNU Emacs distribution,
> that
> > > ;; can filter a binary into an editable format or from the format back
> into
> > > ;; binary.  For full instructions, invoke `hexl-mode' on an empty
> buffer
> > > and
> > > ;; do M-x `describe-mode'.
> > >
> > > But I guess you need `hexl' program.
> > >
> > > --
> > > Jean
> > >
> >
> > Hi Jean,
> >
> > hexl-mode works for me on my xubuntu 20.04 system, and i do not have a
> > program called 'hexl'.
>
> Look around somewhere (Debian here)
>
>   /usr/lib/emacs/<version>/x86_64-linux-gnu/hexl
>
> Replace <version> by your Emacs version and x86_64-linux-gnu by some
> appropriate architecture string.
>

OK, i guess i do have it after all :)

Thanks for pointing out the path, and the suggestion to use apt-file.

One thing i notice about hexl, is that although it must surely be a gnu
program, based on its path, it does not understand either the --help or the
--version command line options.

Anyhow, i hope the OP can use hexl-mode if he can't find any better, more
specific tools.

dan


> > Of course, i don't know if my system is secretly using some other program
> > which does the same thing as hexl.
>
> It's all in the open ;-)
>
> Hint: apt-file search finds such things, even if you haven't installed
> a package. Package apt-file. Very much recommended.
>
> Cheers
>  - t
>


  reply	other threads:[~2021-04-11 19:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-11 13:34 Fix the destroyed disk image partition table in a raw image file using Emacs Hongyi Zhao
2021-04-11 13:39 ` Jean Louis
2021-04-11 17:26   ` Dan Hitt
2021-04-11 18:45     ` tomas
2021-04-11 19:56       ` Dan Hitt [this message]
2021-04-11 20:58   ` Stefan Monnier
2021-04-11 21:15     ` GNU ELPA problem (was: Re: Fix the destroyed disk image partition table in a raw image file using Emacs.) Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-11 19:18 ` Fix the destroyed disk image partition table in a raw image file using Emacs Gregor Zattler
2021-04-12  6:29   ` Hongyi Zhao
2021-04-15 14:16   ` Hongyi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOphizKedKDYW=OusVAn5GteeeaRS6qWqzaePvS51pwt90e5Zw@mail.gmail.com' \
    --to=dan.hitt@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hongyi.zhao@gmail.com \
    --cc=tomas@tuxteam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.