ユーザ用ツール

サイト用ツール


openwrt:install-usb-hdd

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
openwrt:install-usb-hdd [2013/11/20 23:24] – [USB HDD をマウント] adminopenwrt:install-usb-hdd [2013/11/20 23:48] (現在) – [Fstab の設定] admin
行 98: 行 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]]
行 116: 行 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>
  
行 155: 行 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.1384957465.txt.gz · 最終更新: 2013/11/20 23:24 by admin