差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
hardware:gl-ar750s-ext [2020/01/13 03:49] – [参考文献] ともやん | hardware:gl-ar750s-ext [2020/01/20 08:59] – [OpenWRT 関連] ともやん | ||
---|---|---|---|
行 25: | 行 25: | ||
{{: | {{: | ||
- | ===== SD カードの mount ===== | + | ===== OpenWRT 関連 |
- | + | [[.:gl-ar750s-ext:sd_mount|SD カードのマウント]]\\ | |
- | ==== パッケージ インストール ==== | + | [[.:gl-ar750s-ext:minidlna|DLNA メディアサーバー]]\\ |
- | < | + | [[.: |
- | # opkg install gdisk | + | [[.:gl-ar750s-ext:managing_packages|パッケージ管理]]\\ |
- | # opkg install block-mount | + | |
- | # opkg install e2fsprogs | + | |
- | # opkg install kmod-fs-ext4 | + | |
- | # reboot | + | |
- | </ | + | |
- | + | ||
- | ==== パーティションの作成 ==== | + | |
- | < | + | |
- | # gdisk /dev/sda | + | |
- | GPT fdisk (gdisk) version 1.0.3 | + | |
- | + | ||
- | Partition table scan: | + | |
- | MBR: protective | + | |
- | BSD: not present | + | |
- | APM: not present | + | |
- | GPT: present | + | |
- | + | ||
- | Found valid GPT with protective MBR; using GPT. | + | |
- | + | ||
- | Command (? for help): r | + | |
- | + | ||
- | Recovery/ | + | |
- | + | ||
- | Expert command (? for help): l | + | |
- | Enter the sector alignment value (1-65536, default = 2048): 34 | + | |
- | + | ||
- | Expert command (? for help): m | + | |
- | + | ||
- | Command (? for help): n | + | |
- | Partition number (1-128, default 1): | + | |
- | First sector (34-236462046, | + | |
- | Last sector (34-236462046, | + | |
- | Current type is 'Linux filesystem' | + | |
- | Hex code or GUID (L to show codes, Enter = 8300): | + | |
- | Changed type of partition to 'Linux filesystem' | + | |
- | + | ||
- | Command (? for help): p | + | |
- | Disk /dev/sda: 236462080 sectors, 112.8 GiB | + | |
- | Model: STORAGE DEVICE | + | |
- | Sector size (logical/ | + | |
- | Disk identifier (GUID): 98E0A384-FC68-4BAB-BC50-25EFE6988D43 | + | |
- | Partition table holds up to 128 entries | + | |
- | Main partition table begins at sector 2 and ends at sector 33 | + | |
- | First usable sector is 34, last usable sector is 236462046 | + | |
- | Partitions will be aligned on 34-sector boundaries | + | |
- | Total free space is 0 sectors (0 bytes) | + | |
- | + | ||
- | Number | + | |
- | | + | |
- | + | ||
- | Command (? for help): w | + | |
- | + | ||
- | Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING | + | |
- | PARTITIONS!! | + | |
- | + | ||
- | Do you want to proceed? (Y/N): y | + | |
- | OK; writing new GUID partition table (GPT) to /dev/sda. | + | |
- | The operation has completed successfully. | + | |
- | </ | + | |
- | + | ||
- | ==== パーティションの初期化 ==== | + | |
- | < | + | |
- | # mkfs.ext4 /dev/sda1 | + | |
- | mke2fs 1.44.1 (24-Mar-2018) | + | |
- | /dev/sda1 contains a ext4 file system | + | |
- | created on Sun Jan 12 21:12:35 2020 | + | |
- | Proceed anyway? (y,N) y | + | |
- | Creating filesystem with 29557751 4k blocks and 7397376 inodes | + | |
- | Filesystem UUID: fa755a50-bee7-49e8-93f4-50712eb37d58 | + | |
- | Superblock backups stored on blocks: | + | |
- | 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, | + | |
- | 4096000, 7962624, 11239424, 20480000, 23887872 | + | |
- | + | ||
- | Allocating group tables: done | + | |
- | Writing inode tables: done | + | |
- | Creating journal (131072 blocks): | + | |
- | done | + | |
- | Writing superblocks and filesystem accounting information: | + | |
- | + | ||
- | # block detect > / | + | |
- | </ | + | |
- | < | + | |
- | # vi / | + | |
- | </ | + | |
- | <file / | + | |
- | config ' | + | |
- | option | + | |
- | option | + | |
- | option | + | |
- | option | + | |
- | option | + | |
- | option | + | |
- | + | ||
- | config ' | + | |
- | option | + | |
- | option | + | |
- | option | + | |
- | </ | + | |
- | < | + | |
- | # uci show fstab | + | |
- | fstab.@global[0]=global | + | |
- | fstab.@global[0].anon_swap=' | + | |
- | fstab.@global[0].anon_mount=' | + | |
- | fstab.@global[0].auto_swap=' | + | |
- | fstab.@global[0].auto_mount=' | + | |
- | fstab.@global[0].delay_root=' | + | |
- | fstab.@global[0].check_fs=' | + | |
- | fstab.@mount[0]=mount | + | |
- | fstab.@mount[0].target='/ | + | |
- | fstab.@mount[0].uuid=' | + | |
- | fstab.@mount[0].enabled=' | + | |
- | # reboot | + | |
- | </ | + | |
- | < | + | |
- | # mount | + | |
- | /dev/root on /rom type squashfs (ro, | + | |
- | proc on /proc type proc (rw, | + | |
- | sysfs on /sys type sysfs (rw, | + | |
- | tmpfs on /tmp type tmpfs (rw, | + | |
- | /dev/ubi0_1 on /overlay type ubifs (rw, | + | |
- | overlayfs:/overlay on / type overlay (rw, | + | |
- | tmpfs on /dev type tmpfs (rw, | + | |
- | devpts on /dev/pts type devpts (rw, | + | |
- | debugfs on / | + | |
- | /dev/sda1 on / | + | |
- | + | ||
- | # df | + | |
- | Filesystem | + | |
- | / | + | |
- | tmpfs 62168 | + | |
- | / | + | |
- | overlayfs:/ | + | |
- | tmpfs 512 | + | |
- | / | + | |
- | </ | + | |
- | + | ||
- | ===== DLNA メディアサーバー ===== | + | |
- | + | ||
- | ==== パッケージインストール ==== | + | |
- | < | + | |
- | # opkg update | + | |
- | # opkg install minidlna | + | |
- | # opkg install luci-app-minidlna | + | |
- | </ | + | |
===== 参考文献 ===== | ===== 参考文献 ===== |