On Tue, Mar 30, 2010 at 8:27 AM, Thomas C Gilliard <<a href="mailto:satellit@bendbroadband.com" target="_blank">satellit@bendbroadband.com</a>> wrote:<br>> Frederick:<br>><br>> I have been trying to make this work...<br>
> I created with liveusb-creator a 4GB USB with persistence 2400 of iso<br>> soas--------328; using a usb 500GB HD install of f13 Beta1 Gnome + sugar<br>> rebooted with the new USB<br>> in sugar terminal:<br>
> su -<br>
> yum install wget gedit<br>> wget http://(path to soas nightly composes/soas/......328<br>> (loaded in /home/liveuser/)<br>> opened with gedit "<a href="mailto:soas@lists.sugarlabs.org" target="_blank">soas@lists.sugarlabs.org</a>" from a 2nd USB in sugar frame<br>
> saved it in /home/liveuser/<br>> chmod 077 modified_livecd-iso-to-disk script<br>> If I do a "ls" I see both in /home/liveuser<br>> then I get lost on how to use your script<br>><br>> I tried in root:<br>
> /home/liveuser/modified_livecd-iso-to-disk --noverify --delete-home<br>> --extra-kernel-args selinux=0 --copy-overlay /dev/live /dev/sde1<br>><br>> new target usb is /dev/sde1 formatted ext3 with boot flag<br>
> I got this error msg<br>><br>> mount:<br>> wrong fs type, bad option, bad superblock on /dev/loo5,<br>> missing codepage, or helper program, or other error<br>><br>> Cleaning up to exit...<br><br>
I don't know about that error. To avoid some filesystem-media-related problems, I have kept the factory formatting on my USB devices as recommended here, <a href="http://wiki.laptop.org/go/How_to_Damage_a_FLASH_Storage_Device" target="_blank">http://wiki.laptop.org/go/How_to_Damage_a_FLASH_Storage_Device</a>.<div>
<br></div><div>I have a 16-GB SanDisk Cruzer and 16-GB Toshiba USB drives. I once manually reformatted the SanDisk to remove the U3 partition, but after reading the article, I got the SanDisk utility (<a href="http://kb.sandisk.com/app/answers/detail/a_id/240/kw/usb%20flash%20drive%20u3/r_id/101834" target="_blank">http://kb.sandisk.com/app/answers/detail/a_id/240/kw/usb%20flash%20drive%20u3/r_id/101834</a>) to restore the factory format. For the record, the SanDisk device is formatted as W95 FAT32 (0x0b), and the Toshiba - W95 FAT32 (LBA) (0x0c) according to my disc utility.<br>
<br></div>
<div>><br>> Do I have to use your script to create the USB? vs using graphical<br>> liveusb-creator to make this work?<br><br>No, the script works from either installation method. I sometimes test with the Windows Live USB Creator.<br>
<br>New work:<br><br>I've added some user input checking and played with the /home/liveuser/.sugar/default/owner.key and .key.pub files (which don't seem to be installed by the Windows Live USB Creator).<br><br>These new lines before and after the copy of the overlay file,<br>
+ chown root:root /home/liveuser/.sugar/default/owner.key /home/liveuser/.sugar/default/owner.key.pub<br>+ mv /home/liveuser/.sugar/default/owner.key $USBMNT/$LIVEOS/owner.key<br>+ mv /home/liveuser/.sugar/default/owner.key.pub $USBMNT/$LIVEOS/owner.key.pub<br>
+ cp $CDMNT/LiveOS/$OVERLAYFILE $USBMNT/$LIVEOS/$OVERLAYFILE || exitclean<br>+ mv $USBMNT/$LIVEOS/owner.key /home/liveuser/.sugar/default/owner.key<br>+ mv $USBMNT/$LIVEOS/owner.key.pub /home/liveuser/.sugar/default/owner.key.pub<br>
+ chown liveuser:liveuser /home/liveuser/.sugar/default/owner.key /home/liveuser/.sugar/default/owner.key.pub<br>+ chmod 600 /home/liveuser/.sugar/default/owner.key<br>+ chmod 644 /home/liveuser/.sugar/default/owner.key.pub<br>
<br>had the result that the newly booted cloned image presented with a new Sugar user screen. Once the Home view appeared, the old Activity icon colors and Journal were present. Be careful though, because a saved password cookie in Browse for my Gmail was transferred to the new image.<br>
<br>The new, Sugar-specific script and diff are attached.<br><br>Thanks for testing!<br><br> --Fred<br><br>
</div>