From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 15 11:59:50 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81D411065673; Mon, 15 Jun 2009 11:59:50 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id E0EC58FC1A; Mon, 15 Jun 2009 11:59:49 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-137-119.lns11.adl6.internode.on.net [121.45.137.119]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id n5FBxkei037037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 15 Jun 2009 21:29:47 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Adrian Chadd Date: Mon, 15 Jun 2009 21:29:37 +0930 User-Agent: KMail/1.9.10 References: <200906140015.44560.doconnor@gsoft.com.au> <200906141034.01890.doconnor@gsoft.com.au> <200906141410.14771.doconnor@gsoft.com.au> In-Reply-To: <200906141410.14771.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1245067188-30762-300" Content-Transfer-Encoding: binary Message-Id: <200906152129.44454.doconnor@gsoft.com.au> X-Spam-Score: -1.113 () AWL,BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-hackers@freebsd.org Subject: Re: Booting from FAT(32) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2009 11:59:50 -0000 This is a multi-part message in MIME format... ------------=_1245067188-30762-300 Content-Type: text/plain; name="warning1.txt" Content-Disposition: inline; filename="warning1.txt" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) WARNING: This e-mail has been altered by MIMEDefang. Following this paragraph are indications of the actual changes made. For more information about your site's MIMEDefang policy, contact Postmaster . For more information about MIMEDefang, see: http://www.roaringpenguin.com/mimedefang/enduser.php3 An attachment named makeusb.sh was removed from this document as it constituted a security hazard. If you require this document, please contact the sender and arrange an alternate means of receiving it. ------------=_1245067188-30762-300 From: "Daniel O'Connor" To: Adrian Chadd Subject: Re: Booting from FAT(32) Date: Mon, 15 Jun 2009 21:29:37 +0930 User-Agent: KMail/1.9.10 Cc: freebsd-hackers@freebsd.org References: <200906140015.44560.doconnor@gsoft.com.au> <200906141034.01890.doconnor@gsoft.com.au> <200906141410.14771.doconnor@gsoft.com.au> In-Reply-To: <200906141410.14771.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2190262.vgDCkNGPFP"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200906152129.44454.doconnor@gsoft.com.au> --nextPart2190262.vgDCkNGPFP Content-Type: multipart/mixed; boundary="Boundary-01=_qejNKJ43mVHz6bT" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_qejNKJ43mVHz6bT Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 14 Jun 2009, Daniel O'Connor wrote: > On Sun, 14 Jun 2009, Daniel O'Connor wrote: > > > I've been meaning to trial it out actually. It sure would be > > > interesting to boot a kernel/mfs off of a DOS bootable FAT USB. > > > > I think you can do it if you makefs /boot and feed it to syslinux > > using memdisk (I plan on trying this today). > > I used Luigi's iso2flash.sh script (the guts thereof) and it worked > fine, ie.. mkdir /tmp/boot > cp -r /boot /tmp/boot > [ fixup /tmp/boot/boot how you like ] > makefs -t ffs -o bsize=3D4096 -o fsize=3D512 -f 50 /tmp/boot.img > /tmp/boot bsdlabel -Bw -f /tmp/boot.img auto > bsdlabel -f /tmp/boot.img | sed -e '/ c:/{p;s/c:/a:/;}' | bsdlabel > -R -f /tmp/boot.img /dev/stdin gzip /tmp/boot.img If anyone is interested the attached script will format a USB flash=20 drive, and create the necessary magic to boot off. I think this would be a useful addition to the 'make release' stuff -=20 you can run the script with a install CD directory made by make release=20 and it will give you a USB stick you can install from (you also need to=20 copy the dist files :) I think it would be good to include the image on prebuilt ISOs so you=20 can then get users to use something like unetbootin in Windows to copy=20 the ISO bits onto a USB key. It requires an extra 15Mb of space, not=20 sure if that's a big deal on a CD (should definitely not be on a DVD) The script needs makefs which is in head but not 7.x (easy to build=20 there though). It also needs the sysutils/syslinux port installed. --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Boundary-01=_qejNKJ43mVHz6bT-- --nextPart2190262.vgDCkNGPFP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iD8DBQBKNjew5ZPcIHs/zowRAl4LAJ9HtepVYG69fSQRI6cjbTbUg3fmQACgpEUk S6zwyqwa6c4SURD1P4hOWLU= =QMnv -----END PGP SIGNATURE----- --nextPart2190262.vgDCkNGPFP-- ------------=_1245067188-30762-300--