![]() |
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) |
| All times are GMT. The time now is 19:13. |
vBulletin® Version 3.8.8