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 2008-05-13 01:51:35

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

F/W 1.05b28 Quirks

After upgrading from 1.04 to 1.05 I noticed a few interesting things.  (I'm not asking for help fixing anything, just reporting results of some tests I'm working on.)

1. I had 2 drives installed that were both set-up for RAID 1 (but originally part of 2 different arrays).  F/W 1.04 just ignored this and treated them each as separate drives.  F/W 1.05 loaded them as a degraded RAID 1 and would like to format them (the web utility).  Ignoring this (skip) it mounts drive 1 and not drive 0 in the array /dev/md0.  This is important as my fun_plug is on drive 0.  Also, important to note, all LEDs remained blue.

2. After removing drive 1 and rebooting, it again comes up with a degraded RAID 1 and blue LED.  The interesting thing here is that once I connect my external USB hard drive and enter the web admin tool, it comes up with RAID and format options for both drives, the internal and the USB.  I never was able to see the USB drive in version 1.04 (at the beginning of the web admin tool).

3. When attempting to install the bit-torrent client via the easy-search tool (first time I have ever even thought about using easy search), it makes what sounds like an attempt at installation (drive spins up and sounds of head movement), then stops with a message that the drive requires formatting.  This may be because of the degraded RAID 1.  I will play with this and get back. 

EDIT - 3. It appears that this is just the case.  After using mdadm to remove the superblock from the drive, the easy-search utility was able to install the bit-torrent client.  According to the system, though, it uses 66% of the memory when sitting idle.

Code:

 PID   PPID USER     STAT  VSZ  %MEM %CPU COMMAND
 1256  1254 root     S     6716  11%   0% ./bt --daemon-loop
 1250  1249 root     S     6716  11%   0% ./bt --daemon-loop
 1255  1254 root     S     6716  11%   0% ./bt --daemon-loop
 1257  1254 root     S     6716  11%   0% ./bt --daemon-loop
 1254  1250 root     S     6716  11%   0% ./bt --daemon-loop
 1310  1254 root     S     6716  11%   0% ./bt --daemon-loop

EDIT -

4. Once Bit-torrent client is installed, the bit-torrent directory is automatically shared as 'BT'.  In the web admin tool, there is no ability to edit or delete this share and it is available in read/write mode for all users.

5. Once bit-torrent is installed, drive 0 keeps waking up.  I would have to assume it is checking to see if there is anything there, or potentially an outside connection is trying to get a seed.  This was noticed after 1 download was completed and the torrent was removed in the web based client.  I will test this out some more.

6. To remove the bit-torrent software, simply delete the /mnt/HD_a2/Nas_Prog/BT directory.  After rebooting, the BT samba share will also go away.  Another point to note, the start_BT script in /usr/sbin also checks for the bit-torrent program on HD_b2, so if drives are swapped around, it only needs to be in 1 location to start.

In all instances refering to USB drives, usb-storage module was loaded via fun_plug.  The new firmware does not support USB-drives.

Cleanboot reacted strangely.  The 'halt' and 'shutdown' commands which normally stopped the system with F/W 1.04, reboot the system under F/W 1.05.

Lastly, I did not have any data loss on any of the drives.  Also, one more thing to point out.  I upgraded the DNS with the H/W B1.

Last edited by bq041 (2008-05-14 19:51:49)


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#2 2008-05-13 02:21:39

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: F/W 1.05b28 Quirks

mmmm

Question - item #2 - was this with fun_plug loaded or does the new firmware provide support for external disks on USB?

Offline

 

#3 2008-05-13 02:35:33

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: F/W 1.05b28 Quirks

With fun_plug


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#4 2008-05-13 11:39:12

Naoki
Member
Registered: 2008-05-12
Posts: 9

Re: F/W 1.05b28 Quirks

I was testing new BT feature and discoverd something weird. Completed download ("BT\complete" folder) files seem to suffer from fragmentation. Transfer from BT folder to PC (BT client is off, no seeding at the same time) is significally slower than from other Volume_1 folders (at least 2 times slower). The only way to fix it is to make copy of "BT\complete" files (new non-fragmented files are created on Volume_1, transfering new files to PC gives normal speeds) and delete originals.

Offline

 

#5 2008-05-14 19:44:53

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: F/W 1.05b28 Quirks

Update to first post added #6


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#6 2008-05-15 07:09:49

MasterMax_san
New member
Registered: 2008-05-15
Posts: 2

Re: F/W 1.05b28 Quirks

bq041 wrote:

After upgrading from 1.04 to 1.05 I noticed a few interesting things.  (I'm not asking for help fixing anything, just reporting results of some tests I'm working on.)


4. Once Bit-torrent client is installed, the bit-torrent directory is automatically shared as 'BT'.  In the web admin tool, there is no ability to edit or delete this share and it is available in read/write mode for all users.

that wery ugly trouble 4 me

maybe someone know dessigion???

and one more trouble i found

- when downloading by BT and i have many peers, DNS's BT fill up all my InterNet channel, and ohther applications works with inet too slowly
(looks like needs for setting for maximum peers/seeds limitation)

tnx...

Offline

 

#7 2008-05-16 00:29:34

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: F/W 1.05b28 Quirks

The maximum bandwidth is setable via the web client.  At for the share, the best way around that right now is to make a script in the /ffp/start directory that copies a custom smb.conf over the one in /etc/samba during startup.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#8 2008-05-17 19:54:54

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: F/W 1.05b28 Quirks

Naoki wrote:

I was testing new BT feature and discoverd something weird. Completed download ("BT\complete" folder) files seem to suffer from fragmentation. Transfer from BT folder to PC (BT client is off, no seeding at the same time) is significally slower than from other Volume_1 folders (at least 2 times slower). The only way to fix it is to make copy of "BT\complete" files (new non-fragmented files are created on Volume_1, transfering new files to PC gives normal speeds) and delete originals.

WHAT!  Fragmentation!!

Didn't someone say that fragmentation is never a problem with ext2 & ext3 file systems? wink

Offline

 

#9 2008-05-17 20:13:45

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: F/W 1.05b28 Quirks

bq041 wrote:

After upgrading from 1.04 to 1.05 I noticed a few interesting things.  (I'm not asking for help fixing anything, just reporting results of some tests I'm working on.)

...

4. Once Bit-torrent client is installed, the bit-torrent directory is automatically shared as 'BT'.  In the web admin tool, there is no ability to edit or delete this share and it is available in read/write mode for all users.

Ah well, there goes my son's request to install BT on my DNS-323 at home.  How can DLINK be so slack?

So far the only change (for the better) I found is that the "deprecated IOCTL" messages have gone.

I was hoping they would allow special characters in passwords but .... sad

Jaya


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#10 2008-05-18 05:36:28

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: F/W 1.05b28 Quirks

jayas wrote:

Ah well, there goes my son's request to install BT on my DNS-323 at home.  How can DLINK be so slack?

Why not just create a startup script to copy over the smb.conf file with a custom one?  You can set the shares and permissions how you like.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#11 2008-05-18 11:57:14

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: F/W 1.05b28 Quirks

bq041 wrote:

jayas wrote:

Ah well, there goes my son's request to install BT on my DNS-323 at home.  How can DLINK be so slack?

Why not just create a startup script to copy over the smb.conf file with a custom one?  You can set the shares and permissions how you like.

Yes I could do that, or alternatively just fix the BT section to retain GUI share permission functionality.

Thanks bq041.

Regards,

Jaya


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#12 2008-05-20 10:16:41

MasterMax_san
New member
Registered: 2008-05-15
Posts: 2

Re: F/W 1.05b28 Quirks

jayas wrote:

bq041 wrote:

jayas wrote:

Ah well, there goes my son's request to install BT on my DNS-323 at home.  How can DLINK be so slack?

Why not just create a startup script to copy over the smb.conf file with a custom one?  You can set the shares and permissions how you like.

Yes I could do that, or alternatively just fix the BT section to retain GUI share permission functionality.

Thanks bq041.

Regards,

Jaya

as i wrote i have same trouble with BT folder permissions sad

can You write some manual for me how to control permissions
i not so good know linux...

tnx

Offline

 

#13 2008-05-20 12:37:52

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: F/W 1.05b28 Quirks

MasterMax_san wrote:

jayas wrote:

bq041 wrote:

Why not just create a startup script to copy over the smb.conf file with a custom one?  You can set the shares and permissions how you like.

as i wrote i have same trouble with BT folder permissions sad

can You write some manual for me how to control permissions
i not so good know linux...

tnx

Here is a reference I found good:

  http://us3.samba.org/samba/docs/man/man … onf.5.html

Sorry I have not got BT installed (yet) so I am not able to be more specific till I look at this file after BT is installed.

Someone else who has BT installed can help?

Regards,

Jaya

PS: you need to have fun_plug installed first though if you haven't


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#14 2008-05-20 14:57:08

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: F/W 1.05b28 Quirks

Essentially, you want to copy the smb.conf file from the ramdrive to a place on your hard drive.  Then you can edit this file to set the permissions you want (watch out for CR/LF issues - I use vi for editing, myself).  Then add a script to the start directory of the fun plug that first kills samba, copies your smb.conf back over the one on the ramdrive, and then restarts samba.  If I remember, it is in /etc/samba, but I do not have my NAS in front of me to check right now.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#15 2008-05-20 15:22:38

jayas
Member
Registered: 2008-01-24
Posts: 151

Re: F/W 1.05b28 Quirks

bq041 wrote:

Essentially, you want to copy the smb.conf file from the ramdrive to a place on your hard drive.  Then you can edit this file to set the permissions you want (watch out for CR/LF issues - I use vi for editing, myself).  Then add a script to the start directory of the fun plug that first kills samba, copies your smb.conf back over the one on the ramdrive, and then restarts samba.  If I remember, it is in /etc/samba, but I do not have my NAS in front of me to check right now.

My smb.conf is in /etc/samba, and the entry for a given share looks like this:

Code:

[ share ]
comment = share
path = /mnt/HD_a2/share
valid users = <list of user names here>
read only = no
guest ok = no
oplocks =  yes
map archive = yes

If I understand the permission problem correctly, share for BT would have "guest ok" as "yes" instead of "no".

Hope this helps.

Jaya


H/W=B1 F/W=1.04; RAID1: SAMSUNG HD501LJ T166 (500GB, SATA 3.0Gb/s 16MB)

Offline

 

#16 2008-05-20 21:08:13

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: F/W 1.05b28 Quirks

Yes, that is correct.  If it was me, I would just completely eliminate the BT share and use my regular ones.  Keep in mind that this file is on a ramdrive, so changes to it are lost each reboot, hence needing a script to modify it.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB