<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Fred:<br>
<br>
I just tested new script:<br>
<br>
Several possible problems with error handling with the new script:<br>
<br>
1-) live USB was 4GB tried to write to 2GB USB<br>
error :<br>
too small to write, shutdown <br>
Inserted new 4GB fat 32 with no boot flag <br>
cd /mnt/live/SugarClone<br>
"No such file or directory"<br>
Reboot USB and Directory is there.....<br>
<br>
2-) live USB was 4GB tried to write to fat 32 4 GB USB (no boot flag)<br>
error:<br>
no boot flag*<br>
cd /mnt/live<br>
"No such file or directory"<br>
Reboot USB and Directory is there.....<br>
<br>
3-) live USB was 4GB write to fat 32 4 GB USB with boot flag set*<br>
<br>
SugarClone works fine<br>
<br>
>It looks like your error shutdown of script leaves the /mnt/live
directory in a changed state....<br>
"Cleaning up to exit" not totally working<<br>
<br>
* your script error instructions for setting boot flag with parted:<br>
'......................................<br>
# /sbin/parted /dev/sdc<br>
(parted) toggle N boot<br>
(error: "expects partition number")?<br>
.......................................<br>
I used Gparted on USB externally then retried it and it worked fine.<br>
<br>
Note: script fails to make bootable USB if it is a SanDisk Cruzer 4GB
that has a hidden U3 partition. <br>
(only removable in windows if done prior to using it in linux) (I guess
it writes grub to wrong place)<br>
Gparted does not see this partition at all<br>
*These are in Cheap multi-packs at Cosco and may not even be marked
that they contain the U3 partition.<br>
<br>
Script worked great on a normal USB<br>
<br>
SugarClone is a great Idea!<br>
<br>
Tom Gilliard<br>
satellit<br>
<br>
Frederick Grose wrote:
<blockquote
cite="mid:t2xf3383f811005031756le94548bj604c91e16d3e59e3@mail.gmail.com"
type="cite">
<pre wrap="">A maintenance update is now available at
<a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/fgrose/SugarClone">http://people.sugarlabs.org/fgrose/SugarClone</a>.
</pre>
<pre wrap=""><!---->
New:
</pre>
<pre wrap=""><!---->1. Records the remix details for the Sugar Clone in the new build file
that displays in the 'My Settings' 'About my computer'.
For example,
Build: Remixed soas-i386-20100501.07.iso in a Sugar Clone prepared
by SoaS-Mirabelle-May on 03 May 2010
Sugar on a Stick 3 (Mirabelle)
Fedora release 13 (Goddard)
Sugar: 0.88.0
2. Bug fixes
</pre>
<pre wrap=""><!----> b. Improved support for cloning from one attached device to
</pre>
<blockquote type="cite">
<pre wrap=""> another.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<pre wrap=""><!---->
Test Usage:
</pre>
<pre wrap=""><!---->1. Before booting the SoaS device that will be the source of the new
</pre>
<blockquote type="cite">
<pre wrap=""> SugarClone, copy the SugarClone script to the root '/' folder at
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap=""> the base of the filesystem for the device, or, to /mnt/live (from
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap=""> the perspective of a running LiveOS image).
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<pre wrap=""><!---->2. Boot the USB stick into SoaS and insert a second USB device into
</pre>
<blockquote type="cite">
<pre wrap=""> the computer running that SoaS image.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<pre wrap=""><!---->3. In the Terminal Activity of that running SoaS image, enter the
</pre>
<blockquote type="cite">
<pre wrap=""> command,
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<pre wrap=""><!----> /mnt/live/SugarClone
</pre>
<pre wrap=""><!---->If there is more than one USB/SD storage device available, a menu of
the devices
will appear to allow you to select the target device.
</pre>
<pre wrap=""><!---->The scripts will copy the currently running image to the target device. When
that device is booted, a new, Sugar Learner sign-in will be triggered. The
previously customized Journal and operating system will be present on the
Sugar Clone image.
</pre>
<pre wrap=""><!---->On a running LiveOS image, the root folder of the USB/SD device is
</pre>
<blockquote type="cite">
<pre wrap="">available at the /mnt/live mount point. The SugarClone script
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">can be obtained (assuming Internet connectivity) as follows:
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<pre wrap=""><!---->
1. In the Terminal Activity, change the working directory:
</pre>
<pre wrap=""><!----> cd /mnt/live
</pre>
<pre wrap=""><!---->2. wget <a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/fgrose/SugarClone">http://people.sugarlabs.org/fgrose/SugarClone</a>
</pre>
<pre wrap=""><!---->3. chmod +x SugarClone
</pre>
<pre wrap=""><!---->at this point, you may simply execute
</pre>
<pre wrap=""><!----> SugarClone
</pre>
<pre wrap=""><!---->
See <a class="moz-txt-link-freetext" href="http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Sugar_Clone">http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/Sugar_Clone</a> for
</pre>
<blockquote type="cite">
<pre wrap="">more information.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<pre wrap=""><!---->
Notes:
</pre>
<pre wrap=""><!---->See <a class="moz-txt-link-freetext" href="http://wiki.sugarlabs.org/go/LiveOS_image">http://wiki.sugarlabs.org/go/LiveOS_image</a> for more information
on optimizing file storage on LiveOS images.
--Fred
</pre>
<pre wrap=""><!---->
</pre>
<pre wrap=""><!---->
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
SoaS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SoaS@lists.sugarlabs.org">SoaS@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/soas">http://lists.sugarlabs.org/listinfo/soas</a>
</pre>
</blockquote>
</body>
</html>