openwrt:install-usb-hdd
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| openwrt:install-usb-hdd [2013/08/20 12:01] – admin | openwrt:install-usb-hdd [2013/11/20 23:48] (現在) – [Fstab の設定] admin | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== USB HDD をインストール ====== | ====== USB HDD をインストール ====== | ||
| - | * OpenWrt: ATTITUDE ADJUSTMENT (12.09-rc1, r34185) | + | * OpenWrt: ATTITUDE ADJUSTMENT (12.09, |
| ===== 作業内容 ===== | ===== 作業内容 ===== | ||
| 行 19: | 行 20: | ||
| < | < | ||
| # lsmod | grep " | # lsmod | grep " | ||
| - | uhci_hcd | ||
| ohci_hcd | ohci_hcd | ||
| ledtrig_usbdev | ledtrig_usbdev | ||
| ehci_hcd | ehci_hcd | ||
| - | usbcore | + | usbcore |
| usb_common | usb_common | ||
| nls_base | nls_base | ||
| 行 36: | 行 36: | ||
| USB HDD は接続した状態で作業した。 | USB HDD は接続した状態で作業した。 | ||
| + | < | ||
| + | # opkg update | ||
| + | </ | ||
| < | < | ||
| # opkg install kmod-usb-storage block-mount kmod-fs-ext4 | # opkg install kmod-usb-storage block-mount kmod-fs-ext4 | ||
| Installing kmod-usb-storage (3.3.8-1) to root... | Installing kmod-usb-storage (3.3.8-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing kmod-scsi-core (3.3.8-1) to root... | Installing kmod-scsi-core (3.3.8-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing block-mount (0.2.0-9) to root... | Installing block-mount (0.2.0-9) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing blkid (2.21.2-1) to root... | Installing blkid (2.21.2-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing libblkid (2.21.2-1) to root... | Installing libblkid (2.21.2-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing libuuid (2.21.2-1) to root... | Installing libuuid (2.21.2-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing swap-utils (2.21.2-1) to root... | Installing swap-utils (2.21.2-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing kmod-fs-ext4 (3.3.8-1) to root... | Installing kmod-fs-ext4 (3.3.8-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Installing kmod-lib-crc16 (3.3.8-1) to root... | Installing kmod-lib-crc16 (3.3.8-1) to root... | ||
| - | Downloading http:// | + | Downloading http:// |
| Configuring kmod-scsi-core. | Configuring kmod-scsi-core. | ||
| Configuring kmod-usb-storage. | Configuring kmod-usb-storage. | ||
| 行 70: | 行 73: | ||
| < | < | ||
| - | root@OpenWrt: | + | # ls /dev/sd* |
| - | bus mtd1ro | + | ls: /dev/sd*: No such file or directory |
| - | console | + | |
| - | full | + | |
| - | kmsg | + | |
| - | log mtd3ro | + | |
| - | mem mtd4 | + | |
| - | mtd0 | + | |
| - | mtd0ro | + | |
| - | mtd1 | + | |
| </ | </ | ||
| 行 86: | 行 81: | ||
| < | < | ||
| - | bsg mtd1ro | + | # ls /dev/sd* |
| - | bus mtd2 | + | /dev/sda /dev/sda1 |
| - | console | + | |
| - | full | + | |
| - | kmsg | + | |
| - | log mtd4 | + | |
| - | mem mtd4ro | + | |
| - | mtd0 | + | |
| - | mtd0ro | + | |
| - | mtd1 | + | |
| </ | </ | ||
| 行 104: | 行 91: | ||
| < | < | ||
| # mkdir -p / | # mkdir -p / | ||
| - | # mount -t ext4 /dev/sda1 /mnt/usb-sidk/ -o rw,sync | + | # mount -t ext4 /dev/sda1 /mnt/usb-disk/ -o rw,sync |
| </ | </ | ||
| - | |||
| ===== Fstab の設定 ===== | ===== Fstab の設定 ===== | ||
| 行 112: | 行 98: | ||
| * sda1: メインパーティション。Samba や Netatalk で使う予定。 | * sda1: メインパーティション。Samba や Netatalk で使う予定。 | ||
| - | * sda2: スワップパーティション。 | ||
| fstab が ubuntu とは違うみたい。[[http:// | fstab が ubuntu とは違うみたい。[[http:// | ||
| 行 130: | 行 115: | ||
| config global autoswap | config global autoswap | ||
| + | | ||
| option from_fstab 1 | option from_fstab 1 | ||
| option anon_swap 0 | option anon_swap 0 | ||
| config mount | config mount | ||
| - | option target | + | option target |
| option uuid | option uuid | ||
| option fstype | option fstype | ||
| - | option options | + | option options |
| - | option enabled | + | option enabled |
| option enabled_fsck 0 | option enabled_fsck 0 | ||
| config swap | config swap | ||
| option device | option device | ||
| - | option enabled | + | option enabled |
| </ | </ | ||
| 行 169: | 行 155: | ||
| < | < | ||
| - | root@OpenWrt: | + | # / |
| - | root@OpenWrt: | + | # / |
| - | Filesystem | + | # df |
| - | rootfs | + | |
| - | / | + | |
| - | tmpfs 63344 96 | + | |
| - | tmpfs 512 | + | |
| - | / | + | |
| - | overlayfs:/ | + | |
| - | root@OpenWrt: | + | |
| - | root@OpenWrt: | + | |
| Filesystem | Filesystem | ||
| - | rootfs | + | rootfs |
| / | / | ||
| - | tmpfs | + | tmpfs |
| tmpfs 512 | tmpfs 512 | ||
| - | / | + | / |
| - | overlayfs:/ | + | overlayfs:/ |
| - | / | + | / |
| </ | </ | ||
openwrt/install-usb-hdd.1376967701.txt.gz · 最終更新: 2013/08/20 12:01 by admin
