Skip to content

Commit 4614ace

Browse files
committed
Fix a bug
1 parent 64dc6da commit 4614ace

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

linux/debian/rpi2.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ mmcblk0 179:0 0 29.7G 0 disk
7878
```console
7979
$ gzip -d https://images.collabora.co.uk/rpi2/jessie-rpi2-20150202.img.gz
8080
$ sudo bmaptool copy --bmap jessie-rpi2-20150202.img.bmap jessie-rpi2-20150202.img /dev/mmcblk0
81+
bmaptool: info: block map format version 2.0
82+
bmaptool: info: 768256 blocks of size 4096 (2.9 GiB), mapped 123252 blocks
83+
(481.5 MiB or 16.0%)
84+
bmaptool: info: copying image 'jessie-rpi2-20150202.img' to block device
85+
'/dev/mmcblk0' using bmap file 'jessie-rpi2-20150202.img.bmap'
86+
bmaptool: info: 100% copied
87+
bmaptool: info: synchronizing '/dev/mmcblk0'
88+
bmaptool: info: copying time: 24.7s, copying speed 19.5 MiB/sec
8189
```
8290

8391
書き込みが完了すると、microSD カードには 2つのパーティションが作成される。
@@ -174,7 +182,7 @@ $ sudo mount /dev/mmcblk0p2 /mnt
174182
ホスト名の設定を上書きする。
175183

176184
```console
177-
$ echo rpi.exmaple.jp |sudo tee /mnt/etc/hostname
185+
$ echo rpi.exmaple.jp |sudo tee /mnt/etc/hostname >/dev/null
178186
```
179187

180188
ネットワークの設定を上書きする。
@@ -211,7 +219,7 @@ done
211219

212220
```console
213221
$ getent passwd `id -un` |sudo tee -a /mnt/etc/passwd >/dev/null
214-
$ getent passwd `id -gn` |sudo tee -a /mnt/etc/group >/dev/null
222+
$ getent group `id -gn` |sudo tee -a /mnt/etc/group >/dev/null
215223
$ sudo getent shadow `id -un` |sudo tee -a /mnt/etc/shadow >/dev/null
216224
$ sudo sed -i '$s/[^:]*$/\/bin\/bash/' /mnt/etc/passwd
217225
```

0 commit comments

Comments
 (0)