9front - general discussion about 9front
 help / color / mirror / Atom feed
From: thinktankworkspaces@gmail.com
To: 9front@9front.org
Subject: Re: [9front]
Date: Wed, 12 Jan 2022 06:40:15 -0800	[thread overview]
Message-ID: <26405234439FE5A091F8FF57415B2574@gmail.com> (raw)
In-Reply-To: <20220112102948.4a6d7d53@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

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

[-- Attachment #2: Type: message/rfc822, Size: 8663 bytes --]

From: Eckard Brauer <eckard.brauer@gmx.de>
To: 9front@9front.org
Subject: Re: [9front]
Date: Wed, 12 Jan 2022 10:29:48 +0100
Message-ID: <20220112102948.4a6d7d53@gmx.de>

>  [...]
>
> 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=/dev/sdY of=outfile.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.

  parent reply	other threads:[~2022-01-12 14:56 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10  8:44 [9front] thinktankworkspaces
2022-01-10 10:21 ` [9front] sirjofri
2022-01-10 17:25   ` [9front] thinktankworkspaces
2022-01-10 23:33     ` [9front] sirjofri
2022-01-12  1:16       ` [9front] thinktankworkspaces
2022-01-12  8:30         ` [9front] sirjofri
2022-01-12  9:29           ` [9front] Eckard Brauer
2022-01-12 13:09             ` [9front] sirjofri
2022-01-12 13:40               ` [9front] hiro
2022-01-12 14:59                 ` [9front] thinktankworkspaces
2022-01-12 16:56                   ` [9front] hiro
2022-01-14 11:45                   ` [9front] cinap_lenrek
2022-01-12 14:40             ` thinktankworkspaces [this message]
2022-01-12 14:18           ` [9front] Stanley Lieber
2022-01-12 15:04             ` [9front] thinktankworkspaces
2022-01-10 12:10 ` [9front] mkf
  -- strict thread matches above, loose matches on Subject: below --
2022-06-22 12:28 [9front] roy niang
2022-06-22 12:32 ` [9front] stefncb
2021-09-16 22:17 [9front] Drew Fargo
2021-08-24 19:25 [9front] Jonas
2021-06-09 14:33 [9front] adr
2021-03-31 16:32 [9front] cinap_lenrek
2021-04-01 18:33 ` [9front] Romano
2021-04-01 18:54   ` [9front] Romano
2021-04-01 19:03   ` [9front] cinap_lenrek
2021-04-01 23:16     ` [9front] Romano
2021-04-02 14:31       ` [9front] cinap_lenrek
2021-04-02 18:31         ` [9front] cinap_lenrek
2021-04-03  0:41           ` [9front] Romano
2021-04-02 21:24         ` [9front] Romano
2021-04-02 21:54           ` [9front] cinap_lenrek
2021-01-22 16:32 [9front] Марко М. Костић
2021-01-22 23:41 ` [9front] Tanami Muller
2021-01-23  0:29   ` [9front] Stuart Morrow
2021-01-23 13:38 ` [9front] Thaddeus Woskowiak
2021-01-23 14:12   ` [9front] hiro
2018-08-20 19:42 [9front] umbraticus
2018-08-20 12:11 [9front] Alex Musolino
2018-06-06 12:30 Stanislav Paskalev
2018-06-06 15:50 ` [9front] Kurt H Maier
2018-02-17  4:53 [9front] kokamoto
2016-12-28 23:31 sl
2016-12-28 23:33 ` [9front] cinap_lenrek
2015-10-02 11:43 Holger Sebert
2015-10-02 14:32 ` [9front] Kurt H Maier
2015-10-04 21:18   ` [9front] Stanley Lieber

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=26405234439FE5A091F8FF57415B2574@gmail.com \
    --to=thinktankworkspaces@gmail.com \
    --cc=9front@9front.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).