Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Does anyone have a version of Lenny compiled with nfs and ext3 support ready?
I tried the image_tools way, but it says:
# ./mkimage -f kernel.cfg -d zImage_noh zImage
-bash: ./mkimage: cannot execute binary file
BR, Pekka
Last edited by pekka (2009-12-15 09:53:08)
Offline
You must download image_tools.
http://www.msbd.de/image_tools.tgz
This method works, but there is one problem. Kerbel for RevA supports 32MB. RevB has 64MB. Must rebuild the kernel. It's easy. I can tell you how to do it.
Last edited by andry (2009-12-15 11:23:31)
Offline
Wow, an answer after just two hours!
Now, my goal is to get a system á la CharminBaer - a debian Lenny, but with kernel support for ext3 and nfs.
Please do tell me how to build my own kernel. Can I start with any kernel source from www.kernel.org?
I did download image_tools of course, but I just don't seem to be able to run mkimage for some reason.
Pekka
Last edited by pekka (2009-12-15 11:34:57)
Offline
CharminBaer's lenny поддерживает ext3. About NFS do not know.
Not need to download the kernel of kernel.org.
Need to download dlink toolchain:
http://tsd.dlink.com.tw/temp/download/3 … 080723.tgz
unpack dns313v1.01_GPL_20080723.tgz to ~
cd ~/Gmini_????/sourse/kernel/linux
make menuconfig
do not change anything, press exit, press save
make
your kernel will be located arch/arm/boot/zImage
cp ~/Gmini_????/sourse/kernel/linux/arch/arm/boot/zImage ~/zImage_noh
you should add to zImage header:
image_tools/mkimage -f image_tools/kernel_new.cfg -d zImage_noh zImage
copy new zImage and rd.gz rootfs.tgz from to sda/.boot your DNS
check load.
these paths may differ slightly, because I am writing from my memory.
If all is well, you can try to modify the kernel.
For load CharminBaer's lenny you need change "boot" options in kernel.
change /dev/ram0 to /dev/sda3 and change 32M to 64M.
It's work!
Do not add a lot of options simultaneously. add to queue with test load.
Another link to download the toolchain:
ftp://tsd.dlink.com.tw/dns313v1.01_GPL_20080723.tgz
Last edited by andry (2009-12-15 12:59:12)
Offline
I am back with a brand new lenny, but I face a problem with sharing.
My first target was to be able to share the directory in NFS.
I install with apt the nfs-user-server
I filled /etc/exports with the following line :
/mnt/HD_a2 192.168.1.3(rw)
I reboot and I am not able to mount my directory with the following command on the client :
sudo mount -t nfs 192.168.1.10:/mnt/HD_a2 /mnt/NAS/
Is there anybody to help me ?
Offline
Your kernel must have support NFS.
check this:
#dmesg | grep -i nfs
Offline
I have bought dns-313 rev b1 and a folder ./boot with kenel from original firmware ver. 2.0. As it it is possible patch for loading kernel with /dev/sda3 without kernel recompilation.
Offline
As it it is possible patch for loading kernel with /dev/sda3 without kernel recompilation.
It's hard to do without recompiling. You can try to change rd.gz for this.
I have a kernel with Ext3 and NFS for revB. My kernel has the option root=/dev/sda3 instead of root=/dev/ram0.
I also have empty rd.gz and rootfs.tgz.
I can upload my files, if necessary.
Offline
Andry, I installer nfs-user-server and not nfs-kernel-server, that don't need a specific kernel (as I understood).
I would like to avoid this solution wich is a problem for my backup solution in linux. It seems that it is a problem to work with rsync and cifs...
Otherwise, I did a test with samba, it works with a manual mount in ubuntu but not with the graphic tool.... strange !
Other issue, I have no writing right on my directory.
security = share and read nly = no ....
Last edited by usky (2009-12-22 20:32:23)
Offline
usky wrote:
I installer nfs-user-server and not nfs-kernel-server, that don't need a specific kernel (as I understood).
The site http://packages.debian.org/ written that the package nfs-user-server not supported. Recommended to use the package unfs3.
nfs-user-server does not support NFSv3. Your client can connect to the protocol NFSv3. Check it.
usky wrote:
...I did a test with samba... ...I have no writing right on my directory...
[ global ]
....
security = SHARE
....
[ Share ]
comment =
path = /mnt/HD_a2
valid users =
read only = no
guest ok = yes
oplocks = yes
map archive = yes
Offline
@usky, what about nfs-user-server: I've tried it and discover that it supports only NFS version 2 (as i remember, can't manage files bigger then 2gb and so on). For now i use UNFS3 server. It works faster, sable and supprts ver3. And for mounting from the client it needs to set nfs version manually. See mine mount string:
mount -t nfs 192.168.1.2:/data /media/NAS-nfs -o nfsvers=3
p.s. for nfs-user-server, you should change to "nfsvers=2"
Offline
@andry, what reading speed from your NAS (smb, nfs)?
Offline
@Trueman: I do not have home switch 1GB. I have 100Mb switch. So I can not try on the actual speed. When I finished my experiments, I will measure, by connecting the NAS to the computer.
Last edited by andry (2009-12-24 08:46:52)
Offline
Thank you both for your help.
Here is what I did :
- I installed Shebby debian
- I installed unfs3
- I did a mount form the client and it was OK.
I did a reboot
Here is the status now ...
- I am not able to connect anymore frome the client.
mount to NFS server '192.168.1.10:/home/laurent' failed: RPC Error: Program not registered
- when I do a : /etc/init.d/unfs3 restart
I have the following error message :
Restarting unfs3: bind: Address already in use
Couldn't bind to udp port 2049
I had a deep look on google but I did not found any answers ...
HELPPPPPP !!
Offline
usky wrote:
HELPPPPPP !!
see that uses this port:
#netstat -anp | grep 2049
Offline
here is the result :
udp 0 0 192.168.1.10:2049 192.168.1.1:5351 ESTABLISHED
Thank you for your help Andry
Just for your information :
192.168.1.10 is my DNS313
192.168.1.1 is the internet box & the router
Last edited by usky (2009-12-24 14:03:27)
Offline
@usky: Your NAS connected the gateway 192.168.1.1 with NAT-PMP protocol, before starting the NFS-server. This connect has taken local port 2049. Therefore, NFS-server failed to start. Reboot the NAS, possibly local port NAT-PMP connections will be different.
Last edited by andry (2009-12-24 14:19:51)
Offline
@andry, i also has 100mbs router (dir-320 with firmware from Oleg) and mine hd player is 100mb too. Mine speed about 3-5mbytes per second sbm/nas. Ftp speed is bigger. Sometimes, for large mkv that i watch from nas, network speed is not enough (lagging). So i am looking for solution about speed improvement not enough skills in linux but i am trying
Offline
Andry, I don't follow you on what to do, can you precise it ?
In an other hand I did many tests.
I found that before the install of mediatomb, everything is OK, after install this is the begining of the troubles...
Does it help ?
PS : I also have a strange trouble with mediatomb, it is not possible to choose a directory with the web interface ....
Last edited by usky (2009-12-24 17:18:23)
Offline
usky wrote:
I found that before the install of mediatomb, everything is OK, after install this is the begining of the troubles...
Make sure your NFS starts before eating mediatomb.
Use update-rc.d to remove and re-add the NFS-server before mediatomb.
Offline
In fact I had a look on the etc folder.
But in my ubuntu I have thoses folder with priority loadings like rc2.d, but it does not exist in this debian version.... Where are they ?
Your solution works great !!
I still don't know where is the directory but it works.
I did a :
update-rc.d -f unfs3 remove
update-rc.d -f mediatomb remove
update-rc.d unfs3 defaults 30
update-rc.d mediatomb defaults 60
reboot and it was OK.
Thanks a lot, I helps me to understand how the launching programs are managed on my ubuntu.
I am Happy ;-))
Last edited by usky (2009-12-25 20:22:43)
Offline
One more question .... but this is only to be perfect ;-)
The DNS313 has a directory mounted on the client.
When I copy a file from the client, the associated rights are 700 (rwx only for user).
I would like to have 755 as the default value. Can you tell me how to do ?
Offline
@usky, what the permissions for the folder on the dns-313 where you are placing your files? (mine main folder [/home what i mount] set to 777, and main copy/paste/move operations i made via secure ftp connections - faster in my case)?
Offline
All the home folder rights are 755 on the DNS313.
I created a new user (usky) in my case/
The share folder is then /home usky with 755 rights.
I don't know why, but it is ok now ....
Again thanks all for your help.
Last edited by usky (2009-12-26 17:51:31)
Offline
andry wrote:
image_tools/mkimage -f image_tools/kernel_new.cfg -d zImage_noh zImage
This command returns to me:
-bash: image_tools/mkimage: cannot execute binary file
What is wrong?
Offline