はじめての自宅サーバ構築 - Fedora/CentOS - Last Update 2008/07/25
It opened to 2004/09/19.
当サイトはFedora9で運用しています
Visitors
Pageviews
Today(IP/PV)
3,374,115
12,762,075
1,273/8,697

■ TIPS集『システム』

 Windowsの共有フォルダをマウントする。(その2)

『Windowsの共有フォルダをマウントする。(その1)』でマウントした場合はファイル名が文字化けを起こしてしまいます。
これを解消するには、以下のオプションを付加すれば正常に表示する様になります。


サーバ側にマウントパスを作成
# mkdir /mnt/windows

Windowsの共有フォルダをマウント(読み書き可)
# mount -t smbfs -o username=linux //192.168.1.100/win_share,iocharset=euc-jp,codepage=cp932 /mnt/windows/

Password:<パスワード>

マウントされたファイル一覧表示
# ls -l /mnt/windows/
合計 1
-rwxr-xr-x 1 root root 23 3月 30 11:35 漢字.txt

マウント解除
# umount /mnt/windows/


※:注意
ファイルの中身の全角コードは作成側のシステムコードに依存します。
Windows → Shift-JIS
サーバ  → EUC(当方、サーバをEUCにしている為)
ページ先頭へ

Copyright(©)2004-2008 First home server construction. All Right Reserved.