Guest User

Untitled

a guest
Dec 12th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. sudo dd bs=4M if=ubuntu-14.04-hdmi-z7010-20140611.img of=/dev/mmcblk0
  2.  
  3. linaro-nano:~> df -h
  4. Filesystem Size Used Avail Use% Mounted on
  5. /dev/root 6.7G 6.3G 12K 100% /
  6. devtmpfs 465M 4.0K 465M 1% /dev
  7. none 97M 372K 97M 1% /run
  8. none 5.0M 0 5.0M 0% /run/lock
  9. none 485M 0 485M 0% /run/shm
  10. none 100M 0 100M 0% /run/user
  11. linaro-nano:~>
  12.  
  13. [idf@localhost ~]$ sudo fdisk /dev/mmcblk0
  14.  
  15. Welcome to fdisk (util-linux 2.25.2).
  16. Changes will remain in memory only, until you decide to write them.
  17. Be careful before using the write command.
  18.  
  19.  
  20. Command (m for help): p
  21. Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
  22. Units: sectors of 1 * 512 = 512 bytes
  23. Sector size (logical/physical): 512 bytes / 512 bytes
  24. I/O size (minimum/optimal): 512 bytes / 512 bytes
  25. Disklabel type: dos
  26. Disk identifier: 0x000a07b6
  27.  
  28. Device Boot Start End Sectors Size Id Type
  29. /dev/mmcblk0p1 2048 264191 262144 128M b W95 FAT32
  30. /dev/mmcblk0p2 264192 62333951 62069760 29.6G 83 Linux
  31.  
  32.  
  33. Command (m for help): d
  34. Partition number (1,2, default 2):
  35.  
  36. Partition 2 has been deleted.
  37.  
  38. Command (m for help): p
  39. Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
  40. Units: sectors of 1 * 512 = 512 bytes
  41. Sector size (logical/physical): 512 bytes / 512 bytes
  42. I/O size (minimum/optimal): 512 bytes / 512 bytes
  43. Disklabel type: dos
  44. Disk identifier: 0x000a07b6
  45.  
  46. Device Boot Start End Sectors Size Id Type
  47. /dev/mmcblk0p1 2048 264191 262144 128M b W95 FAT32
  48.  
  49.  
  50. Command (m for help): w
  51.  
  52. Device Boot Start End Sectors Size Id Type
  53. /dev/mmcblk0p1 2048 264191 262144 128M b W95 FAT32
  54.  
  55.  
  56. [idf@localhost ~]$ sudo fdisk /dev/mmcblk0
  57.  
  58. Welcome to fdisk (util-linux 2.25.2).
  59. Changes will remain in memory only, until you decide to write them.
  60. Be careful before using the write command.
  61.  
  62.  
  63. Command (m for help): n
  64. Partition type
  65. p primary (1 primary, 0 extended, 3 free)
  66. e extended (container for logical partitions)
  67. Select (default p): p
  68. Partition number (2-4, default 2):
  69. First sector (264192-62333951, default 264192):
  70. Last sector, +sectors or +size{K,M,G,T,P} (264192-62333951, default 62333951):
  71.  
  72. Created a new partition 2 of type 'Linux' and of size 29.6 GiB.
  73.  
  74. Command (m for help): p
  75. Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors
  76. Units: sectors of 1 * 512 = 512 bytes
  77. Sector size (logical/physical): 512 bytes / 512 bytes
  78. I/O size (minimum/optimal): 512 bytes / 512 bytes
  79. Disklabel type: dos
  80. Disk identifier: 0x000a07b6
  81.  
  82. Device Boot Start End Sectors Size Id Type
  83. /dev/mmcblk0p1 2048 264191 262144 128M b W95 FAT32
  84. /dev/mmcblk0p2 264192 62333951 62069760 29.6G 83 Linux
  85.  
  86.  
  87. Command (m for help): w
  88. The partition table has been altered.
  89. Calling ioctl() to re-read partition table.
  90. Syncing disks.
  91.  
  92. [idf@localhost ~]$ sudo e2fsck -f /dev/mmcblk0p2
  93. e2fsck 1.42.12 (29-Aug-2014)
  94. Pass 1: Checking inodes, blocks, and sizes
  95. Pass 2: Checking directory structure
  96. Pass 3: Checking directory connectivity
  97. Pass 4: Checking reference counts
  98. Pass 5: Checking group summary information
  99. rootfs: 120773/448800 files (0.2% non-contiguous), 980314/1792000 blocks
  100. [idf@localhost ~]$ sudo resize2fs /dev/mmcblk0p
  101. mmcblk0p1 mmcblk0p2
  102. [idf@localhost ~]$ sudo resize2fs /dev/mmcblk0p
  103. mmcblk0p1 mmcblk0p2
  104. [idf@localhost ~]$ sudo resize2fs /dev/mmcblk0p
  105. mmcblk0p1 mmcblk0p2
  106. [idf@localhost ~]$ sudo resize2fs /dev/mmcblk0p2
  107. resize2fs 1.42.12 (29-Aug-2014)
  108. Resizing the filesystem on /dev/mmcblk0p2 to 7758720 (4k) blocks.
  109. The filesystem on /dev/mmcblk0p2 is now 7758720 (4k) blocks long.
  110.  
  111. [idf@localhost ~]$ df -h
  112. Filesystem Size Used Avail Use% Mounted on
  113. devtmpfs 2.9G 0 2.9G 0% /dev
  114. tmpfs 2.9G 72M 2.8G 3% /dev/shm
  115. tmpfs 2.9G 980K 2.9G 1% /run
  116. tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
  117. /dev/mapper/fedora-root 50G 20G 28G 42% /
  118. tmpfs 2.9G 40K 2.9G 1% /tmp
  119. /dev/sda5 477M 141M 307M 32% /boot
  120. /dev/mapper/fedora-home 396G 68G 309G 18% /home
  121. /dev/sda4 200M 9.6M 191M 5% /boot/efi
  122. tmpfs 585M 20K 585M 1% /run/user/1000
  123.  
  124. [idf@localhost ~]$ df -h
  125. Filesystem Size Used Avail Use% Mounted on
  126. devtmpfs 2.9G 0 2.9G 0% /dev
  127. tmpfs 2.9G 72M 2.8G 3% /dev/shm
  128. tmpfs 2.9G 988K 2.9G 1% /run
  129. tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
  130. /dev/mapper/fedora-root 50G 20G 28G 42% /
  131. tmpfs 2.9G 40K 2.9G 1% /tmp
  132. /dev/sda5 477M 141M 307M 32% /boot
  133. /dev/mapper/fedora-home 396G 68G 309G 18% /home
  134. /dev/sda4 200M 9.6M 191M 5% /boot/efi
  135. tmpfs 585M 20K 585M 1% /run/user/1000
  136. /dev/mmcblk0p1 127M 6.3M 120M 5% /run/media/idf/BOOT
  137. /dev/mmcblk0p2 30G 3.6G 25G 13% /run/media/idf/rootfs
Add Comment
Please, Sign In to add comment