Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@localhost:~# fdisk /dev/mmcblk0
- Welcome to fdisk (util-linux 2.25.2).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Device does not contain a recognized partition table.
- Created a new DOS disklabel with disk identifier 0xed009b1e.
- Command (m for help): n
- Partition type
- p primary (0 primary, 0 extended, 4 free)
- e extended (container for logical partitions)
- Select (default p): p
- Partition number (1-4, default 1): 1
- First sector (2048-15523839, default 2048): 4096
- Last sector, +sectors or +size{K,M,G,T,P} (4096-15523839, default 15523839): +32M
- Created a new partition 1 of type 'Linux' and of size 32 MiB.
- Command (m for help): p
- Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0xed009b1e
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 4096 69631 65536 32M 83 Linux
- Command (m for help): n
- Partition type
- p primary (1 primary, 0 extended, 3 free)
- e extended (container for logical partitions)
- Select (default p): p
- Partition number (2-4, default 2): 2
- First sector (2048-15523839, default 2048): 69631
- Sector 69631 is already allocated.
- First sector (69632-15523839, default 69632): ^C
- root@localhost:~#
- root@localhost:~#
- root@localhost:~#
- root@localhost:~#
- root@localhost:~#
- root@localhost:~#
- root@localhost:~#
- root@localhost:~# fdisk /dev/mmcblk0
- Welcome to fdisk (util-linux 2.25.2).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Device does not contain a recognized partition table.
- Created a new DOS disklabel with disk identifier 0xb3fb4355.
- Command (m for help): n
- Partition type
- p primary (0 primary, 0 extended, 4 free)
- e extended (container for logical partitions)
- Select (default p): p
- Partition number (1-4, default 1): 1
- First sector (2048-15523839, default 2048): 4096
- Last sector, +sectors or +size{K,M,G,T,P} (4096-15523839, default 15523839): +32M
- Created a new partition 1 of type 'Linux' and of size 32 MiB.
- Command (m for help): p
- Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0xb3fb4355
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 4096 69631 65536 32M 83 Linux
- Command (m for help): n
- Partition type
- p primary (1 primary, 0 extended, 3 free)
- e extended (container for logical partitions)
- Select (default p): p
- Partition number (2-4, default 2): 2
- First sector (2048-15523839, default 2048): 69632
- Last sector, +sectors or +size{K,M,G,T,P} (69632-15523839, default 15523839):
- Created a new partition 2 of type 'Linux' and of size 7.4 GiB.
- Command (m for help): w
- The partition table has been altered.
- Calling ioctl() to re-read partition table.
- Syncing disks.
- root@localhost:~# ls /dev/mmcblk0*
- /dev/mmcblk0 /dev/mmcblk0p1 /dev/mmcblk0p2
- sync@localhost:~# dd if=flash-image-a80x0_mcbin.bin of=/dev/mmcblk0p1 conv=fdata
- 1798+1 records in
- 1798+1 records out
- 921048 bytes (921 kB) copied, 0.67439 s, 1.4 MB/s
- root@localhost:~# mkfs.vfat /dev/mmcblk0p2
- mkfs.fat 3.0.27 (2014-11-12)
- root@localhost:~#
Advertisement
Add Comment
Please, Sign In to add comment