Kong Mod Update build 17462

71 posts / 0 new
Last post
Dark_Shadow
I have a diff output for

I have a diff output for blkid

blkid
/dev/scsi/host0/bus0/target0/lun0/part1: LABEL="OPTWARE" UUID="e999f846-b256-4b62-bb94-4fef8a8f87a7"
/dev/scsi/host0/bus0/target0/lun0/part2: LABEL="SWAP" UUID="26a86abc-910d-40a1-8842-2510e68b9195"
/dev/scsi/host0/bus0/target0/lun0/part3: LABEL="JFFS" UUID="93760c48-0b2e-4c1b-b4a5-22e21ef7bc88"
/dev/scsi/host0/bus0/target0/lun0/part4: LABEL="DATA1" UUID="7761df02-93b8-446b-92b9-486ca4f4c932"

Dr.Di0NiS
Hi, Kong! Thanks for great

Hi, Kong! Thanks for great work done by you and your fine mods! I use last version, but there is a problem which isn't present in official builds: not correct names of folders on a disk with file system NTFS are displayed, Russian letters (it is my native language, and for English I use the translator) are deduced in the form of signs on questions in MC, at command performance 'ls' and folders with Russian names it is not visible through miniDLNA on my TV. Whether It is possible to correct somehow it as in official builds this problems aren't present? Sorry, for my pure English...

Kong
@Dark_Shadow,

@Dark_Shadow,

now I see my bug. I'll update my build with the correct "grep"

@Dr.DiONiS

I have removed language support for a few languages from my uCLibc, that's why. Since DD-WRTS uCLibc is currently broken I'M still on my own libs.

Kong
OK guys, I've just uploaded

OK guys, I've just uploaded the updated build. Mount to opt/jffs should work now.

eTaurus
Kong said: OK guys, I've just

Kong said: OK guys, I've just uploaded the updated build. Mount to opt/jffs should work now.

Thank you so much. It's working now but I don't know if it is working the right way.

root@DD-WRT:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /tmp/mnt/disc0_part1 type ext3 (rw,data=ordered)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_part3 type ext3 (rw,data=ordered)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw,noatime,data=ordered)
/dev/sda3 on /tmp/c type ext3 (rw,noatime,data=ordered)
root@DD-WRT:~#

part 1 and part 3, that means the Optware partition and the data partition are each mounted two times.

eTaurus

Dark_Shadow
@Kong,

@Kong,

Do you use frater's "Optware, The Right Way"?

frater's "automount" messes the gui mount up, I had to turn in off. Also wondering if any other of frater's services will mess with the GUI mount like "fixparts".

I am getting ready to test having 2 USBHDD's attached at the same time and report back.

Edit1: Do you know what "get_wl_instance doesnt return the right value 1" means and how to correct it?

Edit2: A second HDD show's up in /dev/discs but doesn't show up in /mnt.

Edit3: in /mnt there is a disc0_part2 when part2 is swap and disc0_part4 is not in /mnt ether.

Kong
No haven't used fraters

No haven't used fraters optware. Fraters automount should be obsolete if my stuff is working correctly. The stuff I did will also allow to mount by label, thus if I add it we could mount a partition to opt if it is label for example Optware.
The problem I think with fraters mount is that it will not be called for example when you change services e.g. stop samba etc. With the dd-wrt automount you are able to stop services before umounting etc.

What do you get when you run blkid with the 2 drives attached?

@eTaurus, the double mount is intended, but if it makes sense it can be changed.

Dark_Shadow
 

 

Kong said: What do you get when you run blkid with the 2 drives attached?

root@RT-N16:~# blkid
/dev/sda1: LABEL="OPTWARE" UUID="e999f846-b256-4b62-bb94-4fef8a8f87a7" TYPE="ext3"
/dev/sda2: LABEL="SWAP" UUID="26a86abc-910d-40a1-8842-2510e68b9195" TYPE="swap"
/dev/sda3: LABEL="JFFS" UUID="93760c48-0b2e-4c1b-b4a5-22e21ef7bc88" TYPE="ext3"
/dev/sda4: LABEL="DATA1" UUID="7761df02-93b8-446b-92b9-486ca4f4c932" TYPE="ext3"
/dev/sdb1: LABEL="DATA2" UUID="e9f8608b-433f-cc01-e088-608b433fcc01" TYPE="ext3"

 

edit1: With 2nd drive hooked up /mnt/disc0_part4 shows up properly, but disc1_part1 still no show.

ReDaLeRt
Hi,

Hi,

I'm using the new update (22/08/2011). This is a completly mess.

Your automount does not work either;

And the mounting points are completly wrong:

# mount
(...)
/dev/discs/disc0/part2 on /tmp/mnt/disc0_part2 type ext3 (rw,data=ordered)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_part3 type ext3 (rw,data=ordered)

Why do I need this huge mounting points (/tmp/mnt/disc0_part2) when I can use only just a simple one (/mnt for "Data" partition)?

It makes no sense for me and breaks OTRW...

This firmware is awesome and very fast but this mess is a strong bottleneck. Why not try to give the change to select the mounting system on GUI?

Thank you in advance.

Dark_Shadow
@red

@red

The mount points are wrong because you have frater's automount on, turn it off and all will be well. Frater uses Kongs builds and I am sure he will take out automount if the GUI is working.

ReDaLeRt
How do you turn off Frater's

How do you turn off Frater's automount forever?

service automount stop

??

Thanks!

Dark_Shadow
service automount off

service automount off

then reboot

ReDaLeRt
Thanks, it worked.

Thanks, it worked.

Why can't be the mounting points just /mnt instead of /tmp/mnt? System limitation?

Thank you!

Dark_Shadow
You''l have to ask

You''l have to ask brainslayer on that one. He's the one who changed it.

ReDaLeRt
Kongmod, can you do this?

Kongmod, can you do this?

I think it could be possible if you have access to the source code, aint? :P

Best regards.

Kong
Well dd-wrt's automount code

Well dd-wrt's automount code is very buggy right now.

I'm not sure if BS is already working on it, I described the problems the code has right now in my trac ticket(http://svn.dd-wrt.com:8000/ticket/2179). I haven't tested with two drives yet, since I don't have any hub around.

Dark_Shadow
 

 

Dark_Shadow said:

Kong said: What do you get when you run blkid with the 2 drives attached?

root@RT-N16:~# blkid /dev/sda1: LABEL="OPTWARE" UUID="e999f846-b256-4b62-bb94-4fef8a8f87a7" TYPE="ext3" /dev/sda2: LABEL="SWAP" UUID="26a86abc-910d-40a1-8842-2510e68b9195" TYPE="swap" /dev/sda3: LABEL="JFFS" UUID="93760c48-0b2e-4c1b-b4a5-22e21ef7bc88" TYPE="ext3" /dev/sda4: LABEL="DATA1" UUID="7761df02-93b8-446b-92b9-486ca4f4c932" TYPE="ext3" /dev/sdb1: LABEL="DATA2" UUID="e9f8608b-433f-cc01-e088-608b433fcc01" TYPE="ext3" edit1: With 2nd drive hooked up /mnt/disc0_part4 shows up properly, but disc1_part1 still no show.

Any luck on this yet Kong?

 

ReDaLeRt
Hi,

Hi,

It is normal the wifi signal just gonna unstable (up and down -- -41 dBm -32 dBm)? Since I upgraded from 15508M is recurrent on newer releases this phenomenon...

Maybe caused by the new broadcomm driver?

Thanks.

eTaurus
I try to disable Fraters

I try to disable Fraters automount service. Is it still possible to mount NTFS partitions then?

Kong
NTFS should be working, if

NTFS should be working, if not let me know.

N3500L Newbie
Sorry if this is a bit of a

Sorry if this is a bit of a silly question, but is there ever a time you wouldn't want to use automount?

I suppose you could write some automount scripts that attach your USB drive at startup, but you would have to be a bit careful (checking that they have been recognised, spun up correctly etc).

As I see it the main issues are:

(1) checking the USB drive is supported
(2) (auto)mounting the USB drive on /mnt or wherever the hell you want it :-)
(3) making sure the drive either doesn't ever spin down, or alternatively, wakes up on demand
(4) making sure the drive is cleanly unmounted when the router is rebooted (this will never happen with a power-cycle, and is likely to cause problems)
(5) having the drive integrity checked (and fsck'ed if necessary) automatically when the router is powered back on

Following a regulation upgrade of dd-wrt (Kong's mod) to 17462, which ironically was supposed to fix automounting, I was left with an apparently broken external USB drive (ext3 format), which I think was caused by me power-cycling the router after the upgrade had completed (as my USB drive was not being recognised).

I've had to recover the partition table (using testdisk) and am now running fsck to try to recover the data from the disk. It's not looking good :-(

Conclusion: unless someone can adequately deal with the issues above (1-5), then I really think putting any data on an external disk and using it as a NAS with dd-wrt is *very* risky.

This is such a shame, because when everything is working sweetly then this makes a great DLNA/NAS set up, but when it goes wrong (and it will e.g. power cut, blown fuse/transformer, firmware upgrade, dd-wrt crash, media server crash) then you might be facing some serious data loss.

I hope this doesn't sound like I don't appreciate all the hard work the dd-wrt team and Kong do in creating a great alternative firmware, it's just that the NAS solution is so far from being usable (without risking losing all your data).

Please feel free to prove me wrong, as I really don't want to have to spend muchos dollares on a dedicated NAS box - I am a cheapskate :-)

Best wishes,

Jon

Kong
Hi Jon, if the partition

Hi Jon, if the partition table broke, then this is very unlikely caused by dd-wrt or the router, there is no code included in this build which can modify partition table and neither code to create filesystems etc..

It is more likely, that the controller of the external disk did something stupid when there was a powercycle

Besides that dd-wrt has the appropriate method to stop all services and umount devices on a reboot, but this function also needs some cleanup.

N3500L Newbie
Hi Kong,

Hi Kong,

Agreed - I think the controller of the external disk (a.k.a. me) did something stupid :D

Please can you remind me if there is a way to properly unmount an external USB drive via the gui? I realise that I could log in and do this manually, but it would be great if there was a button for this - which could report if some process was still writing to the disk and delay the umount until such time as the disk wasn't being written to. Otherwise, I still worry about people turning off their router during a disk write.

Cheers, Jon

Dark_Shadow
Don't know if this will help,

Don't know if this will help, but I temporarily fixed the 2nd HDD problem with entering this in my save startup

mkdir /mnt/disc1_part1
mount /dev/discs/disc1/part1 /tmp/mnt/disc1_part1

ReDaLeRt
This is what I was talking

This is what I was talking about:

http://img703.imageshack.us/img703/4299/1212312d.png

Check blue line (my AP).

Thanks.

ReDaLeRt
I'm just curious: is this

I'm just curious: is this build with -mtune=mips32r2 flag?

(not related to the above post)

Thanks.

Horia
Hello,

Hello,
What are the speed over samba/dnla via ethernet - USB - NTFS partition? It is better than Toastman Tomato USB? (1-2MB/s)?

Kong
Horia said: Hello, What are

Horia said: Hello, What are the speed over samba/dnla via ethernet - USB - NTFS partition? It is better than Toastman Tomato USB? (1-2MB/s)?

NTFS access with NTFS is also very slow here as we both use the community version, the commercial ntfs-3g version is much faster. But the 1-2MB/s is only samba performance, if you stream files via DLNA the performance is better since there is less overhead, cpu usage

But to stream HD content you should switch to ext2/3 or FAT32.

Dark_Shadow
Just Discovered another

Just Discovered another problem with having 2 drives connected. When I reboot the router the first drive is no longer shown in the GUI. Also brakes S10swap in fraters optware the right way.

ReDaLeRt
Kong, can you optimize your

Kong, can you optimize your builds even further with more compiler flags?

Thanks

Pages