DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-05-12 01:26:22

kennyams
Member
Registered: 2007-05-12
Posts: 8

directorys with more than 128 files dont show when mounted under linux

Hi,

I have this problem under both ubuntu and fedora.

I can mount the dns 323 drives onto a mount point on the host computer and see all the directory and normally see the files as expected. If a directory contains more than about 128 files then the directory comes up as having no files.

Has anyone else seen this problem. and does anyone know if the problem is fixed in the latest firmware.

The odd thing is that if I brows via the network server I don't have the problem.
Does anyone else on here use linux as the host computer.

Cheers
Ken

Offline

 

#2 2007-05-28 15:09:53

kennyams
Member
Registered: 2007-05-12
Posts: 8

Re: directorys with more than 128 files dont show when mounted under linux

I have now upgraded to version 1.03 of the firmware but still have had no luck.

Does anyone else round here use a linux host and do they have problems.

Thanks
Ken

Offline

 

#3 2007-05-28 15:33:14

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: directorys with more than 128 files dont show when mounted under linux

kennyams wrote:

I can mount the dns 323 drives onto a mount point on the host computer and see all the directory and normally see the files as expected. If a directory contains more than about 128 files then the directory comes up as having no files.

Has anyone else seen this problem. and does anyone know if the problem is fixed in the latest firmware.

The odd thing is that if I brows via the network server I don't have the problem.

Works fine here, via both smbfs and nfs. (Tested with a directory with more than 4500 files).

Offline

 

#4 2007-05-31 00:33:31

kennyams
Member
Registered: 2007-05-12
Posts: 8

Re: directorys with more than 128 files dont show when mounted under linux

Hi Fonz,
Thanks for the reply. I have the problem on both fedora core 6 and ubuntu.

Could you let me know what your disto and distro version is?

Thanks
Ken

Offline

 

#5 2007-05-31 00:35:49

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: directorys with more than 128 files dont show when mounted under linux

slackware-current, but i dont think that actually matters...

how are you mounting the drives?

Offline

 

#6 2007-06-06 19:49:42

kennyams
Member
Registered: 2007-05-12
Posts: 8

Re: directorys with more than 128 files dont show when mounted under linux

Hi Fonz,

Sorry for the late reply, been away.

I use the following line in the fstab file.
//192.168.1.2/HDD_1/home/ken    /mnt/dns323/home/ken    cifs    user=ken,password=xxxxxx,uid=ken,gid=users

Cheers
Ken

Offline

 

#7 2007-06-06 21:23:08

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: directorys with more than 128 files dont show when mounted under linux

have you tried smbfs instead of cifs? never really tried cifs. you could also try nfs.

Offline

 

#8 2007-06-06 21:35:06

kennyams
Member
Registered: 2007-05-12
Posts: 8

Re: directorys with more than 128 files dont show when mounted under linux

I tried but if I remember correctly there was a problem in Fedora.
Could you post what your fstab line is.

Thanks
Ken

Offline

 

#9 2007-06-06 21:49:02

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: directorys with more than 128 files dont show when mounted under linux

Code:

//10.12.11.5/Volume_1  /home/tp/bob1  smbfs  defaults,noauto,user,exec,rw  0  0
10.12.11.5:/mnt/HD_a2  /mnt/bob1      nfs  defaults,noauto,user,exec,rw,rsize=16384,wsize=16384  0  0

Are you still using firmware 1.01? HDD_1 is the old name. It's called Volume_1 since firmware 1.02.

Last edited by fonz (2007-06-06 21:50:23)

Offline

 

#10 2007-06-06 22:43:58

kennyams
Member
Registered: 2007-05-12
Posts: 8

Re: directorys with more than 128 files dont show when mounted under linux

Hi,
Thanks for the code.
I have Version 1.03
I tried Volume_1 and it is still the same. Not sure why the old HDD_1 was working.

I also tried the nfs line but this threw out a connection error. Do you need to install nfs on the dns323 to make this work?

I also tried the smbfs line but Fedora does not recognize it.
I will try on my Ubuntu laptop later to see if it works on there.


Thanks for your help, if you can think of anything else, please let me now.
Is there anyone out there that has got this to work on Fedora or with cifs.
Thanks
Ken

Offline

 

#11 2007-06-06 22:59:54

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: directorys with more than 128 files dont show when mounted under linux

kennyams wrote:

I also tried the nfs line but this threw out a connection error. Do you need to install nfs on the dns323 to make this work?

Yes, you need to start the nfs server:

Code:

sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh

It will create a default exports file for you that should work unless you have only a single volume. In that case you need to remove the last line (/mnt/HD_b2) from fun_plug.d/etc/exports and restart the nfs server:

Code:

cd /mnt/HD_a2/fun_plug.d/etc
head -n2 exports >exports.new
mv exports.new exports
killall unfsd
sh ../start/unfsd.sh

Offline

 

#12 2007-06-06 23:29:40

kennyams
Member
Registered: 2007-05-12
Posts: 8

Re: directorys with more than 128 files dont show when mounted under linux

this line seems to work under Ubuntu

//192.168.1.2/pictures  /mnt/dns323/pictures    smbfs defaults,lfs,noauto,uid=ken,gid=users,credentials=/root/.smbcredentials

Not sure why it does not need the Volume_1, it is also the line that I have been using for a while now so I guess that the upgrade of firmware to 1.03 did the trick.

I will attempt to do some things with the funplug another day.

Its seems that there is a problem with the cifs so I guess I should post a bug to the chaps at Fedora.

Cheers
Ken

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB