NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Create Partitioning using manual commands
Create the partitions[edit]
- Use the command 'sudo fdisk -l' in order to see the mounted point of the MMC under /dev directory.
user@ubt1004:~/Projects$ sudo fdisk -l Disk /dev/sda: 53.7 GB, 53697576960 bytes 255 heads, 63 sectors/track, 6528 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0007157d Device Boot Start End Blocks Id System /dev/sda1 * 1 19 145408 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 19 6529 52290561 5 Extended /dev/sda5 19 6286 50337792 83 Linux /dev/sda6 6286 6529 1951744 82 Linux swap / Solaris Disk /dev/sdb: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000bc718 Device Boot Start End Blocks Id System /dev/sdb1 1 13054 104856223+ 83 Linux Disk /dev/sdc: 997 MB, 997720064 bytes 31 heads, 62 sectors/track, 1013 cylinders Units = cylinders of 1922 * 512 = 984064 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0005e030 Device Boot Start End Blocks Id System
- [--Linux-host-] sudo /sbin/fdisk /dev/sdc (use the directory found in previous command instead of ‘/dev/sdc’. In the below screen shot the MMC card is mounted on /dev/sdc1 and /dev/sdc2)
- This will give you a menu, then follow the next steps:
- set the current partitions on the MMC card (option p)
- delete all the current partitions (option d) (Perform that command till all partitions are deleted)
- add a new partition (option n)
- make a primary partition (option p)
- Select the partition number as 1.
- Select the first cylinder as 1 (the default gets taken on pressing enter) and last cylinder as 100M.
- Add a new partition (option n)
- make a primary partition (option p)
- Select the partition number as 2.
- Select the first cylinder as 101 (or use default by pressing enter) and select the last cylinder as default value by pressing enter.
- Select the file system (option t).
- Select the first partition by pressing 1
- Select the file system as FAT32 (option b)
- Select option‘t’ again.
- Select the second partition by pressing 2
- Select the file system as ext2 (option 83)
- Start writing and exit (option w)
Format[edit]
- Unmount the Mobile MMC card.
- umount /dev/<label> for example: umount/dev/sdb
- Format and Create a label for it. (Note that the labels given below are just for example and they can be renamed as as per your choice)
- [--Linux-host-] sudo mkfs.vfat –n <Label1> /dev/sdc1
Eg: sudo mkfs.vfat –n BOOT /dev/sdc1
- [--Linux-host-] sudo mkfs.ext2 –L <Label2> /dev/sdc2
Eg: sudo mkfs.ext2 –L ROOT /dev/sdc2
- This partitions the Mobile MMC card with FAT and ext2 partitions.
- Now mount the Mobile MMC card, and you will see two partitions with <Label1> and <Label2>.