Thread
:
Setting up N810 to Boot From SD Card
View Single Post
auouymous
2011-07-12 , 07:57
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#
7
Code:
sfdisk -l /dev/mmcblk1
The first line should be something like "...: X cylinders, ..." and next line should say "... cylinders of Y bytes, ...". (X-1) * Y is the total usable size.
Z = 1073741824 ; number of byes in your linux partition (1gig)
A = (X-1) - Z/Y
B = A - 1
and then run
Code:
umount /media/mmc1 sfdisk /dev/mmcblk1 << EOF 1,B,c A,, EOF
That is how you determine the partition sizes.
As for not being able to unmount mmc1, you need to stop whatever is accessing it before you can partition the card. If the "pwd" command returns /media/mmc1/* then you need to change directory to get off the card.
Quote & Reply
|
The Following User Says Thank You to auouymous For This Useful Post:
Addison
auouymous
View Public Profile
Send a private message to auouymous
Find all posts by auouymous