![]() |
Re: Repartition the internal drive
it looks like this==>
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ sudo gainroot Root shell enabled BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. /home/user # sfdisk -l /dev/mmcblk0 Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk0p1 1 884864 884864 28315648 83 Linux /dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux /dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris /dev/mmcblk0p4 0 - 0 0 0 Empty /home/user # mount rootfs on / type rootfs (rw) ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) tmpfs on /tmp type tmpfs (rw,noatime,size=1024k) tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755) none on /dev type tmpfs (rw,noatime,size=10240k,mode=755) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k) /dev/mmcblk0p1 on /home type ext3 (rw,noatime,errors=continue,commit=1,data=writebac k) /home/opt on /opt type none (bind) nodev on /sys/kernel/debug type debugfs (0) /opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind) /opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind) /opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind) /opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind) /opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind) /dev/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime, utf8,uid=29999,shortname=mixed,dmask=000,fmask=013 3,rodir) /home/user # |
Re: Repartition the internal drive
Looks good so far, before carrying on assure yourself that it worked
Code:
dfNow after you are assured carry on with first Code:
sudo gainrootCode:
echo "unit: sectorsCode:
sfdisk --no-reread /dev/mmcblk0 < tableCode:
rebootCode:
sudo gainroot |
Re: Repartition the internal drive
Quote:
thax.thax.thax..very much, I can now access it,wooo..but i have 25gb for installing apps and 2gb on MyDocs,,but its does not really matter though i wanted only 8gb for installing apps...thx again |
Re: Repartition the internal drive
Quote:
If you really want to repartition 8GB optfs and 24 GB MyDocs you have to backup all your stuff, because during the procedure both are deleted and one after the other rebuild from the backup like in solution #3 http://wiki.maemo.org/Repartitioning_the_flash |
Re: Repartition the internal drive
can anyone explain and give a table of how to have 10gb for install and the rest for MyDocs,i couldnt manage with the ideas provided on wiki.
thx |
Re: Repartition the internal drive
Quote:
Read, digest, understand or ask your questions before doing something irresponsible, it saves your nerves!!! This is the table for solution #3 only. It is the temporary table because of the two zero'ed partition type entries, which will not get mounted during reboot! Code:
echo "unit: sectorsEdit: Documentation of the calculation: Start from the end, swap partition will not get changed [ignore it]. The first partition must start at 64!!! Code:
10G=1024*1024*10*2=20,971,520 Sectors is the size of partition2 |
Re: Repartition the internal drive
i have tried the procedure that u just gave three times now but i still have the same memory style after the process..can u give a whole procedure for 10gb for installing plzz.
|
Re: Repartition the internal drive
This is now fixed, I have my N900 running with ext4 MyDocs and no problems. My booting issues were due to the awk madness that generates the fstab (why???) barfing on two partitions having the same type. I disabled the whole thing and went with a static fstab like most linux systems in this reality.
Quote:
|
Re: Repartition the internal drive
You can repartition and create new partitions WITHOUT losing any data with gparted. I managed it so anyone can. Just create a bootable cd. I did this even though I have a windows pc. When the machine boots off the cd, plug n900 in and resize the partitions. Took about 15 minutes from start to finish for me. I created a new partition of 2gb for android then gave home an extra 2gb, stealing 4gb from MyDocs. I can find the links or make a howto or something if really needed, but I think if I can do it when I'm a real n00b then anyone can.
|
Calculate partition size
Hello,
Here is a method to calculate the partition's table. You must know that a bloc is 32k and it's better to use boundaries at 256k. To calculate a size the rule is to change to KB and divide by 32. Maybe an example will make it clearer : To keep it simple, let's assume that you want at most 4 partitions. 1) Choose a partitionning layout in my example Quote:
Code:
sfdisk -l /dev/mmcblk0 | grep mmcblk | grep -v Empty | tail -n 1 | awk '{print $3;}'3) Calculate the highest 256k bloc number high256k=int((974974+1)/8)*8 Quote:
4) calculate the 4th partition Quote:
Quote:
Quote:
Quote:
5) calculate the 3rd partition (it's nearly copy and past from 4) Quote:
Quote:
Quote:
6) calculate the 2nd partition (also the same as above) Quote:
Quote:
Quote:
7) calculate the 1st partition (the easiest part) we know the start and end blocs Quote:
Quote:
One last thing : the type of partition is c for fat, 82 for swap and 83 for ext3 using sfdisk you just have to give beginning, size and type for each partition ---------------- (*) : I haven't any issue beginning with 0, the default is 1, many says to begin with 64 (losing 2MB) |
Re: Repartition the internal drive
heeelp,,i was trying the #3,and when i was doing this code,(sfdisk --no-reread /dev/mmcblk0 < table # change partition table
reboot; exit),, the phone rebooted as it's said but my phone never boots up completely,,it starts booting for like 4seconds,and then it restarts....it never stops rebooting,,,and so i cant restore the system or reflash becoz the computer just recognize it for 3 seconds..any idea sooo plz heeeeeelpp |
Re: Repartition the internal drive
Pull the battery and let it rest for some second, than insert the battery and reboot.
|
Re: Repartition the internal drive
i have tried this by pulling out the batery for 24hr now but still no solution,,,i cant take it back to where i bought bcoz i bought in Sweden and i live in Holand,,soo any other idea plzzz,,i have tried my best but no way,,it reboots again and again before it even show the password request for the simcard,,sooo plzzzzz
|
Re: Repartition the internal drive
Do you have multiboot or backup-menu or bootmenu-n900 installed, then try to start with keyboard switched out. If this is not working for you try to just flash the kernel http://wiki.maemo.org/Updating_the_t...a_FIASCO_image
Good luck |
Re: Repartition the internal drive
thxx for ur help,,i had restored the phone ,so nothing was installed except rootsh,, and also PC(my computer) just recognises it for only like 3-4 seconds,then the phone switches off,so it keeps going on and off every 3 seconds,i dont know how i am gonna flash it.thxx i preciate ur help
|
Re: Repartition the internal drive
Does it start just by putting the battery in? If not, try to prepare the phone by loading the battery. Also prepare the flasher utility and the fiasco image to be ready to flash the kernel only. The flasher utility could be started before and just waits for the phone, switched off, to be connected.
|
Re: Repartition the internal drive
Quote:
i just realised that the Flasher-3.5 does not work on windows 7-64version ,,damn,, |
Re: Repartition the internal drive
Any Debian or Ubuntu Live-CD should do, just keep the flasher utility .deb and the fiasco image on a place with easy access to them.
|
Re: Repartition the internal drive
am using my friends windows xp sp 3,but i am stuck at suitable USB device not found,waiting,,,do i need any extra driver for the usb,,coz the phone is not detected..thx
|
Re: Repartition the internal drive
Does step 7 here make a difference http://wiki.maemo.org/Updating_the_t...rmware#Windows
|
Re: Repartition the internal drive
no difference
|
Re: Repartition the internal drive
No windows knowledge here, sorry. Two more things go through my mind:
Is the battery fully charged? Try to charge it in another phone, may be in a Nokia Store, or an external charger. Is the fiasco image in the directory, where you run the windows command shell? May be keep the directory as simple as possible. |
Re: Repartition the internal drive
am gonna do that
|
Re: Repartition the internal drive
hh,i really feel exhausted of my phone,,charged and tried again but no promises,,i just cant find any other solution,,feel like i have tried what i can.damn
|
Re: Repartition the internal drive
Well you could try some Ubuntu or Debian based Live-CD's! Did you also try to achieve some result with Nokia-Suite?
|
Re: Repartition the internal drive
i just managed to reflash ma phone since all the fear/stress i have had,,,i just wanted to thx U michaaa62 for the help & ecourage that u provided,,,,thhhxx
|
Re: Repartition the internal drive
can someone make a table for 10gb for installing apps,and the rest for MyDocs plzz
|
Re: Repartition the internal drive
Quote:
|
Re: Repartition the internal drive
I was able repartition my device successfully using "Solution #6: Custom repartitioning from a linux PC" in the http://wiki.maemo.org/Repartitioning_the_flash and my Ubuntu box. I now have 1 gb swap, 10 gb home, and the remainder 20ish gb MyDocs. gnu parted and my n900 fought for a bit when I tried to unmout some of the partitions to allow resizing, however i found that disabling and re-enabling the USB support on the n900 (u key) sever times was able over come this. after gnu parted was able to modify the disk everything went smoothly...well until i disabled r&d mode and tried to reboot. it would only boot to the four dots on the screen then turn off again. a quick reflash of the vanilla was able to fixed this. in conclusion, if you don't mind doing a reflash on your device, this is a relatively painless and easy way to resize your n900's internal flash partitions. hope this helps. if anyone had question, i would be happy to try to provide any assistance possible.
|
Re: Repartition the internal drive
can't I just use gparted and resize the partitions?
|
Re: Repartition the internal drive
Just install multiboot to do it, boot with keyboardt slid out, here you can export your internal memory card read/write and gparted will pick it up.
|
Re: Repartition the internal drive
Hi all,
I searched the thread, but couldn't find anyone with similar problems.. I've repartitioned the flash to give one large /home and a loopback file for usb according to the wiki instructions. It's working well so far, except for 2 problems:
So I'm guessing something that was changed in the osso-usb-mass-storage-enable.sh file has caused problem 1, but I can't work out what. Problem 2 is also annoying, because some file dialogs don't give the option to access the full filesystem, so it makes it difficult to save to the /home partition. Has anyone faced anything like this before? Any ideas where I can start to debug it? |
Re: Repartition the internal drive
I recall reading somewhere that a misstep would cause MyDocs to be deleted. I don't remember the details, though.
|
Re: Repartition the internal drive
Hi All,
How have you hacked your phone so you can save to /home/user/* and not MyDocs. The "HildonFileChooserDialog"(I think) only says Nokia N900(/home/user/MyDocs) or Memory Card. I'd like to change this as /home/user is the large ext3 and /home/user/MyDocs is the small vfat partition. Alternatively I'm thinking of unmount MyDocs and simply mount /home/user/MyDocs/DCIM as the vfat partition, since I only need vfat for camera app I think. Any thoughts? |
Re: Repartition the internal drive
lookup 'parted'. that will do all that for you. You just create a bootable cd for your windows pc (or boot straight into linux if you have it) then connect your n900 and resize/repartition etc to your hearts content. Best thing is you wont lose any data. you can keep everything where it is (as long as theres not more stuff in there than the new partition size)
|
Re: Repartition the internal drive
Let it be gparted instead of parted!!! Parted is a partition table editor, while gparted is a graphical partition manager, which may help you preserve the content of the partition.
|
Re: Repartition the internal drive
FWIW (YMMV -- just a heads up!), last time I used gparted together with backupmenu to change partition sizes, the geometry of all attached memory devices (internal 32GB + 8GB microSSD) was changed (from 4H/16S/*C to something like 64H/??S/*C). In addition, every time I ran sfdisk -l, it complained that the starting point of two of the partitions was other than expected.
Linux doesn't "care" about wrong head/sector count (since these are imaginary values in SSD memory anyway), but it does keep complaining (which some people might find annoying). Windows OTOH tends to be more finicky with wrong geometry values, which may or may not affect accessibility (at the worst future moment, probably). I just wanted it fixed because I was having other FS/IO problems at the time and thought the two might be related. Also, at the time I couldn't think of a good way to return the values to their original settings without losing all data in the process (essentially, doing something like "sfdisk -H4 -S16 /dev/mmcblk0"). I have not tried this again since then, but I wonder if this happened because I used the wrong settings in gparted while modifying the partition sizes (by using cylinder offsets to redefine the boundary points, rather than the other option (whole MiBs?) -- or vice versa). At any rate, you can fix it all by doing a complete re-flash (which I didn't know at the time, as it happened within the first three weeks after having purchased it). |
Re: Repartition the internal drive
Quote:
I'm using kernel-power and CSSU. Any ideas? EMMC works great with ext4 :) |
Re: Repartition the internal drive
Oh! my God !
its unbeleaveable.........!!!!!!! wooooooooooooooooooooooooooooow I did it in very first attempt. I am very very very relaxed now. Thankyou so much. You really genius. You made my N900 on the top of all. I don't know how to thank you....... it works. T H A N K Y O U S I R ! |
Re: Repartition the internal drive
I trieed to increase applications memory from 2gb to 10 gb following the instructions from here http://talk.maemo.org/showpost.php?p...&postcount=188
Something went wrong and now i have 18.99 gb in nokia n900 and 77.9 mb memory for installable applications. The problem is when i try to flash with vanilla i get this error: C:\Program Files\maemo\flasher-3.5> C:\Program Files\maemo\flasher-3.5>flasher-3.5.exe -F RX-51_2009SE_10.2010.13-2. VANILLA_PR_EMMC_MR0_ARM.bin -f flasher v2.5.2 (Sep 24 2009) Image 'mmc', size 255947 kB Version RX-51_2009SE_10.2010.13-2.VANILLA USB device found found at bus bus-0, device address \\.\libusb0-0001--0x0421-0x0 105. Found device RX-51, hardware revision 2101 NOLO version 1.4.14 Version of 'sw-release': RX-51_2009SE_20.2010.36-2_PR_MR0 Booting device into flash mode. Suitable USB device not found, waiting. When i flash fiasco image it goes ok, but with vanilla i get that error. What do i have to do now? |
| All times are GMT. The time now is 19:13. |
vBulletin® Version 3.8.8