The Following User Says Thank You to babyshamie For This Useful Post: | ||
|
2011-01-17
, 22:22
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#282
|
df
sudo gainroot
echo "unit: sectors > /dev/mmcblk0p1 : start= 56631360, size= 4194304, Id= c > /dev/mmcblk0p2 : start= 64, size= 56631296, Id=83 > /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82 > /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > table
sfdisk --no-reread /dev/mmcblk0 < table
reboot
sudo gainroot mkfs.vfat -F32 -n MyDocs /dev/mmcblk0p1 mount /dev/mmcblk0p1 /home/user/MyDocs
|
2011-01-17
, 22:55
|
Posts: 71 |
Thanked: 9 times |
Joined on Jun 2010
|
#283
|
Looks good so far, before carrying on assure yourself that it workedRead the desired size for /home, aka optfs. But you have to apply a new partition table, because having MyDocs in the first partition is somehow hardcoded in Maemo.Code:df
Now after you are assured carry on with firstfollowed by this one command over these 5 linesCode:sudo gainroot
It parses the text between the "" to the file named table. Then apply the table to your deviceCode:echo "unit: sectors > /dev/mmcblk0p1 : start= 56631360, size= 4194304, Id= c > /dev/mmcblk0p2 : start= 64, size= 56631296, Id=83 > /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82 > /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > tableNow reboot again to make that partition setup known to the kernelCode:sfdisk --no-reread /dev/mmcblk0 < tableAfter reboot carry on with creating the filesystem for MyDocs partition and mount itCode:rebootVoila, your done!Code:sudo gainroot mkfs.vfat -F32 -n MyDocs /dev/mmcblk0p1 mount /dev/mmcblk0p1 /home/user/MyDocs
The Following User Says Thank You to babyshamie For This Useful Post: | ||
|
2011-01-17
, 23:23
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#284
|
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
The Following User Says Thank You to michaaa62 For This Useful Post: | ||
|
2011-01-18
, 07:44
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#286
|
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
echo "unit: sectors > /dev/mmcblk0p1 : start= 64, size= 39854080, Id=0 > /dev/mmcblk0p2 : start= 39854144, size= 20971520, Id=0 > /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82 > /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > table
10G=1024*1024*10*2=20,971,520 Sectors is the size of partition2 60825664 minus 20,971,520 = 39854144 is the starting value for partition2 39854144 minus 64 = 39854080 is the size of partition!
The Following User Says Thank You to michaaa62 For This Useful Post: | ||
|
2011-01-18
, 15:39
|
Posts: 30 |
Thanked: 2 times |
Joined on Jul 2010
|
#287
|
|
2011-01-18
, 16:22
|
Posts: 16 |
Thanked: 13 times |
Joined on Sep 2010
|
#288
|
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.
|
2011-01-18
, 16:45
|
Posts: 345 |
Thanked: 117 times |
Joined on Jan 2010
@ uk
|
#289
|
|
2011-01-18
, 17:58
|
Posts: 12 |
Thanked: 21 times |
Joined on Aug 2010
@ Alger
|
#290
|
p1=remaining (21GB) as fat, p2=8GB as ext3, p3=512MB as swap, p4=128MB as ext3
sfdisk -l /dev/mmcblk0 | grep mmcblk | grep -v Empty | tail -n 1 | awk '{print $3;}'
974974+1=974975
974975/8=121871.88
121871*8=974968
size=128MB=128*1024KB=131072KB=131072/32 blocs=4096 blocs
4096+6=4102 blocs
end bloc=974974
size=4102
beginning=974974-4102=970872
size=512MB=512*1024KB=524288KB=524288/32 blocs=16384 blocs
end bloc=970872
size=16384
beginning=970872-16384=954488
size=8GB=8*1024MB=8192MB=8192*1024KB=8388608KB=838 8608/32 blocs=262144 blocs
end bloc=954488
size=262144
beginning=954488-262144=692344
end bloc=692344
beginning=0 (*)
size=692344-0 blocs=692344 blocs
The Following User Says Thank You to brahim98 For This Useful Post: | ||
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 #