![]() |
Re: Repartition the internal drive
oh i'll fix it thx guys ;) it's about swap partition that didn't mount and do it with mkswap . DONE
|
Re: Repartition the internal drive
A newbie guide out of the question?
|
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Here is my modified eMMC binary for 5GB home partition:
http://www.anonym.to/?http://tonev.n...HOME_MICRO.bin MD5SUM: d9e7e78e720c09a3a2d5921f4621e71a |
Re: Repartition the internal drive
Quote:
Easy to do, just make sure you take a backup first. |
Re: Repartition the internal drive
Hi everybody...
I could need some help here. I'm on PR1.3 and therefore tried solution #7 from the wiki but I used a different filetable see, below Code:
unit: sectorsCode:
/etc/event.d/rcS-late under '-f /usr/lib/genfstab.awk > $tmp_fstab'And last but not least is there eventually another way to copy /home back to emmc? I don't know why, but my phone keeps crashing/rebooting after about 20 minutes of copying files back from sd card. (edit: I tried to restore /home with filebox but it gives a lot of copying errors Quote:
thx in advance, ..::J4ZZ::.. |
Re: Repartition the internal drive
Quote:
i have partition magic installed on my windows laptop..however, when i connect my N900 to the laptop, partition magic did not lists MyDocs.. it only showed my hard drive letters..and no removable drives (MyDocs and Memory Card).. my laptop's disc drive is fried..so i can't use it to boot into GParted LiveCd.. would u elaborate more on how to use the partition magic?thx |
Re: Repartition the internal drive
It is possible to repartition without flashing vanilla image and without loosing data on existing partitions.
Simple use backupmenu v2 with a linux pc (with gparted installed). This guide can explain how to: http://translate.google.it/translate...n&hl=&ie=UTF-8 Unfortunately Google's translation is not perfect |
Re: Repartition the internal drive
Is the solution #1 (swap /home and MyDocs partition) compatible with PR1.3
|
Re: Repartition the internal drive
Quote:
It is a variant of Solution #6: Custom repartitioning from a linux PC Original Solution 6 use MeeGo rescue image, instead the linked guide use BackupMenu v2 for same purpose |
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?
|
Re: Repartition the internal drive
Quote:
Code:
[root@Nokia-N900 ~]# du -kx /usr | sort -n | tail -n 10 |
Re: Repartition the internal drive
Quick reply...
I tried to build kiconedit on N900 itself. So: I installed subversion, got the source, installed gcc, said "gcc main.cpp", found out that it needs general KDE headers, started copying them one-by-one. It turned out that kdemacros.h should be generated by cmake. So I copied kdemacros.h.cmake and said apt-get install cmake It installed cmake-data and then couldn't find space for cmake I manually optified cmake-data (if I understand anything in this filesystem at all ;) ) There still wasn't enough space for cmake Almost all languages in /usr/share/locale were already deleted earlier. So I thought: what about optifying /usr/lib? I moved all files from /opt/usr/lib to /usr/lib and then all files from /usr/lib to /opt/usr/lib. But... /usr/lib/python2.5 and two more folders which actually already are in /opt/pymaemo continued to be mounted in /usr/lib. I wanted to mount them in /opt/usr/lib. After some mount umount -l bind move. Mess increased, but /usr/lib empty, and then replaced with symbolic link to /opt/usr/lib For some time, everything worked, including apt-get But later, MicroB couldn't open any page at all I took a wild guess that after reboot nothing will work (why???) So I backup-ed some most important files (like Hildon menu; I put a lot of effort into customising it with sub-menus) and, just in case, moved photographs tp PC Reboot Malfunction Re-flash Home isn't harmed, but all applications are gone Now, my ambitious goal is: to have all applications optified to the extent that less than half of rootfs is usually used How can I reach it? Now 60% are in use. I have Modrana (and I don't have OSM logger and Marble and OSMapper, and I'm not going to install them) I have Panorama and MBarcode (and I don't have FrontView, and I'm not going to install it) I have Fennec and Chromium I'm going to get Metre and QStarDict I'm going to get eboard, sudoku and mokomaze (probably; not sure yet) I'm not going to install Maelophone (I don't think that emulating physical music on an electronic device is worthwhile goal) I'm not going to install my own half-baked programs: GPS compass and auto-rotation and text editor I'm not going to install MyPaint, PenPen, and example Qt Text Editor I have already installed pocketsphinx, and voximp wasn't lost while reflashing I have tried to install ejpi... but purged it. It's awkward, though innovative. I'm trying to get aptitude GUI working - then I will not need fapman I will have to add repositories to HAM again - they were lost. |
Re: Repartition the internal drive
@michaaa62 :
This is what I have Code:
Nokia-N900:~# du -sh /usr |
Re: Repartition the internal drive
I really need helppp.....My phone rebooted itself when i was doing the solution #1.
: cp -a /home/* /mnt # copy contents of /home to large partition. i have tried to restore the entire system but i cant access the MyDoc in File Manager after restoring. |
Re: Repartition the internal drive
Well, you just had it re-formatted according to the howto, so no wonder it is not there. Go on with copying all of the content of /home to /mnt (after a reboot you have to mount the partition /dev/mmcblk0p1 to /mnt again !!! ) to be sure the copy process was not interrupted.
|
Re: Repartition the internal drive
but it says not found when mounting plz help
|
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
@ babieshame:
Short Walkthrough: Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
The howto continous to create a new partition table, here called 'table' for simplicity to get the partitions mounted for the next reboot. After you wrote the table to the device, you are ready to reboot. After the reboot you simply create and then mount the new file system for the now smaller MyDocs partition. Because you first asked about the cp command i guess there is no MyDocs existing any more. Continue like suggestedin the post above with the howto from the "mount /dev/mmcblk0p1 /mnt"-step to achieve a working setup. right now you are in the middle of nowhere. |
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Quote:
For N900 exists only parted (console version) |
Re: Repartition the internal drive
Thanks .. I asked about gparted as it was mentioned that n900 version of gnu parted already exists.
On the command line parted, is this the one? would you know if this works without issues, did not see confirmation that it is working fine in the link above |
Re: Repartition the internal drive
Quote:
use the one in my sig;) |
Re: Repartition the internal drive
just in case someone is looking for the link 3 years from now and your sig has changed — gnu-parted
|
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
Well, if you were or are in the middle of some rebuilding process stuck, there is also some risk to make debugging of flashing errors very difficult. So please lets see the output of
Code:
sudo gainroot |
Re: Repartition the internal drive
it didnt show any error after putting the codes,and i just rebooted but still the same,.
|
Re: Repartition the internal drive
Well..., i wanted to see what changes you made so please paste the output here!
|
Re: Repartition the internal drive
i cant access the storage,where the screenshoo a being stored.. thats the problem..thxx
|
Re: Repartition the internal drive
And is copy and paste no option???
|
| All times are GMT. The time now is 19:13. |
vBulletin® Version 3.8.8