Editing User talk:Tomj

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 15: Line 15:
<li>Start by using cfdisk to format the SD; it's easier than calculaing needed for sfdisk.  I velieve there a version in Extras-devel, but why bother with that when there's one in Easy Debian. In the Easy Debian chroot shell, type <code>cfdisk mmcblk1</code></li>
<li>Start by using cfdisk to format the SD; it's easier than calculaing needed for sfdisk.  I velieve there a version in Extras-devel, but why bother with that when there's one in Easy Debian. In the Easy Debian chroot shell, type <code>cfdisk mmcblk1</code></li>
-
<li>If you can't see the filetable, quit cfdisk, tap the fullscreen icon in the bottom of the xterm window and/or shrink the terminal font size using the volume keys and fire cfdisk up again.</li>
+
<li>If you can't see the filetable, quit cfdisk, shrink the terminal font size using the volume keys and fire it up again</li>
<li>Use cfdisk to set up 2 partitions. I created a small one at the start of the available space to reserve the name mmcblk1p1, then a 5120MB one at the end, then deleted the one at the beginning and recreated it using all the remaining available space. Make sure you remember to write the new patritions, then quit cfdisk and unmount Easy Debian using the icon.</li>
<li>Use cfdisk to set up 2 partitions. I created a small one at the start of the available space to reserve the name mmcblk1p1, then a 5120MB one at the end, then deleted the one at the beginning and recreated it using all the remaining available space. Make sure you remember to write the new patritions, then quit cfdisk and unmount Easy Debian using the icon.</li>
Line 28: Line 28:
<li>Mount the Easy Debian image file: <code>mount -o loop /home/user/MyDocs/debian-m5-estel.img.ext3 /.debian</code></li>
<li>Mount the Easy Debian image file: <code>mount -o loop /home/user/MyDocs/debian-m5-estel.img.ext3 /.debian</code></li>
-
<li>Copy the Easy Debian image to a directory in the second partition on the SD: <pre>mkdir /mnt/debian
+
<li>Copy the Easy Debian image to a directory in the second partition on the SD: <code>cp -a /.debian /mnt</code></li>
-
cp -a /.debian/* /mnt/debian</pre></li>
+
<li>Unmount the Easy Debian image: <code>umount /.debian</code></li>
<li>Unmount the Easy Debian image: <code>umount /.debian</code></li>
Line 35: Line 34:
<li>Modify /home/user/.chroot, to make it point to new location, in the relevant position:  
<li>Modify /home/user/.chroot, to make it point to new location, in the relevant position:  
<pre>IMGFILE=none
<pre>IMGFILE=none
-
CHROOT=/mnt/debian</pre></li>
+
CHROOT=/mnt/.debian</pre></li>
<li>Edit /sbin/closechroot changing the line  
<li>Edit /sbin/closechroot changing the line  
-
<pre>#Abort if chroot not mounted
+
<pre>if [ ! -f "$CHROOT/var/lock/qmount-complete" ] ; then</pre>
-
if [ ! -f "$CHROOT/var/lock/qmount-complete" ] ; then</pre>
+
to
to
-
<pre>#Abort if chroot not mounted
+
<pre>if [ "$IMGFILE" != "none" ] && [ ! -f "$CHROOT/var/lock/qmount-complete" ] ; then</pre>
-
if [ "$IMGFILE" != "none" ] && [ ! -f "$CHROOT/var/lock/qmount-complete" ] ; then</pre>
+
</li>
</li>
Line 49: Line 46:
<li>If you want, delete the Easy Debian image file: <code>rm /home/user/MyDocs/debian-m5-estel.img.ext3</code></li>
<li>If you want, delete the Easy Debian image file: <code>rm /home/user/MyDocs/debian-m5-estel.img.ext3</code></li>
-
<li>Backup MyDocs to mmc1: <code>cp -a /home/user/MyDocs /media/mmc1</code></li>
+
<li>Backup MyDocs to mmc1: <code>cp -a /home/user/MyDocs/* /media/mmc1</code></li>
<li>Unmount MyDocs: <code>umount /home/user/MyDocs/</code></li>
<li>Unmount MyDocs: <code>umount /home/user/MyDocs/</code></li>
Line 62: Line 59:
<li>Create a file /etc/default/mount-opts-overwrite containing the line <code>genfstab="0"</code></li>
<li>Create a file /etc/default/mount-opts-overwrite containing the line <code>genfstab="0"</code></li>
-
<li>Edit /etc/fstab, changing the line <pre>/dev/mmcblk0p2 /home ext3 defaults 0 2</pre> to <pre>/dev/mmcblk1p2 /home ext4 defaults 0 0</pre></li>
+
<li>Edit /etc/fstab/, changing the line <pre>/dev/mmcblk0p2 /home ext3 defaults 0 2</pre> to <pre>/dev/mmcblk0p2 /home ext4 defaults 0 0</pre></li>
<li><code>reboot</code> If you've done something wrong, this is where it all comes tumbling down with an infinite reboot loop.</li>
<li><code>reboot</code> If you've done something wrong, this is where it all comes tumbling down with an infinite reboot loop.</li>
Line 68: Line 65:
<li>Assuming you've booted successfully, you may as well unmount MyDocs; I'm not sure if it's necessary, but why not? <code>umount /home/user/MyDocs</code></li>
<li>Assuming you've booted successfully, you may as well unmount MyDocs; I'm not sure if it's necessary, but why not? <code>umount /home/user/MyDocs</code></li>
-
<li>Get Easy Debian pointing in the right direction by editing /home/user/.chroot to change the line <code>CHROOT=/mnt/debian</code> to <code>CHROOT=/home/debian</code></li>
+
<li>Get Easy Debian pointing in the right direction by editing /home/user/.chroot to change the line <code>CHROOT=/mnt/.debian</code> to <code>CHROOT=/home/.debian</code></li>
-
<li>In Easy Debian chroot shell, type <code>cfdisk /dev/mmcblk0</code></li>
+
<li>In Easy Debian chroot shell, type <code>cfdisk mmcblk0</code></li>
-
<li>There is some unformatted memory at the start of the eMMC; I don't know if it's important, but to preserve it, I started by making a new partiton of it, to be deleted before writing the new setup. I then set up a 25923.23MB <code>mmcblk0p1</code> setting type to 0C (FAT32 (LBA)) for MyDocs and a 5219.49MB <code>mmcblk0p2</code> for home. I then deleted the <code>mmcblk0p4</code> I'd set up to protect the unformatted space at the start and select Write to repartition the eMMC. You may, of course, chose partition sizes to suit yourself. When done, unmount with the Close Debian icon.</li>
+
<li>There is some unformatted memory at the start of the eMMC; I don't know if it's important, but to preserve it, I started by making a new partiton of it, to be deleted before writing the new setup. I then set up a 25923.23MB <code>mmcblk0p1</code> setting type to 0C (FAT32 (LBA)) for MyDocs and a 5219.49MB <code>mmcblk0p2</code> for home. I then deleted the <code>mmcblk0p4</code> I'd set up to protect the unformatted space at the start and select Write to repartition the eMMC. You may, of course, chose partition sizes to suit yourself When done, unmount with the Close Debian icon.</li>
<li>Part of my aim was to have home as ext4, so back in the maemo root shell: <code>mkfs.ext4 /dev/mmcblk0p2</code></li>
<li>Part of my aim was to have home as ext4, so back in the maemo root shell: <code>mkfs.ext4 /dev/mmcblk0p2</code></li>
Line 79: Line 76:
== Restoring the system to eMMC ==
== Restoring the system to eMMC ==
<ol>
<ol>
-
<li>Mount the future /home. <code>mount /dev/mmcblk0p2 /mnt</code></li>
+
<li>Mount what is going to be home in the long term: <code>mount /dev/mmcblk0p2 /mnt</code></li>
<li>Restore your home backup: <code>cp -a /home/* /mnt</code></li>
<li>Restore your home backup: <code>cp -a /home/* /mnt</code></li>
-
<li>Unmount /home to be <code>umount /mnt</code></li>
+
<li>Unmount home to be and mount MyDocs to be
-
 
+
<pre>umount /mnt
-
<li>Mount MyDocs to be: <code>mount /dev/mmcblk0p1 /mnt</code></li>
+
mount /dev/mmcblk0p1 /mnt</pre></li>
<li>Restore MyDocs: <code>cp -a /media/mmc1/* /mnt</code></li>
<li>Restore MyDocs: <code>cp -a /media/mmc1/* /mnt</code></li>
<li>If, like me, you've gone for an ext4 home, edit line 98 of /etc/event.d/rcS-late, changing <code>ext3</code> to <code>ext4</code></li>
<li>If, like me, you've gone for an ext4 home, edit line 98 of /etc/event.d/rcS-late, changing <code>ext3</code> to <code>ext4</code></li>
-
 
<li>Delete the file stopping maemo for looking for eMMC partitions: <code>rm /etc/default/mount-opts-overwrite</code></li>
<li>Delete the file stopping maemo for looking for eMMC partitions: <code>rm /etc/default/mount-opts-overwrite</code></li>
<li>Cross your fingers and <code>reboot</code></li>
<li>Cross your fingers and <code>reboot</code></li>
</ol>
</ol>

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)