![]() |
Re: Repartition the internal drive
I meant titans post: http://talk.maemo.org/showpost.php?p...1&postcount=66
This is same: http://wiki.maemo.org/Repartitioning_the_flash These are solution #1 Is this compatible with PR1.3? |
Re: Repartition the internal drive
Anyone? Look at upper post and answer pls.
|
Re: Repartition the internal drive
Help! My phone rebooted itself when i was doing the solution #1.
It rebooted after this command: cp -a /home/* /mnt # copy contents of /home to large partition. What should i do? My phone is in confusion. |
Re: Repartition the internal drive
I recently managed to repartition nand, emmc and mmc to fit my needs, a simple step by step isn't available. So i decided to include the process i used to do it.
I made a well commented (i hope) step by step tutorial so everyone can follow. The only issue i encountered (and didn't solve) is that when connected to a Pc in mass storage mode, only MyDocs is visible, mmc is not mountable by Pc. Everything else works. So let's begin I am using a 8GB mmc, you must adapt numbers for partitions # the goal is to reach this config : # nand -> / # emmc partition 1 (remaining) -> /home/user/MyDocs # emmc partition 2 (4GB) -> /home # emmc partition 3 (4GB) -> /usr # emmc partition 4 (768MB) -> swap # mmc partition 1 (remaining) -> /media/mmc1 # mmc partition 2 (2GB) -> /var Edit : no need to customize kernel as stated before install rootsh or openssh-server (to do it via ssh, if wifi at home) Code:
sudo gainroot (or ssh as root)Code:
apt-get install nano-opt# n900 seems to mount without asking so some umounts are needed Code:
umount /dev/mmcblk1p1# p1=512MB (backup MyDocs), p2=1GB (backup /home), p3=5.5GB (not used), p4=768MB (swap) # I made small partitions to speed the formatting process (remember it's temporary partitionned) Code:
sfdisk /dev/mmcblk1Code:
rebootCode:
umount /dev/mmcblk1p1Code:
umount /dev/mmcblk1p1Code:
mkdir /media/mmc1/MyDocsCode:
mkdir /media/mmc1/homeCode:
nano -w /etc/event.d/rcS-lateQuote:
Quote:
Code:
nano -w /etc/fstabQuote:
Code:
swapoff /dev/mmcblk0p3Code:
umount /dev/mmcblk0p1# partition /dev/mmcblk0 Code:
umount /dev/mmcblk0p1Code:
rebootCode:
umount /dev/mmcblk0p1Code:
umount /dev/mmcblk0p1Code:
nano -w /etc/fstabQuote:
Code:
swapoff /dev/mmcblk1p4moving /usr is hard but moving /var is harder and will brick (must reflash) if not done carefully. Moving /usr and /var can be done in one step (without rebooting between), I prefer going slowly but surely # partition /dev/mmcblk1 (final) # ! those numbers must be changed for you Code:
umount /dev/mmcblk1p1Code:
rebootCode:
umount /dev/mmcblk1p1Code:
umount /dev/mmcblk1p1Code:
nano -w /etc/fstabQuote:
Code:
nano -w /etc/init.d/rcSQuote:
Code:
rebootCode:
umount /dev/mmcblk1p1Code:
nano -w /etc/fstabQuote:
Code:
nano -w /etc/init.d/rcSand before mount /usr Quote:
Code:
rebootCode:
gconftool -s --type int /apps/hildon/update-notifier/check_interval 2147483647Good luke and happy hacking |
Re: Repartition the internal drive
Have you read this: http://talk.maemo.org/showpost.php?p...&postcount=248
|
Re: Repartition the internal drive
I didn't know about this method, could have saved me much time, but the tricky part for me was to move /usr and /var loosely discussed by ruskie (I thank him a lot) and an example was given somewhere for n800 (not very usefull for n900). Now that I have moved these directories, I could install sdk (and every software i want) without worrying about rootfs or any partition. Finally, notice that my solution only requires a N900 and fingers.
|
Re: Repartition the internal drive
Quote:
Of course with a Linux PC is more comfortable and probably faster to do |
Re: Repartition the internal drive
For me the motivation wasn't size, as I was satisfied with the partitioning, but I wanted MyDocs in a filesystem that preserves permissions (especially fed up with every file having +x when copied out of there).
I formatted it as ext4, changed a pile of scripts (there are instructions on page 18 of this topic), and actually remembered to change the ownership of the whole filesystem to the user before I even tried to use the camera — meaning I never actually experienced camera issues. Right now I'm happily using my n900 with an ext4 MyDocs, no problems yet. One thing I have to note though, since my uid on my work/home computers is obviously not the same, I had to do something to be able to write to MyDocs when mounted with mass storage. Best way to do that was with POSIX ACLs; man setfacl is your friend. |
Re: Repartition the internal drive
Spoke too soon :-D it worked without flaw... until the next reboot. Now it won't boot no matter what. Playing around with rescue disks and whatnot to figure out my next step...
|
Re: Repartition the internal drive
can u dd mmcblop2 so that i or we can dd it again without danger? or maybe make a .dep file?
|
| All times are GMT. The time now is 19:05. |
vBulletin® Version 3.8.8