ユーザ用ツール

サイト用ツール


openwrt:install-usb-hdd

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
openwrt:install-usb-hdd [2013/11/20 23:20] – [USB のドライバをインストール] adminopenwrt:install-usb-hdd [2013/11/20 23:48] (現在) – [Fstab の設定] admin
行 36: 行 36:
 USB HDD は接続した状態で作業した。 USB HDD は接続した状態で作業した。
  
 +<code>
 +# opkg update
 +</code>
 <code> <code>
 # 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://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/kmod-usb-storage_3.3.8-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/kmod-usb-storage_3.3.8-1_ar71xx.ipk.
 Installing kmod-scsi-core (3.3.8-1) to root... Installing kmod-scsi-core (3.3.8-1) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/kmod-scsi-core_3.3.8-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/kmod-scsi-core_3.3.8-1_ar71xx.ipk.
 Installing block-mount (0.2.0-9) to root... Installing block-mount (0.2.0-9) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/block-mount_0.2.0-9_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/block-mount_0.2.0-9_ar71xx.ipk.
 Installing blkid (2.21.2-1) to root... Installing blkid (2.21.2-1) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/blkid_2.21.2-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/blkid_2.21.2-1_ar71xx.ipk.
 Installing libblkid (2.21.2-1) to root... Installing libblkid (2.21.2-1) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/libblkid_2.21.2-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/libblkid_2.21.2-1_ar71xx.ipk.
 Installing libuuid (2.21.2-1) to root... Installing libuuid (2.21.2-1) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/libuuid_2.21.2-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/libuuid_2.21.2-1_ar71xx.ipk.
 Installing swap-utils (2.21.2-1) to root... Installing swap-utils (2.21.2-1) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/swap-utils_2.21.2-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/swap-utils_2.21.2-1_ar71xx.ipk.
 Installing kmod-fs-ext4 (3.3.8-1) to root... Installing kmod-fs-ext4 (3.3.8-1) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/kmod-fs-ext4_3.3.8-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/kmod-fs-ext4_3.3.8-1_ar71xx.ipk.
 Installing kmod-lib-crc16 (3.3.8-1) to root... Installing kmod-lib-crc16 (3.3.8-1) to root...
-Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/packages/kmod-lib-crc16_3.3.8-1_ar71xx.ipk.+Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/kmod-lib-crc16_3.3.8-1_ar71xx.ipk.
 Configuring kmod-scsi-core. Configuring kmod-scsi-core.
 Configuring kmod-usb-storage. Configuring kmod-usb-storage.
行 70: 行 73:
  
 <code> <code>
-root@OpenWrt:~# ls /dev/ +# ls /dev/sd* 
-bus        mtd1ro     mtd6       mtdblock1  null       ttyS1      ttyS4 +ls: /dev/sd*: No such file or directory
-console    mtd2       mtd6ro     mtdblock2  port       ttyS10     ttyS5 +
-full       mtd2ro     mtd7       mtdblock3  ppp        ttyS11     ttyS6 +
-kmsg       mtd3       mtd7ro     mtdblock4  ptmx       ttyS12     ttyS7 +
-log        mtd3ro     mtd8       mtdblock5  pts        ttyS13     ttyS8 +
-mem        mtd4       mtd8ro     mtdblock6  random     ttyS14     ttyS9 +
-mtd0       mtd4ro     mtd9       mtdblock7  shm        ttyS15     urandom +
-mtd0ro     mtd5       mtd9ro     mtdblock8  tty        ttyS2      watchdog +
-mtd1       mtd5ro     mtdblock0  mtdblock9  ttyS0      ttyS3      zero+
 </code> </code>
  
行 86: 行 81:
  
 <code> <code>
-bsg        mtd1ro     mtd6ro     mtdblock3  ptmx       ttyS11     ttyS7 +# ls /dev/sd* 
-bus        mtd2       mtd7       mtdblock4  pts        ttyS12     ttyS8 +/dev/sda   /dev/sda1
-console    mtd2ro     mtd7ro     mtdblock5  random     ttyS13     ttyS9 +
-full       mtd3       mtd8       mtdblock6  sda        ttyS14     urandom +
-kmsg       mtd3ro     mtd8ro     mtdblock7  sda1       ttyS15     watchdog +
-log        mtd4       mtd9       mtdblock8  shm        ttyS2      zero +
-mem        mtd4ro     mtd9ro     mtdblock9  tty        ttyS3 +
-mtd0       mtd5       mtdblock0  null       ttyS0      ttyS4 +
-mtd0ro     mtd5ro     mtdblock1  port       ttyS1      ttyS5 +
-mtd1       mtd6       mtdblock2  ppp        ttyS10     ttyS6+
 </code> </code>
  
行 106: 行 93:
 # mount -t ext4 /dev/sda1 /mnt/usb-disk/ -o rw,sync # mount -t ext4 /dev/sda1 /mnt/usb-disk/ -o rw,sync
 </code> </code>
- 
 ===== Fstab の設定 ===== ===== Fstab の設定 =====
  
行 112: 行 98:
  
   * sda1: メインパーティション。Samba や Netatalk で使う予定。   * sda1: メインパーティション。Samba や Netatalk で使う予定。
-  * sda2: スワップパーティション。 
  
 fstab が ubuntu とは違うみたい。[[http://wiki.openwrt.org/doc/uci/fstab|Fstab Configuration]] fstab が ubuntu とは違うみたい。[[http://wiki.openwrt.org/doc/uci/fstab|Fstab Configuration]]
行 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   /mnt/usb-disk +        option target   /mnt/usb-disk
         option uuid     xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx         option uuid     xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
         option fstype   ext4         option fstype   ext4
-        option options  rw,user_xattr,errors=remount-ro    +        option options  rw,user_xattr,errors=remount-ro 
-        option enabled +        option enabled  1
         option enabled_fsck 0         option enabled_fsck 0
  
 config swap config swap
         option device   /dev/sda2         option device   /dev/sda2
-        option enabled  +        option enabled  0
 </code> </code>
  
行 169: 行 155:
  
 <code> <code>
-root@OpenWrt:~# /etc/init.d/fstab enable +# /etc/init.d/fstab enable 
-root@OpenWrt:~# df +# /etc/init.d/fstab start 
-Filesystem           1K-blocks      Used Available Use% Mounted on +# df
-rootfs                   29440      1232     28208   4% / +
-/dev/root                 2048      2048         0 100% /rom +
-tmpfs                    63344        96     63248   0% /tmp +
-tmpfs                      512               512   0% /dev +
-/dev/mtdblock7           29440      1232     28208   4% /overlay +
-overlayfs:/overlay       29440      1232     28208   4% / +
-root@OpenWrt:~# /etc/init.d/fstab start +
-root@OpenWrt:~# df+
 Filesystem           1K-blocks      Used Available Use% Mounted on Filesystem           1K-blocks      Used Available Use% Mounted on
-rootfs                   29440      1232     28208   4% /+rootfs                   29440      1220     28220   4% /
 /dev/root                 2048      2048         0 100% /rom /dev/root                 2048      2048         0 100% /rom
-tmpfs                    63344        96     63248   0% /tmp+tmpfs                    63340       400     62940   1% /tmp
 tmpfs                      512               512   0% /dev tmpfs                      512               512   0% /dev
-/dev/mtdblock7           29440      1232     28208   4% /overlay +/dev/mtdblock7           29440      1220     28220   4% /overlay 
-overlayfs:/overlay       29440      1232     28208   4% / +overlayfs:/overlay       29440      1220     28220   4% / 
-/dev/sda1            974737648  14541308 911410728   2% /mnt/usb-disk+/dev/sda1            975786224 210258140 716690044  23% /mnt/usb-disk
 </code> </code>
openwrt/install-usb-hdd.1384957206.txt.gz · 最終更新: 2013/11/20 23:20 by admin