9front - general discussion about 9front
 help / color / mirror / Atom feed
From: sl@9front.org
To: 9front@googlegroups.com
Subject: Re: mkusb
Date: Tue, 8 May 2012 01:21:09 +0000	[thread overview]
Message-ID: <ec24ce58515273a522c6f00aedec7464@sp.inri.net> (raw)
In-Reply-To: <9b6dbc193c25728cd659e8da0dacc8a5@rei2.9hal>

> there should be a generic way of making a harddrive bootable.
> then we could just use this from the installer instead of
> /rc/bin/inst/bootsetup and also use it to make usb drives
> bootable.
>
> something like:
>
> mkbootfat [-b] /dev/sdXX
>
> the -b switch would try to make everything from scratch:
>	- whipe
>	- install mbr
>	- make single dos partition (fdisk)
>	- format the dos partition
>
> normal procedure is like:
>	- look for 9fat and dos partitions, let the user select one if multiple
>      choices are present.
>	- install pbs on dos partition (disk/format -b)
>	- mount and copy 9bootfat+kernel+plan9.ini to dos partition
>	- make dos partition active and optionally install mbr if not already done

This seems by far the best approach. I've repaired my hack of convenience,
but will aim for something general enough to be called by the installer.

-sl

      reply	other threads:[~2012-05-08  1:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07  3:44 mkusb sl
2012-05-07  5:25 ` mkusb Jens Staal
2012-05-07  7:36 ` mkusb cinap_lenrek
2012-05-07 20:04   ` mkusb sl
2012-05-07  8:07 ` mkusb cinap_lenrek
2012-05-08  1:21   ` sl [this message]

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=ec24ce58515273a522c6f00aedec7464@sp.inri.net \
    --to=sl@9front.org \
    --cc=9front@googlegroups.com \
    /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).