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: | ||
- | |||
- | |||
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 | + | == WARNING: Using this recipe you will lose MyDocs. == |
- | + | ||
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 | + | Use parted to shrink the MyDocs partition (on my N900 it was the 1st one) |
- | parted | + | parted /dev/mmcblk0 print |
- | + | parted /dev/mmcblk0 1 resize 1kb 25GB | |
- | + | ||
- | + | ||
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 | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
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 | ||
- | |||
- |
Learn more about Contributing to the wiki.