| The Following User Says Thank You to babyshamie For This Useful Post: | ||
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
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
| The Following User Says Thank You to babyshamie For This Useful Post: | ||
| The Following User Says Thank You to michaaa62 For This Useful Post: | ||
| The Following User Says Thank You to n900shamie For This Useful Post: | ||
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: | ||
sfdisk -l /dev/mmcblk0 | grep mmcblk | grep -v Empty | tail -n 1 | awk '{print $3;}'
| The Following User Says Thank You to brahim98 For This Useful Post: | ||