User:Emesem
(→Read first) |
(→Reparitioning) |
||
| Line 11: | Line 11: | ||
| - | What I did to get a 50/50 sharing of memory and /dev/mmcblk0p2 still be ext3. '''Be extra careful because I've never made it to get it done with one shot.''' | + | What I did to get a 50/50 sharing of memory and /dev/mmcblk0p2 still be ext3. '''Be extra careful because I've never made it to get it done with one shot.''' So it is more a guideline than a "how to". |
# do full backup on desktop computer with rsync. For an example see [[User:Jebba/Backups]] | # do full backup on desktop computer with rsync. For an example see [[User:Jebba/Backups]] | ||
# flash eMMC | # flash eMMC | ||
Revision as of 11:22, 8 January 2010
Contents |
Read first
These are my personal notes - nothing comes with warranty! Use at your own risk
My N900 setup
Reparitioning
THIS CAN MAKE IT A BRICK SO BE PREPARED TO RESTORE FROM FLASHER OR ANY OTHER WAY YOU CAN THINK OF
What I did to get a 50/50 sharing of memory and /dev/mmcblk0p2 still be ext3. Be extra careful because I've never made it to get it done with one shot. So it is more a guideline than a "how to".
- do full backup on desktop computer with rsync. For an example see User:Jebba/Backups
- flash eMMC
- flash device
- install rootsh
cp -a MyDocs/ /media/mmc1/tmp root umount /home/user/MyDocs sfdisk -d > sf.org cp sf.org sf.1 vi sf.1 # set 1st partition to 83 and size to 30412800 sfdisk --force /dev/mmcblk0 < sf.1 mkfs.ext3 /dev/mmcblk0p1 mount /dev/mmcblk0p1 /mnt cp -a /home/* /mnt umount /mnt reboot (maybe flashing required) sfdisk -d > sf.2 vi sf.2 # resize 2nd partition to 30412800 and set start to 30412864 sfdisk --force /dev/mmcblk0 < sf.2 mkfs.ext3 /dev/mmcblk0p2 mount /dev/mmcblk0p2 /mnt cp -a /home/* /mnt/ umount /mnt umount -fl /home mount /dev/mmcblk0p2 /home sfdisk -d > sf.3 vi sf.3 # set partition 1 to type c sfdisk --force /dev/mmcblk0 < sf.3 reboot (maybe flashing required) mkfs.vfat -F 32 /dev/mmcblk0p1 mount /dev/mmcblk0p1 /home/user/MyDocs cp -a /media/mmc1/tmp/MyDocs/* /home/user/MyDocs reboot
Make space on rootfs
cat cleanRootfs.sh
#Create folder in /opt for /usr/share
mkdir -p /opt/usr/share
#enter in /usr folder
cd /usr/
#cycle. FILE will have different value depend from step
for FILE in games include local src var
do
#if it is no symlink
if [ -h $FILE ]
then
echo "Omitting $FILE because it is a symbolic link"
else
#move folder (games include local src var) to /opt/usr
echo "Moving $FILE"
mv $FILE /opt/usr/
#create soft link for moved folders
ln -s /opt/usr/$FILE /usr/
fi
done
#end of cycle
mkdir -p /opt/var/cache
cd /var/cache/
for FILE in apt
do
if [ -h $FILE ]
then
echo "Omitting $FILE because it is a symbolic link"
else
echo "Moving $FILE"
mv $FILE /opt/var/cache/
ln -s /opt/var/cache/$FILE /var/cache/
fi
done
cd /usr/share/
for FILE in fonts icons locale mime nokia-maps pixmaps sounds themes tutorial-applet zoneinfo
do
if [ -h $FILE ]
then
echo "Omitting $FILE because it is a symbolic link"
else
echo "Moving $FILE"
mv $FILE /opt/usr/share/
ln -s /opt/usr/share/$FILE /usr/share/
fi
done
exit 0
Customized program list
Quick links
http://wiki.maemo.org/N900_Accessories http://talk.maemo.org/showthread.php?t=37354 howto import SMS from other Nokia devices (with the help of csv files) http://talk.maemo.org/showthread.php?p=433889 battery level information for conky http://wiki.maemo.org/N900_USB_networking http://wiki.maemo.org/User:Jebba http://wiki.maemo.org/User:Ruskie http://repository.maemo.org/ http://wiki.maemo.org/N900_Shortcuts_and_Gestures http://talk.maemo.org/showthread.php?t=35122 Repartioning thread
