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

From Texas Instruments Wiki
Jump to: navigation, search

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)


SD card1.jpg

  • This will give you a menu, then follow the next steps:
  • set the current partitions on the MMC card (option p)


SD card2.jpg

  • delete all the current partitions (option d) (Perform that command till all partitions are deleted)


SD card3.jpg

  • 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.


SD card4.jpg

  • 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)


SD card5.jpg

  • Start writing and exit (option w)


SD card6.jpg

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


SD card7.jpg

  • [--Linux-host-] sudo mkfs.ext2 –L <Label2> /dev/sdc2
 Eg: sudo mkfs.ext2 –L ROOT /dev/sdc2


SD card8.jpg

  • 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>.



HomepageIcon.jpgHOME

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Create Partitioning using manual commands here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Create Partitioning using manual commands here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Create Partitioning using manual commands here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Create Partitioning using manual commands here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Create Partitioning using manual commands here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Create Partitioning using manual commands here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Create Partitioning using manual commands here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Create Partitioning using manual commands here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Create Partitioning using manual commands here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity