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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18246 invoked from network); 12 Jan 2022 14:56:20 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 12 Jan 2022 14:56:20 -0000 Received: from mail-oi1-f174.google.com ([209.85.167.174]) by 4ess; Wed Jan 12 09:47:28 -0500 2022 Received: by mail-oi1-f174.google.com with SMTP id s127so3654157oig.2 for <9front@9front.org>; Wed, 12 Jan 2022 06:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:to:subject:date:in-reply-to:mime-version; bh=HYSg7v5UnzWVAv6Khs4cFCBh6vg98e1YU/3+toyu710=; b=Iknmmv8T4tL+DON/JZhCT6oPznIlHRURSxzGvBxIl8EpzAohM/4W8nqVGu2rnXzX2F oRt9RrJSpNdp2xAYVg1+ApJR6X+3RGVnpusq82acRbGvxmX57SjL65vWMt0430UWmOkT SL4lJQ+xoVtkYz7baBPSmPNGOCOt4wpnWjik7XL9TlQEnYVEKvVz5KsL6EwfzHtQ5MzG TY1zw7GEiKE3nSB2HS1fUjsMlNhcJIW2afklHpcGhRCFGRi3JHUxcxoDUGbUlrkSteL/ EoFT4jbJAttND4C3FbuEwTMktP+UiRR/ZmhpWRzpYo79fWxLs+pu9toDqjWRPQMdSHyh Qcbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:to:subject:date:in-reply-to :mime-version; bh=HYSg7v5UnzWVAv6Khs4cFCBh6vg98e1YU/3+toyu710=; b=BRgBqw+mTTg9dAQw9GNiimwMqntkXeVieZoNNS+JAKy+uviMbaDvO3M5UkHxhRdql/ SMH2OwFZcI+h1hMhaxTBwSBD7Ak9IPJAwAZx27c33md/tva+JLHjIJZkYCGcuRn0ylzn DkqR8pdkkfoWRktXtBTbjEvJdBrXm3HI8wRCIio9QLKpbWjrKySiiYBy5hgh0/u9p0O/ w2+ISOncu+0kXHvGpq6WXeWwV9oV/t/5UgIb+PEPQNmMDVoL7o9Fj2z6dk/T3VLXZkYr 3PINuBY3UJkBSkhgWAVbwQNAfUYsO/8kotseFI968PJe2sbpYKCIusZnfIwtghvFa7fJ cFjg== X-Gm-Message-State: AOAM531xs0NFzZWizfSB6w+lDCf2gKPVSNJcs6kifUQTXsewyzDSQzl8 NU51zg2zjKtCbq5KahAjowDb1goYEtnFYw== X-Google-Smtp-Source: ABdhPJztN4oBQurA7n8m2HbNnlMrpnWPsrV3cGi4yqigscHkIAe+RXtJshN2MkIcE2FLJBwwyxx7Tg== X-Received: by 2002:a54:4499:: with SMTP id v25mr901707oiv.124.1641998418937; Wed, 12 Jan 2022 06:40:18 -0800 (PST) Return-Path: Received: from cirno.thinktank (107-200-43-169.lightspeed.sntcca.sbcglobal.net. [107.200.43.169]) by smtp.gmail.com with ESMTPSA id t26sm2280989oic.51.2022.01.12.06.40.17 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Jan 2022 06:40:18 -0800 (PST) From: thinktankworkspaces@gmail.com X-Google-Original-From: glenda@gmail.com Message-ID: <26405234439FE5A091F8FF57415B2574@gmail.com> To: 9front@9front.org Date: Wed, 12 Jan 2022 06:40:15 -0800 In-Reply-To: <20220112102948.4a6d7d53@gmx.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-mqhnjkiaizyxrcmrognpqbadyp" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared lossless app interface Subject: Re: [9front] Reply-To: 9front@9front.org Precedence: bulk This is a multi-part message in MIME format. --upas-mqhnjkiaizyxrcmrognpqbadyp Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Simply brilliant. I need to save this email somewhere and remember this logic. But honestly I'm tired of qemu. I really need to read up on how the booatloader works and how to bootstrap an AWS ec2 instance. I never used 'xd' command before so thats interesting. There seems to be some sort of syntatical magic here in plan9 thats missing in other OS's --upas-mqhnjkiaizyxrcmrognpqbadyp Content-Type: message/rfc822 Content-Disposition: inline Delivered-To: thinktankworkspaces@gmail.com Received: by 2002:a05:7010:30c7:b0:1f6:d3b9:3c1d with SMTP id q7csp350577mdb; Wed, 12 Jan 2022 02:08:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSHrQFGzNohvlKMGhSCJqodiogp6gSvF3WRS74ZURft7liu6OXX6BVKl71L3zujsnykHW8 X-Received: by 2002:a05:620a:29ce:: with SMTP id s14mr5546835qkp.27.1641982093831; Wed, 12 Jan 2022 02:08:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641982093; cv=none; d=google.com; s=arc-20160816; b=kDtHe3/FA/ZUwY3NkGDHqeRGOSUrcSq6yXZ5BkL1lu58BxxlLk9S6Pb0T4y1mFUmc3 7WlBLVCHV/6te340y97Ik+YpCu3f8ujijIk7BKmJJ6VBZDCPEGgoC0ar583LCuI3YZZV AoBiXsEECWpAHiv3EolY9Eb5WHiXANhxMxJVWi8B4AY5ePOjjrAvddAmhJaYy+oZqTFA HhjNRxZM25rottSPmXX7iKiB1cMO5LSk63aUekrsXqQrx2iefm2ARiIa+xipwC9rfIOj fe5r+/XI0Mu5Rn+ePobiPAdQor8bde+3Sn5FCkCs9ULhRgPQCGX3bzXKs7s4UVG8zVGM 3JRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=precedence:reply-to:subject:list-help:list-id :content-transfer-encoding:mime-version:face:references:in-reply-to :message-id:to:from:date:dkim-signature; bh=94Ftpio4DUoqanKUILf/O4OFicNjUgKer2lw/a6THTg=; b=n+jwNc1UpoAyBah2scZyQN+poKvhCHcIq1Tw25UoLOJhhKvH82orUaQJ8/1R0TtTk2 F6hHd2tS6/Nw8Ws3ylbjpmKWCFZ8l5Wo0fzODyCPqi+TbUCgYf56WCOLpyVTNvn7Vwjl h3WU6CHVF93bxD7wUCoHX6HsV3E8pNHOHSwFFDtjJc4654mQvzrwJKaWwD47yQ1gtQAW EdKEDWmEKOipPUN0betCweMiEffsrNM1gw5B4MkWqDY3/5SzZK3mcWBb661B6CHIE3Wo nDMgpL3Ztj9KXJK8ePwaudVKhw87hezKYUuXu5xyi+HrvSuZe2+eifAjqGMu80PQs45L CsXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=f2D1nKES; spf=pass (google.com: domain of 9front-bounces@4ess.inri.net designates 216.126.196.42 as permitted sender) smtp.mailfrom=9front-bounces@4ess.inri.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: <9front-bounces@4ess.inri.net> Received: from 4ess.inri.net (4ess.inri.net. [216.126.196.42]) by mx.google.com with ESMTP id jx9si5769192qvb.85.2022.01.12.02.08.08; Wed, 12 Jan 2022 02:08:13 -0800 (PST) Received-SPF: pass (google.com: domain of 9front-bounces@4ess.inri.net designates 216.126.196.42 as permitted sender) client-ip=216.126.196.42; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=f2D1nKES; spf=pass (google.com: domain of 9front-bounces@4ess.inri.net designates 216.126.196.42 as permitted sender) smtp.mailfrom=9front-bounces@4ess.inri.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de 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 xtCP0PRNVjXiF0+p1z3wGA0SukfJtGC0HhaOyfSaS4SXK8yb71Js31vBIwYmn499IubYLOb 0+BEINPwVT9KV711dGkFw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:K1o6kAMdlmQ=:WE/ZMZ6I/x0hMFI+PxjZB+ vBN56nb2o4RCd6nfRhzkoACdG0AfPXPGFrK4G5iEUM12SUfUohgg91aWJDKlU2W6R6P6ozhkM 59JhC0XBirGf3MYLMv9gOZCwkUWtybWT5XshPgXMcR/tYa0wdecDpSyJWjBZsgy2WhD15zcPM WXmrHITnnZBQpmKJ1vLaWzbrqB83Fttv9tzfWf4nHRtPjDX8fPpXIXXIl1gqJuJ3b5vHLT5YB C8HNiQCAPx2YSjQC1gWqpj0f5FDpm3krQ3lin0wvOR1V/oCI8ufzqkbsiL8EE2AhrMSbR36q6 hjT0zBBEN0qC8V6RYhzaLqxdISpDz8ThjSNJ0IIW22TDhg8zip4W1pjDTXimuOKkASp2wu5t/ Z6gF2JAXhiY1DIjaRysEJKy7mQaBoWMQ0tITRhWWSbv+YenK9gCL/rwkOEdpO1qwpCrQibkvc 6YA5gQqVGzcxgbxB/+DDHEZHnOMVrDKM0jP8lVxaac82wz03ajubPHaljSNaIEucSNjVuRxk2 eCRBETPSPDIm6T0os/IQFVdgrRxmNpk0FZGkKI/600monLuhUJiXOU0/ORPMG2aw81zwgZmRS b7TqyKQP5dDvnaOcRWukC65opSDoNHadQTIrsQ3vIAwHim9bS81xHKKKvjJ2EcsVrubOB5x9g 7gPn3/2e2kSvArANiL+dRHr6x3TAdkeaqAsd1X3xk8QIejXD57NBi+J+c77d2CB0P5TKBEcyf 0Ijq++Wc3r5Vyw40Q25mQOPdIvw6aVwiikbQfyF8Ym8pCsSma6SFVUuXxi2iTCyAjhyLZpZo0 FSHGks3ODN8t0DPI/A8et0gwRrvS1w9h0AsbCLrNunIRwNhtAVa7sVZXwXwleT3wE9WySVsoh +lWzPPMfm7PGwqjsvbMyv251bR25Pl7Uai8c50giPEm7ctgwC/YJ0o76ZHrr9zqhcSvK7831I 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. --upas-mqhnjkiaizyxrcmrognpqbadyp--