Date: Mon, 15 Jun 2009 21:29:37 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Booting from FAT(32) Message-ID: <200906152129.44454.doconnor@gsoft.com.au> In-Reply-To: <200906141410.14771.doconnor@gsoft.com.au> References: <200906140015.44560.doconnor@gsoft.com.au> <200906141034.01890.doconnor@gsoft.com.au> <200906141410.14771.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <postmaster@gsoft.com.au>. 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" <doconnor@gsoft.com.au> To: Adrian Chadd <adrian@freebsd.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906152129.44454.doconnor>