Editing Creating a large partition and booting off it

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 1: Line 1:
-
{{danger}}
 
-
 
I found it is possible to add a partition to the internal flash card.
I found it is possible to add a partition to the internal flash card.
-
== WARNING: Using this recipe you can lose MyDocs.  == \
+
== WARNING: Using this recipe you will loose MyDocs.  ==
-
However, the most recent user reported happily not to loose it.
+
Make a backup of MyDocs!
Make a backup of MyDocs!
Line 12: Line 9:
/home cannot be umounted, unfortunately. But this didn't do any harm to /home
/home cannot be umounted, unfortunately. But this didn't do any harm to /home
-
Use parted to shrink the MyDocs partition (on my [[Nokia N900|N900]] it was the 1st one)
+
Use parted to shrink the MyDocs partition (on my N900 it was the 1st one)
-
  parted  
+
  parted /dev/mmcblk0 print
-
  (parted) print
+
parted /dev/mmcblk0 1 resize 1kb 25GB
-
  (parted) resize XXXXXX 25GB
+
-
Replace XXXXXX with the value given by parted print
+
reboot
reboot
-
Use fdisk to add the 4th partition right after the 1st one
+
Use fdisk to  
 +
# remove the first partition (Because parted makes it not end on a cylinder boundary)
 +
# recreate the exactly same partition again (this time ending on a cylinder boundary) Make sure to specify "TYPE C" for vfat
 +
# add the 4th partition right after the 1st one
reboot
reboot
Line 46: Line 44:
Copy the device tree (Sure this is too much, but not copying it will not work)
Copy the device tree (Sure this is too much, but not copying it will not work)
  cp -af /dev/* <mountpoint>/dev
  cp -af /dev/* <mountpoint>/dev
-
 
-
On the new partition, edit the file etc/event.d/rcS-late. Right after
 
-
rm -f $fstab_tmp insert the following lines, which you may want to adapt to your needs:
 
-
    cat << EOF > $fstab
 
-
# marcus-generated 20:11
 
-
#rootfs / rootfs defaults,errors=remount-ro,noatime 0 0
 
-
/dev/mmcblk0p4 / ext3 rw,defaults,errors=remount-ro,noatime 0 0
 
-
/dev/mmcblk0p1 /home/user/MyDocs vfat  noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dm ask=000,fmask=0133,rodir 0 0
 
-
/dev/mmcblk0p2 /home ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
 
-
/dev/mmcblk0p3 none swap sw 0 0
 
-
EOF
 
-
 
Using bootmenu.sh and this entry in /etc/bootmenu.d I can now boot into my new 3.7GB root drive
Using bootmenu.sh and this entry in /etc/bootmenu.d I can now boot into my new 3.7GB root drive
Line 81: Line 67:
  /dev/mmcblk0p2        2,0G  129M  1,8G  7% /home
  /dev/mmcblk0p2        2,0G  129M  1,8G  7% /home
  /dev/mmcblk0p1        24G  7,9G  16G  34% /home/user/MyDocs
  /dev/mmcblk0p1        24G  7,9G  16G  34% /home/user/MyDocs
-
 
-
[[Category:Power users]]
 

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)

Templates used on this page: