From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.236.50.47 with SMTP id y35csp208058yhb; Mon, 7 May 2012 18:21:11 -0700 (PDT) Return-Path: <9front+bncCIfk-sO2AhCH6qH9BBoEKq9Wcg@googlegroups.com> Received-SPF: pass (google.com: domain of 9front+bncCIfk-sO2AhCH6qH9BBoEKq9Wcg@googlegroups.com designates 10.224.32.15 as permitted sender) client-ip=10.224.32.15; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 9front+bncCIfk-sO2AhCH6qH9BBoEKq9Wcg@googlegroups.com designates 10.224.32.15 as permitted sender) smtp.mail=9front+bncCIfk-sO2AhCH6qH9BBoEKq9Wcg@googlegroups.com; dkim=pass header.i=9front+bncCIfk-sO2AhCH6qH9BBoEKq9Wcg@googlegroups.com Received: from mr.google.com ([10.224.32.15]) by 10.224.32.15 with SMTP id a15mr10943647qad.3.1336440071329 (num_hops = 1); Mon, 07 May 2012 18:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:message-id:date:from:to:subject :in-reply-to:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=moU53n99hbGOHYYfRIAG7GrmoDMV9NshH1fp6Poa1fM=; b=IuRyh6wt67nyyAqF3fwVRxDJe5JlimMP6GfrIpKH+FxIFuqwhBZ8tBY0+ND/EQYv9C 3wr2vUQrW0S6PGk1PGyBqAK4srJu2z5prM+MSnQRQzRfkMljPU9HQU4PFkWeUbOa45IJ Xh3S9jY7Oay8SgSiRF3Bn2C5NHniDAvbpsVIA= Received: by 10.224.32.15 with SMTP id a15mr1202141qad.3.1336440071294; Mon, 07 May 2012 18:21:11 -0700 (PDT) X-BeenThere: 9front@googlegroups.com Received: by 10.224.182.133 with SMTP id cc5ls5185571qab.6.gmail; Mon, 07 May 2012 18:21:10 -0700 (PDT) Received: by 10.224.177.202 with SMTP id bj10mr267343qab.7.1336440070773; Mon, 07 May 2012 18:21:10 -0700 (PDT) Received: by 10.224.177.202 with SMTP id bj10mr267342qab.7.1336440070757; Mon, 07 May 2012 18:21:10 -0700 (PDT) Received: from sp.nv ([68.179.132.47]) by gmr-mx.google.com with ESMTP id ez28si7838331qcb.1.2012.05.07.18.21.10; Mon, 07 May 2012 18:21:10 -0700 (PDT) Received-SPF: neutral (google.com: 68.179.132.47 is neither permitted nor denied by best guess record for domain of sl@9front.org) client-ip=68.179.132.47; Message-ID: Date: Tue, 8 May 2012 01:21:09 +0000 From: sl@9front.org To: 9front@googlegroups.com Subject: Re: mkusb In-Reply-To: <9b6dbc193c25728cd659e8da0dacc8a5@rei2.9hal> MIME-Version: 1.0 X-Original-Sender: sl@9front.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 68.179.132.47 is neither permitted nor denied by best guess record for domain of sl@9front.org) smtp.mail=sl@9front.org Reply-To: 9front@googlegroups.com Precedence: list Mailing-list: list 9front@googlegroups.com; contact 9front+owners@googlegroups.com List-ID: <9front.googlegroups.com> X-Google-Group-Id: 831096995978 List-Post: , List-Help: , List-Archive: Sender: 9front@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit > 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