Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dd if=/dev/zero of=/dev/sdd bs=1M count=8
- 8+0 records in
- 8+0 records out
- 8388608 bytes (8.4 MB, 8.0 MiB) copied, 1.44513 s, 5.8 MB/s
- [root@yogi ~]# fdisk /dev/sdd
- Welcome to fdisk (util-linux 2.28).
- 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 0x1fc3e878.
- Command (m for help): o
- Created a new DOS disklabel with disk identifier 0xd9897a4f.
- 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):
- First sector (2048-31116287, default 2048): 8192
- Last sector, +sectors or +size{K,M,G,T,P} (8192-31116287, default 31116287):
- Created a new partition 1 of type 'Linux' and of size 14.9 GiB.
- Command (m for help): w
- The partition table has been altered.
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@yogi ~]# mkfs.ext4 /dev/sdd1
- mke2fs 1.42.13 (17-May-2015)
- Creating filesystem with 3888512 4k blocks and 972944 inodes
- Filesystem UUID: 6b6412cd-c773-4f28-a606-d3a7c39f246d
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
- Allocating group tables: done
- Writing inode tables: done
- Creating journal (32768 blocks): done
- Writing superblocks and filesystem accounting information: done
- [root@yogi ~]# mount /dev/sdd1 root/
- [root@yogi ~]# !bsdtar
- bsdtar -xpf ArchLinuxARM-odroid-xu3-latest.tar.gz -C root/
- [root@yogi ~]# sync
- *[root@yogi ~]# cd root/boot/
- [root@yogi boot]# ./sd_fusing.sh /dev/sdd
- /dev/sdd reader is identified.
- BL1 fusing
- 30+0 records in
- 30+0 records out
- 15360 bytes (15 kB, 15 KiB) copied, 0.0481267 s, 319 kB/s
- BL2 fusing
- 28+1 records in
- 28+1 records out
- 14592 bytes (15 kB, 14 KiB) copied, 0.382876 s, 38.1 kB/s
- u-boot fusing
- 1061+1 records in
- 1061+1 records out
- 543414 bytes (543 kB, 531 KiB) copied, 4.23891 s, 128 kB/s
- TrustZone S/W fusing
- 512+0 records in
- 512+0 records out
- 262144 bytes (262 kB, 256 KiB) copied, 1.98698 s, 132 kB/s
- U-boot image is fused successfully.
- [root@yogi boot]# cd
- [root@yogi ~]# umount root
- [root@yogi ~]# fsck.ext4 -fn /dev/sdd1
- e2fsck 1.42.13 (17-May-2015)
- Pass 1: Checking inodes, blocks, and sizes
- Pass 2: Checking directory structure
- Pass 3: Checking directory connectivity
- Pass 4: Checking reference counts
- Pass 5: Checking group summary information
- /dev/sdd1: 31076/972944 files (0.5% non-contiguous), 256788/3888512 blocks
- [root@yogi ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement