Ubuntu GNOME 16.04 native 환경입니다.
flash 스크립트를 처음 실행할 때 아래와 같이 boot.img를 write하는 과정에서 입출력 오류가 발생합니다. 혹시 이유를 알 수 있을까요?
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
...
❯ sudo ./flash-sdcard.sh /dev/sda
Alias tip: _ ./flash-sdcard.sh /dev/sda
Raspberry Pi3 downloader, version 0.1
Device: /dev/sda
/dev/sda will be formatted, Is it OK? [y/n]
y
-------------------------------
Start /dev/sda format
========================================
Label dev size
========================================
boot /dev/sda1 64 MB
rootfs /dev/sda2 3072 MB
system-data /dev/sda3 512 MB
[Extend] /dev/sda4
user /dev/sda5 11489 MB
modules /dev/sda6 20 MB
ramdisk /dev/sda7 8 MB
ramdisk-recovery /dev/sda8 12 MB
inform /dev/sda9 8 MB
Remove partition table...
16+0 레코드 들어옴
16+0 레코드 나감
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00391824 s, 2.1 MB/s
Checking that no-one is using this disk right now ... OK
Disk /dev/sda: 14.9 GiB, 15931539456 bytes, 31116288 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
>>> Created a new DOS disklabel with disk identifier 0x0f7e8163.
Created a new partition 1 of type 'W95 FAT16 (LBA)' and of size 64 MiB.
/dev/sda2: Sector 16384 is already allocated.
Created a new partition 2 of type 'Linux' and of size 3 GiB.
/dev/sda3: Sector 16384 is already allocated.
Created a new partition 3 of type 'Linux' and of size 512 MiB.
/dev/sda4: Sector 16384 is already allocated.
Created a new partition 4 of type 'Extended' and of size 11.3 GiB.
/dev/sda5: Created a new partition 5 of type 'Linux' and of size 11.2 GiB.
/dev/sda6: Created a new partition 6 of type 'Linux' and of size 20 MiB.
/dev/sda7: Created a new partition 7 of type 'Linux' and of size 8 MiB.
/dev/sda8: Created a new partition 8 of type 'Linux' and of size 12 MiB.
/dev/sda9: Created a new partition 9 of type 'Linux' and of size 7.5 MiB.
/dev/sda10:
New situation:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 8192 139263 131072 64M e W95 FAT16 (LBA)
/dev/sda2 139264 6430719 6291456 3G 83 Linux
/dev/sda3 6430720 7479295 1048576 512M 83 Linux
/dev/sda4 7479296 31116287 23636992 11.3G 5 Extended
/dev/sda5 7481344 31010815 23529472 11.2G 83 Linux
/dev/sda6 31012864 31053823 40960 20M 83 Linux
/dev/sda7 31055872 31072255 16384 8M 83 Linux
/dev/sda8 31074304 31098879 24576 12M 83 Linux
/dev/sda9 31100928 31116287 15360 7.5M 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
mkfs.fat 3.0.28 (2015-05-16)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
/dev/sda2 contains a ext4 file system labelled 'rootfs'
last mounted on /var/tmp/mic_54046/build/imgcreate-IpzdUs/install_root on Wed Oct 24 12:58:38 2018
/dev/sda3 contains a ext4 file system labelled 'system-data'
last mounted on /opt on Wed Oct 24 12:58:39 2018
The file 5 does not exist and no size was specified.
/dev/sda6 contains a ext4 file system labelled 'modules'
last mounted on /home/jyeok/univ/os/tizen-5.0-rpi3/tmp/lib/modules on Sun Sep 13 09:55:47 2020
/dev/sda7 contains a ext4 file system labelled 'ramdisk'
last mounted on /mnt/initrd on Wed Oct 24 12:58:39 2018
/dev/sda8 contains a ext4 file system labelled 'ramdisk-recovery'
last mounted on /mnt/initrd-recovery on Wed Oct 24 12:58:39 2018
/dev/sda9 contains a ext4 file system labelled 'inform'
last mounted on /home/jyeok/univ/os/tizen-5.0-rpi3/mnt_tmp on Sun Sep 13 10:26:54 2020
umount: /dev/sda9: not mounted
End /dev/sda format
-------------------------------
Raspberry Pi3 downloader, version 0.1
Device: /dev/sda
Fusing binary:
tizen-unified_20181024.1_iot-headless-2parts-armv7l-rpi3.tar.gz
-----------------------
Skip /dev/sda format
-----------------------
ramdisk.img
rootfs.img
system-data.img
ramdisk-recovery.img
[Fusing ramdisk-recovery.img]
umount: /dev/sda8: not mounted
22196+0 레코드 들어옴MiB/s] [============================================> ] 94% ETA 0:00:00
22196+0 레코드 나감
11364352 bytes (11 MB, 11 MiB) copied, 1.05926 s, 10.7 MB/s
10.8MiB 0:00:01 [10.2MiB/s] [==============================================>] 100%
22196+0 레코드 들어옴
22196+0 레코드 나감
11364352 bytes (11 MB, 11 MiB) copied, 2.50211 s, 4.5 MB/s
resize2fs 1.42.13 (17-May-2015)
Resizing the filesystem on /dev/sda8 to 12288 (1k) blocks.
The filesystem on /dev/sda8 is now 12288 (1k) blocks long.
[Fusing ramdisk.img]
umount: /dev/sda7: not mounted
14336+0 레코드 들어옴
14336+0 레코드 나감
7340032 bytes (7.3 MB, 7.0 MiB) copied, 0.685552 s, 10.7 MB/s
7MiB 0:00:00 [10.1MiB/s] [==============================================>] 100%
14336+0 레코드 들어옴
14336+0 레코드 나감
7340032 bytes (7.3 MB, 7.0 MiB) copied, 1.41771 s, 5.2 MB/s
resize2fs 1.42.13 (17-May-2015)
Resizing the filesystem on /dev/sda7 to 8192 (1k) blocks.
The filesystem on /dev/sda7 is now 8192 (1k) blocks long.
[Fusing rootfs.img]
umount: /dev/sda2: not mounted
492296+0 레코드 들어옴iB/s] [===============================> ] 67% ETA 0:00:00
492296+0 레코드 나감
252055552 bytes (252 MB, 240 MiB) copied, 2.91894 s, 86.4 MB/s
240MiB 0:00:02 [82.4MiB/s] [==============================================>] 100%
0+3596 레코드 들어옴
0+3596 레코드 나감
252055552 bytes (252 MB, 240 MiB) copied, 27.8617 s, 9.0 MB/s
resize2fs 1.42.13 (17-May-2015)
Resizing the filesystem on /dev/sda2 to 786432 (4k) blocks.
The filesystem on /dev/sda2 is now 786432 (4k) blocks long.
[Fusing system-data.img]
umount: /dev/sda3: not mounted
122688+0 레코드 들어옴
122688+0 레코드 나감
59.9MiB 0:00:00 [ 351MiB/s] [==============================================>] 100% 62816256 bytes (63 MB, 60 MiB) copied, 0.170828 s, 368 MB/s
0+60022 레코드 들어옴
0+60022 레코드 나감
62816256 bytes (63 MB, 60 MiB) copied, 0.169339 s, 371 MB/s
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 15336 (4k) blocks long. Nothing to do!
Raspberry Pi3 downloader, version 0.1
Device: /dev/sda
Fusing binary:
tizen-unified_20181024.1_iot-boot-arm64-rpi3.tar.gz
-----------------------
Skip /dev/sda format
-----------------------
boot.img
modules.img
[Fusing boot.img]
umount: /dev/sda1: not mounted
dd: '/dev/sda1'에 쓰는 도중 오류 발생: 입력/출력 오류===================> ] 92% ETA 0:00:00
62.6MiB 0:00:07 [8.91MiB/s] [=============================================> ] 97%
128129+0 레코드 들어옴
128128+0 레코드 나감
65601536 bytes (66 MB, 63 MiB) copied, 14.9343 s, 4.4 MB/s
resize2fs 1.42.13 (17-May-2015)
resize2fs: Bad magic number in super-block while trying to open /dev/sda1
Couldn't find valid filesystem superblock.
[Fusing modules.img]
umount: /dev/sda6: not mounted
40960+0 레코드 들어옴MiB/s] [=========================================> ] 88% ETA 0:00:00
40960+0 레코드 나감
20971520 bytes (21 MB, 20 MiB) copied, 2.25144 s, 9.3 MB/s
20MiB 0:00:02 [8.86MiB/s] [==============================================>] 100%
40960+0 레코드 들어옴
40960+0 레코드 나감
20971520 bytes (21 MB, 20 MiB) copied, 5.37032 s, 3.9 MB/s
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 20480 (1k) blocks long. Nothing to do!
Ubuntu GNOME 16.04 native 환경입니다. flash 스크립트를 처음 실행할 때 아래와 같이
boot.img
를 write하는 과정에서 입출력 오류가 발생합니다. 혹시 이유를 알 수 있을까요?