From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17282 invoked from network); 12 Jan 2022 10:08:16 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 12 Jan 2022 10:08:16 -0000 Received: from mout.gmx.net ([212.227.17.22]) by 4ess; Wed Jan 12 04:33:21 -0500 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641979993; bh=2O5PV45uFaT5z1m1DvPI5aIS+pw8AaQHasbbJUrcQY0=; h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References; b=f2D1nKESGwz3KYpnanRHTLCoxm3dPojRjOtZ7Fki1S5AP6TfQOxMNaWbNlfb97Kbf RAKD4al6rf8ybVAv8z7r/8EJZYUBECZsJ9lYmuhUx4ERx8Tppii2KiLuWaVpeMDHBf PmkB5lsbOBQeNt7PjTyV1s/EuFesK2KbPc8kkTV4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([141.5.16.215]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MoO6C-1maS5u0AR6-00orjr for <9front@9front.org>; Wed, 12 Jan 2022 10:28:06 +0100 Date: Wed, 12 Jan 2022 10:29:48 +0100 From: Eckard Brauer To: 9front@9front.org Message-ID: <20220112102948.4a6d7d53@gmx.de> In-Reply-To: <43f2820c-c15a-4e6f-a521-82d24d21c4a9@sirjofri.de> References: <133F8ADF5C4C2F0F024B47DC463C7216@gmail.com> <43f2820c-c15a-4e6f-a521-82d24d21c4a9@sirjofri.de> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAAXNSR0IArs4c6QAAAllJREFUWMPtmN11o0AMRi/ZrWCmBakGapgakhbWxZAaUoNqwC1INaiGfcBJgNixN46zfmAeOBxbB935Rn/QyeDc03rgztYGtAFtQBvQBrQB/RiQwg70foAagN+LQgrIAUd/EkiP+Zt+kfDg+5l+f6YB7id8CcSSZG53zUF2bxOjwtBAThjGEU/ha4PV8tMP87MKCW72LLhOeAIIqjNCEdG1UB+1i/MyBEAY4Fgs4Lr5TK14I8RM3eceYxLQQUGm49GJEFhBv170Qq6duc2Mu49DfsPVrLl9Gj1rmWK2LWttGXyuK2lfVQlkFaZHgtrQaCAqNugJCCJmRyZvNt52phLocpfNZingFwb1kcT+INWrGDEBeCx1aH+e285vlPYOjkZTRLGhzf/bibTdwcrCB9cIEDxo19ahX+Xw6MXK2c1YtfR9FqXLLjOBkZJj5CgRSdZekWZVS2YtZKVS8/o69Hm99ikHPSQMdwUZNBAsjGYq76X0UDKFdSR9N9AhAd8yRHEITjn2YzX8ihg6FekThbV2Ll++2N/+odvLcvc3+kbxcKEw721fkVt+LzlzZEODwULFFnBxO6Djaf9ekJ+Hmi+o7lqvmkqQ1BJUkqvS+4tAVTMildACtWdv1V8gNUfJqJUe8luxzgA9gZJmo8dYyPRIy+yoPZnZ56hp1H0PCUm9OVCSWjstZZ9dkhEelW7qwRYlsnYJlBxrRla5nuksUE0PyOwfx5d99E/RP46BZXS17LOQJTsyoSSpUa8dry+o1FO313a8FvtyetV2e6DtVXoD2oA2oA3ov66/BWQZa7j3R/gAAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:k8+ENpj0vpiqsQTAmPuBGoiEaR2aa9np6/XnH+nkw93VBCIydHs uyazVa361VtCyvTcVQ0JosFH3yH2D/+nvdE65f9gOIeA5vJ56olk1eBD7XVqSgSH3MM6VU7 xtCP0PRNVjXiF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0o76ZHrr9zqhcSvK7831I 8dhul0gp7i9xHEIwyqlvhB0FTc6fpz3kY3DrkmudjJEtHVNEmCM8OHTg9jmZIcI4hQlfnKdJE +xzLwQ0u9GsQsdbgA5Zm72rfSLnCUSuR3dr2eZSOSA+Vzlc8IUwQeAQMTjJQ99ZTjTis6kTY1 cdtk8z4ooRNicQ= List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: lossless compliant self-signing manager Subject: Re: [9front] Reply-To: 9front@9front.org Precedence: bulk > [...] > > Since you dd'd the iso to the usb drive before you can also just dd > that amount of data back to an image file. I don't exactly know the > parameter now, but the man page lists it. > > [...] As long as you're on P9, that should work: dd -if /dev/sdXXX/disk -of outfile.iso -bs 4k -count 8192k as long as the product of bs and count args are exactly the 32 GB. With Unix/linux/bsd it should be the same, except that args are as in MVS (if=3D/dev/sdY of=3Doutfile.iso etc.). Problem could be that the initial dd when preparing the usb went to the (1st?) partition of the USB instead of the raw (whole) device. Maybe it's possible to read&compare the first few bytes, e.g. dd -if /dev/sdXXX -bs 1b -count 1 | xd -1x the same for image.iso > The sdUxxx directory contails lots of files for lowlevel interaction. > E.g it contains a ctl and data, and a file for each partition you can > mount. > > In this case I'm pretty sure you can call the command on the data > file (which is the disk ignoring all partitions). > > [...] > > 9front has its own bootloader, at least for x86/amd64 standard > machines. However, some people got 9front booting with other linux > bootloaders. correct, but IMO that works like: BIOS -> "other bootloader" -> 9pc/9pc64 -> plan9 kernel where the 9pc/9pc64 plan9 bootloader still needs to be in a given position or to be contiguous on disk - refer "bootloader magic" or the like somewhere in the fqa. But didn't try that with qemu at all, IIRC that was the init. problem. > [...] > > Have you tried dding the iso to a usb drive and edit the file in the > fat directory? (And dding back) > > It might even be possible that you can mount the iso somehow and > change the file there. I'm not sure about it and I don't know how it > handles the mbr then... For little edits NOT violating block boundaries, even in-binary-edits are fine, did that a few time using sed, but you have to double (triple,...) check the boundaries before. Or you could even split the image file apart (with dd) into prefix + file contents + suffix, edit the 2nd one, compare size and reassemble, if it's contiguous - but all that's bit dangerous.