From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Hitt Newsgroups: gmane.emacs.help Subject: Re: Fix the destroyed disk image partition table in a raw image file using Emacs. Date: Sun, 11 Apr 2021 10:26:26 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23961"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 11 19:27:57 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVdsK-000633-2f for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 19:27:56 +0200 Original-Received: from localhost ([::1]:36706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVdsJ-0001oC-41 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 13:27:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVdr9-0001nt-Ry for help-gnu-emacs@gnu.org; Sun, 11 Apr 2021 13:26:43 -0400 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:43535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVdr5-00027R-9l for help-gnu-emacs@gnu.org; Sun, 11 Apr 2021 13:26:43 -0400 Original-Received: by mail-wr1-x42d.google.com with SMTP id x7so10512098wrw.10 for ; Sun, 11 Apr 2021 10:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=h2cQT61j3nsTWZ8IcRRYZ6Dbgh6v99VGHe5J2u3+2fo=; b=cMEfdK8XrorMNSDQkXCHI/hM5TTV7AcfiXrKkLxl7/2U/Ye9OofSIgIrIBpHR2NOA1 MyMpNMMuLQHoWCr6pSQLB4Xc+UeP4AmYdrkdFAMqQ/yPkMF1hvFJfRlsoKerOMsFdjNe wgj1UtQw1KjI0vpKdRE5ixf+mxad8PB3Ab0DWJ4Ud3FsxmOJP+9r2L7/oqO4T/GKLcHf 0xTPSk7mKtAkA1H9iBMsSIW9p9YwnrcFB9q/kuwFbu+xSrjY/xk2Z08dUA09vPkS2Bta 0LYLCk4KOlzlpbVXXQ8/oQw9CqbLBz8OaPrud+SPzBXvLfHW8OM4wXqs8Ht/PjoMaPrL SJ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=h2cQT61j3nsTWZ8IcRRYZ6Dbgh6v99VGHe5J2u3+2fo=; b=ExaUsgMhb0Vv6zdfPoGoD6r8emGSVfs3r9pxZzGC1IA0zxfT7ksBWa6CJy1zqHJ+gV irNKsDQa3WEUTah25uHjxb9RpmA8WJQUTA4/gEDRXjrB1yUkxF/2xuxRthCbZoX4ManV I58y5LTWNDgY6gSx+tCyl48gAtllXrOI/jzKC1xFp8Fjgvxq9DZcHriDsBnD4bHdLIAu 7nCwmMkVGqVhcmtNUBSMHPvGeOiJ6n8JBsXYARZeKCCwh7lI6VcfYWiVhZ0D1KHNojCf LcUpDbDgn1/bJrZLYf7McN99qsF/tETvAYs2P+WjVJUHjwa95NtYGcnTPhGgFGsgtywX bJbQ== X-Gm-Message-State: AOAM532XY3rUXmdnJN2SjBfXwqJsun861fjdwdZ96IfONdrkOSQW2L/I mJXab/J02hwrL5P4iYdYY8P3MSbPDJ1tR6InTlU= X-Google-Smtp-Source: ABdhPJz+KGU5lhxQm7Dw8D/os7xhLK48YOyhofJ4dyATTvS9Ssok/DM8OnAQLlXal6zFyv9w4+Nz8nIcAAEbYC/QxZE= X-Received: by 2002:a5d:5642:: with SMTP id j2mr27398131wrw.172.1618161997221; Sun, 11 Apr 2021 10:26:37 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=dan.hitt@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128951 Archived-At: On Sun, Apr 11, 2021 at 6:41 AM Jean Louis wrote: > * Hongyi Zhao [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'. Of course, i don't know if my system is secretly using some other program which does the same thing as hexl. dan > > Take action in Free Software Foundation campaigns: > https://www.fsf.org/campaigns > > Sign an open letter in support of Richard M. Stallman > https://rms-support-letter.github.io/ > > >