mounted directory repeating unexpected files and directories
Hi Samba List,
I am finding a strange problem between a mount samba directory. Any
clues why this is happening?
The server side is WD MyBook World Edition II and the export directory
is: /shares/internal/Music/
on the client site I am mounting the directory to /mnt/mybook-music
the client is an ubuntu server
$ uname -a
Linux tsunami 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686
GNU/Linux
$ mount
/dev/sdb1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-22-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
//192.168.1.20/Music on /mnt/mybook-music type cifs (rw,mand)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
Now here is the issue.
The directory views for a particular directory are not the same on
server vs. the client side.
From the client side I do an 'ls -l /mnt/mybook-music/Madonna/Music |
wc -l' see that the output equals the line could of 'mnt/mybook-music'
$ ls -l /mnt/mybook-music/Madonna/Music | wc -l
2242
$ ls -l /mnt/mybook-music | wc -l
2242
now on the server side
# ls -l /shares/internal/Music/Madonna/Music | wc -l
4
[root@MyBookMusic Madonna]# ls -l /shares/internal/Music | wc -l
2242
The client sees all the files that are displayed from 'ls
/mnt/mybook-music' command and also displayed from an 'ls
/mnt/mybook-music/Madonna/Music' command.
where on the server side 'ls -l /shares/internal/Music/Madonna/Music'
does not show the contents of '/shares/internal/Music' and only show 3
files.
# ls -l /shares/internal/Music/Madonna/Music
total 11396
-rwxr-xr-x 1 noah noah 3345473 Apr 11 2006 Gone.mp3
-rwxr-xr-x 1 noah noah 3483214 May 3 2005 Impressive Instant.mp3
-rwxr-xr-x 1 noah noah 4814848 May 3 2005 Nobody's Perfect.mp3
server side version details:
[root@MyBookMusic Madonna]# ipkg list_installed | grep samba
samba - 3.2.4-1 - Samba suite provides file and print services to
SMB/CIFS clients.
client version details:
$ dpkg --list | grep samba
ii samba 3.0.28a-1ubuntu4.7
a LanManager-like file and printer server
for Unix
ii samba-common 3.0.28a-1ubuntu4.7
Samba common files used by both the server
and the clien
the client mounted //192.168.1.20/Music from the fstab.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-13-2008, 11:25 PM
Noah
mounted directory repeating unexpected files and directories
Hi Samba List,
I am finding a strange problem between a mount samba directory. Any
clues why this is happening?
The server side is WD MyBook World Edition II and the export directory
is: /shares/internal/Music/
on the client site I am mounting the directory to /mnt/mybook-music
the client is an ubuntu server
$ uname -a
Linux tsunami 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686
GNU/Linux
$ mount
/dev/sdb1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-22-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
//192.168.1.20/Music on /mnt/mybook-music type cifs (rw,mand)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
Now here is the issue.
The directory views for a particular directory are not the same on
server vs. the client side.
From the client side I do an 'ls -l /mnt/mybook-music/Madonna/Music |
wc -l' see that the output equals the line could of 'mnt/mybook-music'
$ ls -l /mnt/mybook-music/Madonna/Music | wc -l
2242
$ ls -l /mnt/mybook-music | wc -l
2242
now on the server side
# ls -l /shares/internal/Music/Madonna/Music | wc -l
4
[root@MyBookMusic Madonna]# ls -l /shares/internal/Music | wc -l
2242
The client sees all the files that are displayed from 'ls
/mnt/mybook-music' command and also displayed from an 'ls
/mnt/mybook-music/Madonna/Music' command.
where on the server side 'ls -l /shares/internal/Music/Madonna/Music'
does not show the contents of '/shares/internal/Music' and only show 3
files.
# ls -l /shares/internal/Music/Madonna/Music
total 11396
-rwxr-xr-x 1 noah noah 3345473 Apr 11 2006 Gone.mp3
-rwxr-xr-x 1 noah noah 3483214 May 3 2005 Impressive Instant.mp3
-rwxr-xr-x 1 noah noah 4814848 May 3 2005 Nobody's Perfect.mp3
server side version details:
[root@MyBookMusic Madonna]# ipkg list_installed | grep samba
samba - 3.2.4-1 - Samba suite provides file and print services to
SMB/CIFS clients.
client version details:
$ dpkg --list | grep samba
ii samba 3.0.28a-1ubuntu4.7
a LanManager-like file and printer server
for Unix
ii samba-common 3.0.28a-1ubuntu4.7
Samba common files used by both the server
and the clien
the client mounted //192.168.1.20/Music from the fstab.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-14-2008, 10:46 PM
Noah
mounted directory repeating unexpected files and directories
Hi Samba List,
I am finding a strange problem between a mount samba directory. Any
clues why this is happening?
The server side is WD MyBook World Edition II and the export directory
is: /shares/internal/Music/
on the client site I am mounting the directory to /mnt/mybook-music
the client is an ubuntu server
$ uname -a
Linux tsunami 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686
GNU/Linux
$ mount
/dev/sdb1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-22-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
//192.168.1.20/Music on /mnt/mybook-music type cifs (rw,mand)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
Now here is the issue.
The directory views for a particular directory are not the same on
server vs. the client side.
From the client side I do an 'ls -l /mnt/mybook-music/Madonna/Music |
wc -l' see that the output equals the line could of 'mnt/mybook-music'
$ ls -l /mnt/mybook-music/Madonna/Music | wc -l
2242
$ ls -l /mnt/mybook-music | wc -l
2242
now on the server side
# ls -l /shares/internal/Music/Madonna/Music | wc -l
4
[root@MyBookMusic Madonna]# ls -l /shares/internal/Music | wc -l
2242
The client sees all the files that are displayed from 'ls
/mnt/mybook-music' command and also displayed from an 'ls
/mnt/mybook-music/Madonna/Music' command.
where on the server side 'ls -l /shares/internal/Music/Madonna/Music'
does not show the contents of '/shares/internal/Music' and only show 3
files.
# ls -l /shares/internal/Music/Madonna/Music
total 11396
-rwxr-xr-x 1 noah noah 3345473 Apr 11 2006 Gone.mp3
-rwxr-xr-x 1 noah noah 3483214 May 3 2005 Impressive Instant.mp3
-rwxr-xr-x 1 noah noah 4814848 May 3 2005 Nobody's Perfect.mp3
server side version details:
[root@MyBookMusic Madonna]# ipkg list_installed | grep samba
samba - 3.2.4-1 - Samba suite provides file and print services to
SMB/CIFS clients.
client version details:
$ dpkg --list | grep samba
ii samba 3.0.28a-1ubuntu4.7
a LanManager-like file and printer server
for Unix
ii samba-common 3.0.28a-1ubuntu4.7
Samba common files used by both the server
and the clien
the client mounted //192.168.1.20/Music from the fstab.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-14-2008, 11:47 PM
NoOp
mounted directory repeating unexpected files and directories
On 12/14/2008 03:46 PM, Noah wrote:
> Hi Samba List,
Nit: This is the Ubuntu User's list
(https://lists.ubuntu.com/mailman/listinfo/ubuntu-users) not 'Samba
List'. :-)
Just to let you know; your posts _are_ making it to this list. Reposting
every day won't make much difference. The only way you'll get a response
is if someone knows enough about the problem to reply and assist.
You've posted good details, so hopefully someone that understands your
issue will respond.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-15-2008, 02:10 AM
Rashkae
mounted directory repeating unexpected files and directories
I doubt this is your problem, but you should be using cifs instead of
smbfs. smbfs is depricated.
This is a stab in the dark, but make certain that Madona/ does not
contain a symlink "music" (or any other variation of Music with
different case) that points to ../
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-15-2008, 02:22 AM
NoOp
mounted directory repeating unexpected files and directories
On 12/14/2008 07:10 PM, Rashkae wrote:
> Noah wrote:
>
>> //192.168.1.20/Music /mnt/mybook-music smbfs
>> userid=<username>,passwd=<password>,rw 0 0
>>
>>
>
> I doubt this is your problem, but you should be using cifs instead of
> smbfs. smbfs is depricated.
seems to indicate that it is supported. Works for me on hardy &
intrepid. Am I missing something? (note: not sarcastic question).
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-15-2008, 02:43 AM
Rashkae
mounted directory repeating unexpected files and directories
NoOp wrote:
> On 12/14/2008 07:10 PM, Rashkae wrote:
>> Noah wrote:
>>
>>> //192.168.1.20/Music /mnt/mybook-music smbfs
>>> userid=<username>,passwd=<password>,rw 0 0
>>>
>>>
>> I doubt this is your problem, but you should be using cifs instead of
>> smbfs. smbfs is depricated.
>
> Interesting...
>
> http://packages.ubuntu.com/search?searchon=names&keywords=+smbfs
>
> seems to indicate that it is supported. Works for me on hardy &
> intrepid. Am I missing something? (note: not sarcastic question).
>
>
The new kernel module is cifs. smbfs was left in there because it was
needed to connect to old file servers (such as Windows for Workgroups).
I think cifs works for that now as well, but don't quote me on that.
smbfs package is still needed, but your fstab should be mounding cifs
where possible. The most immediate difference you will notice, smbfs
does not support files > 2GB, wheras cifs does.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-15-2008, 01:04 PM
Noah
mounted directory repeating unexpected files and directories
Hi Samba List,
I am finding a strange problem between a mount samba directory. Any
clues why this is happening?
The server side is WD MyBook World Edition II and the export directory
is: /shares/internal/Music/
on the client site I am mounting the directory to /mnt/mybook-music
the client is an ubuntu server
$ uname -a
Linux tsunami 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686
GNU/Linux
$ mount
/dev/sdb1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-22-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
//192.168.1.20/Music on /mnt/mybook-music type cifs (rw,mand)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
Now here is the issue.
The directory views for a particular directory are not the same on
server vs. the client side.
From the client side I do an 'ls -l /mnt/mybook-music/Madonna/Music |
wc -l' see that the output equals the line could of 'mnt/mybook-music'
$ ls -l /mnt/mybook-music/Madonna/Music | wc -l
2242
$ ls -l /mnt/mybook-music | wc -l
2242
now on the server side
# ls -l /shares/internal/Music/Madonna/Music | wc -l
4
[root@MyBookMusic Madonna]# ls -l /shares/internal/Music | wc -l
2242
The client sees all the files that are displayed from 'ls
/mnt/mybook-music' command and also displayed from an 'ls
/mnt/mybook-music/Madonna/Music' command.
where on the server side 'ls -l /shares/internal/Music/Madonna/Music'
does not show the contents of '/shares/internal/Music' and only show 3
files.
# ls -l /shares/internal/Music/Madonna/Music
total 11396
-rwxr-xr-x 1 noah noah 3345473 Apr 11 2006 Gone.mp3
-rwxr-xr-x 1 noah noah 3483214 May 3 2005 Impressive Instant.mp3
-rwxr-xr-x 1 noah noah 4814848 May 3 2005 Nobody's Perfect.mp3
server side version details:
[root@MyBookMusic Madonna]# ipkg list_installed | grep samba
samba - 3.2.4-1 - Samba suite provides file and print services to
SMB/CIFS clients.
client version details:
$ dpkg --list | grep samba
ii samba 3.0.28a-1ubuntu4.7
a LanManager-like file and printer server
for Unix
ii samba-common 3.0.28a-1ubuntu4.7
Samba common files used by both the server
and the clien
the client mounted //192.168.1.20/Music from the fstab.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-15-2008, 02:40 PM
Noah
mounted directory repeating unexpected files and directories
Rashkae wrote:
> Noah wrote:
>
>> //192.168.1.20/Music /mnt/mybook-music smbfs
>> userid=<username>,passwd=<password>,rw 0 0
>>
>>
>
> I doubt this is your problem, but you should be using cifs instead of
> smbfs. smbfs is depricated.
>
> This is a stab in the dark, but make certain that Madona/ does not
> contain a symlink "music" (or any other variation of Music with
> different case) that points to ../
>
Thanks for responding. I wish it were that simple. I dont see anything
like sym links getting in the way here. I've opened a samba bug so
hopefully this issue gets looked at.
[noah@MyBookMusic Music]$ ls -ld /shares/internal/Music/Madonna
drwxr-xr-x 14 noah noah 4096 Apr 26 2005 /shares/internal/Music/Madonna
[noah@MyBookMusic Music]$ ls -ld /shares/internal/Music/Madonna/*
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/Bedtime Stories
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/Drowned World - Substitute for Love (Cd 1)
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/Immaculate Collection
drwxr-xr-x 2 noah noah 4096 Sep 12 2004
/shares/internal/Music/Madonna/Music
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/Music (Album Promo)
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/Ray of Light
drwxr-xr-x 2 noah noah 4096 Sep 9 2004
/shares/internal/Music/Madonna/Something to remember
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/Special DJ Remixes
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/The Immaculate Collection
drwxr-xr-x 2 noah noah 4096 Aug 31 2004
/shares/internal/Music/Madonna/The Spy Who Shagged Me
drwxr-xr-x 2 noah noah 4096 Sep 9 2004
/shares/internal/Music/Madonna/True Blue
drwxr-xr-x 2 noah noah 4096 Sep 9 2004
/shares/internal/Music/Madonna/Unknown Album
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
12-15-2008, 05:53 PM
NoOp
mounted directory repeating unexpected files and directories
On 12/14/2008 07:43 PM, Rashkae wrote:
>
> The new kernel module is cifs. smbfs was left in there because it was
> needed to connect to old file servers (such as Windows for Workgroups).
> I think cifs works for that now as well, but don't quote me on that.
>
> smbfs package is still needed, but your fstab should be mounding cifs
> where possible. The most immediate difference you will notice, smbfs
> does not support files > 2GB, wheras cifs does.
>
Thanks for the info. Found:
http://samba.org/samba/smbfs/
http://linux-cifs.samba.org/
G.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users