[Midnightbsd-cvs] www [530] trunk/documentation: flash drive and live cd
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Oct 1 20:27:17 EDT 2013
Revision: 530
http://svnweb.midnightbsd.org/www/?rev=530
Author: laffer1
Date: 2013-10-01 20:27:17 -0400 (Tue, 01 Oct 2013)
Log Message:
-----------
flash drive and live cd
Modified Paths:
--------------
trunk/documentation/index.html
Added Paths:
-----------
trunk/documentation/flashdriveboot.html
Added: trunk/documentation/flashdriveboot.html
===================================================================
--- trunk/documentation/flashdriveboot.html (rev 0)
+++ trunk/documentation/flashdriveboot.html 2013-10-02 00:27:17 UTC (rev 530)
@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>MidnightBSD LiveCD Creation Documentation</title>
+ <link rel="shortcut icon" href="/favicon.ico">
+ <link rel="stylesheet" type="text/css" href="../css/essence.css">
+ </head>
+ <body>
+ <div id="globe">
+ <div id="header"><h1 title="MidnightBSD Home"><a href="../" title="MidnightBSD Home">MidnightBSD: The BSD For Everyone</a></h1></div>
+ <!--#include virtual="/menu.html"-->
+ <div class="clear"></div>
+ <div id="text">
+ <h2><img src="../images/oxygen/doc32.png" alt="" /> LiveCD Creation Documentation</h2>
+ <h3>MidnightBSD on USB Flash Drive</h3>
+
+ <p>One of the most common requests to the MidnightBSD project is a method to create bootable flash media. I've come up with an ad
+hoc process to do just that.</p>
+
+ <h4>Prerequisites</h4>
+ <p>You must be familiar with the <a href="livecd.html">LiveCD</a> creation process, have a USB flash drive of at least 1GB, and patience.</p>
+
+<h4>Implementation</h4>
+
+<h5>Creating the image</h5>
+<pre>
+ * Create a [[livecd|LiveCD]].
+ * Look at the script: [[http://www.midnightbsd.org/cgi-bin/cvsweb.cgi/src/nrelease/install-iso2img.sh | install-iso2img.sh]] T
+his script does not work as is, but it is a rough outline of what needs to be done.
+ * dd if=/dev/zero of=theimgfilename.img count=${SECTS} where SECTS is enough to fit the OS on. This number can be tricky to c
+ome up with. The method in the script is not large enough. See [[http://unstableme.blogspot.com/2009/01/create-file-with-given
+-size-linux-dd.html|Creating a file with a given size with dd]]. For example, dd if=/dev/zero of=imagefile bs=1048576 count=900
+will give you a 900MB file.
+ * Make a temp directory such as /usr/flash and create two subdirectories img and iso. This will be tmpdir
+ * mdconfig -a -t vnode -f ${isoimage} (path to iso image obviously) note the device name isodev
+ * mdconfig -a -t vnode -f ${imgoutfile} (path to file you dd'd above) note the device name as imgdev
+ * bsdlabel -w -B ${imgdev} (should be something like /dev/md6)
+ * newfs -n /dev/${imgdev}a (should be something like /dev/md6a)
+ * mount -t cd9660 /dev/${isodev} ${tmpdir}/iso
+ * mount /dev/${imgdev}a ${tmpdir}/img
+ * cd ${tmpdir}/iso && find . -print -depth | cpio -dump ${tmpdir}/img (i had better luck with gcpio from mports, one could u
+se pax or cpdup too)
+ * Fix the etc/fstab in ${tmpdir}: /dev/da0a / ufs rw 1 1
+ * umount ${tmpdir}/iso
+ * mdconfig -d -u ${isodev}
+ * umount ${tmpdir}/img
+ * mdconfig -d -u ${imgdev}
+</pre>
+<h5>Putting it on flash media</h5>
+
+<p>
+(assumes flash is /dev/da0)
+
+<p>* dd if=${imgoutfile} of=/dev/da0 bs=1m
+
+<h4>Test Environment</h4>
+
+<p>This setup was tested on 0.3-CURRENT (Jan 4, 2009) i386 with an Intel DP965LT motherboard. It worked well.
+
+<p>I also attempted to use it on a Mac Pro (Quad 2.0Ghz), and while holding option showed an EFI boot option, nothing would work with the flash.
+I have not tried GPT yet. Suggestions welcome.
+
+<h4>Possible Uses</h4>
+
+<p>Aside from using the Live CD image, one could copy the disc1 iso (install) and use that instead of CD-ROM media for installation
+. In that case, you would need to pick a few different options in sysinstall. This has not been tested to date; if you have su
+ccess, please update the wiki or send us an email.
+
+<p>It would be nice to modify make release to create a flash boot image for install and live cd like use.
+
+<h4>Related Topics</h4>
+<a href="livecd.html">Creating a Live CD</a>
+
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ var disqus_shortname = 'midnightbsd';
+
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+</script>
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+ </div>
+ <!--#include virtual="/footer.html"-->
+ </body>
+</html>
Property changes on: trunk/documentation/flashdriveboot.html
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Modified: trunk/documentation/index.html
===================================================================
--- trunk/documentation/index.html 2013-10-02 00:18:00 UTC (rev 529)
+++ trunk/documentation/index.html 2013-10-02 00:27:17 UTC (rev 530)
@@ -25,7 +25,9 @@
<li><a href="#s1e">Example Hardware Configurations</a></li>
</ul></li>
<li><a href="dump.html"><strong>Dump & Restore</strong></a></li>
+ <li><a href="flashdriveboot.html"><strong>Flash Drive (live)</strong></a></li>
<li><a href="gpt.html"><strong>GUID Partition Tables (GPT)</strong></a></li>
+ <li><a href="livecd.html"><strong>LiveCD</strong></a></li>
<li><a href="zfs.html"><strong>ZFS</strong></a></li>
<li><a href="mports/index.html"><strong>mports</strong></a></li>
<li><a href="kernel/modules.html"><strong>Kernel Documentation</strong></a></li>
More information about the Midnightbsd-cvs
mailing list