まず /etc/fstab でデバイスのマウント状態を確認してみる。

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options>                            <dump>  <pass>
/dev/hda1       /             ext3   defaults,noatime,errors=remount-ro   0       1
proc            /proc         proc   defaults                             0       0
/dev/hda2       swap          swap   defaults                             0       0
/dev/hda3       /mnt/hda      ext3   defaults,noatime                     0       0

ハードディスクは三つのパーティションに分かれており、hda1 がシステム領域、hda2 がスワップ領域、hda3 がデータ領域として使われている。/mnt ディレクトリの構成は以下の通り。

drwxr-xr-x    6 root     root         4096 Aug  4 13:29 hda
drwxrwxrwx    4 root     root         1024 Jan  1  2002 info
drwxr-xr-x    5 root     root         1024 Aug 24 17:26 ram
drwxr-xr-x    2 root     root         1024 Jun 18  2004 usbdisk1
drwxr-xr-x    2 root     root         1024 Jun 18  2004 usbdisk2
drwxr-xr-x    2 root     root         1024 Jan  1  2002 usbinfo

hda 以外にもいくつかのマウントポイントが存在するようだ。さらに hda ディレクトリの構成を確認。

drwx------    2 root     root        16384 Jan  1  2002 lost+found
drwxrwxrwx    7 root     root         4096 Aug 24 17:39 share
drwxrwxrwx    2 root     root         4096 Jan  1  2002 share-mac
drwxrwxrwx    6 root     root         4096 Jan  1  2002 spool

続いて /etc/samba/smb.conf でファイル共有の確認をしてみる(抜粋)。

[lp]
   comment = Network Printer for [[Windows]]
   path = /mnt/hda/spool/samba
   print command = /usr/bin/lpr -Plp -r %s
   printer admin = root
   browsable = yes
   printable = yes
   public = yes
[info]
   comment = [[LinkStation]] information
   path = /mnt/info
   browsable = yes
   printable = no
   writable = no
   guest ok = yes
[share-mac]
   comment = LinkStation Mac Share Folder
   path = /mnt/hda/share-mac
   browsable = yes
   printable = no
   writable = yes
   guest ok = yes
   force create mode = 666
   force directory mode = 777
[share]
   comment = LinkStation Share Folder
   path = /mnt/hda/share
   browsable = yes
   printable = no
   writable = yes
   guest ok = yes
   force create mode = 666
   force directory mode = 777
   vfs object = /usr/lib/samba/recycle.so
   vfs options = /etc/samba/recycle.conf

ちなみに Samba のバージョンは

Version 2.2.8a-ja-1.1

であった。
最終更新:2008年08月24日 20:49