*リモートファイルシステムの起動時のマウント [#x8b9b448]

メッセージ

現状 rc.S,rc.M を見ると,リモートファイルシステムについて NFS のみ考慮されているような気がしますが,cifs も入れませんか?

こんな感じ?

--- rc.S.old	2008-10-02 14:46:14.000000000 +0900
+++ rc.S	2008-10-02 14:49:10.000000000 +0900
@@ -258,7 +258,7 @@
 # Mount local filesystems in fstab.
 # But not NFS because TCP/IP is not yet configured.
 echo "Mounting local filesystems..."
-/sbin/mount -avt nonfs,proc,sysfs,tmpfs
+/sbin/mount -avt nonfs,proc,sysfs,tmpfs,nocifs
 if grep -q usbfs /proc/filesystems && ! grep -q usbfs /etc/mtab; then
     mount -t usbfs usbfs /proc/bus/usb
     sleep 3
--- rc.M.old	2008-10-02 14:49:17.000000000 +0900
+++ rc.M	2008-10-02 14:49:48.000000000 +0900
@@ -141,9 +141,13 @@
 
 # Mount remote filesystems in fstab.
 if [ -n "`/sbin/mount -anfv -t nfs 2> /dev/null`" ]; then
-    echo "Mounting remote file systems..."
+    echo "Mounting nfs file systems..."
     /sbin/mount -a -t nfs
 fi
+if [ -n "`/sbin/mount -anfv -t cifs 2> /dev/null`" ]; then
+    echo "Mounting cifs file systems..."
+    /sbin/mount -a -t cifs,smbfs
+fi
 
 # Start automounter.
 if [ -x /etc/rc.d/rc.autofs ]; then



トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-12-17 (金) 16:35:44