NSLU2-Linux
view · edit · print · history

FAQ.ErrorsWithWinSCP History

Hide minor edits - Show changes to markup

February 08, 2009, at 03:54 PM by Ernst --
Changed lines 61-62 from:

The new output format of 'ls -l' command would be :

to:

The new output format of 'ls -l' command would be:

Changed lines 68-69 from:

and WinSCP will not report any errors...

to:

and WinSCP will not report any errors anymore.

February 08, 2009, at 03:53 PM by Ernst --
Changed lines 59-60 from:

and you must then reboot the NSLU2

to:

and you must then reboot the NSLU2.

February 08, 2009, at 03:52 PM by Ernst --
Changed lines 5-6 from:

As 'ls' command is a part of BusyBox?, it is not possible to correct this...

to:

As the 'ls' command is a part of BusyBox?, it is not possible to correct this...

February 08, 2009, at 03:52 PM by Ernst -- Syntax errors corrected
Changed lines 1-7 from:

When you have saved big files on your Nslu2's attached drive, you can have somes error for listing directories with WinSCP utility.

In fact, it's due to a format error of the output of the 'ls -l' command on nslu2.

As 'ls' command is a part of the Slingbox, noyhing is possible to correct this...

The bug appears only in one case.

to:

When you save large files on your NSLU2 attached drive, sometimes an error is reported when listing directories within the WinSCP client.

This is caused by a format error within the output of the 'ls -l' command on the NSLU2.

As 'ls' command is a part of BusyBox?, it is not possible to correct this...

The bug appears only in the following scenario:

Changed lines 10-13 from:
  • the files is bigest than 99.999.999 bytes (the size is 9 or more characters long)

in this case the 'ls -l' command issue a string with this format :

to:
  • the files is larger than 99.999.999 bytes (i.e. the size is 9 or more characters long)

in this case the 'ls -l' command sends a string with this format:

Changed lines 19-29 from:

WinSCP can't decode correctly that because there is no white space between the group and the size...

The groups names are fixed by the firmware. it's impossible to rename 'administrators' and 'everyone' with a shorter name so the solution is to create a third group.

As 'everyone' is by default the windows share group name, you create a group named 'windows'( or another name but 7 characters max ).

This group is automaticaly added in 'group' file as this "windows::2000:guest" on the first hdd, so in directory '/share/hdd/conf'.

After this, you have to edit this file (/share/hdd/conf/group). You normaly find this :

to:

WinSCP can't decode this correctly because there is no white space between the group and the size fields...

The group names are fixed by the firmware. It is impossible to rename 'administrators' and 'everyone' with a shorter name so the solution is to create a third group.

By default 'everyone' is the Windows share group name, so you must create a new group named for instance 'windows' (or another name but 7 characters max.).

This group can be added using the web interface. It is then added in the 'group' file as "windows::2000:guest" in the directory '/share/hdd/conf'.

After this, you have to manually edit the file /share/hdd/conf/group.

You will find this :

Changed lines 44-45 from:

you change the two last lines to have this

to:

you must change the two last lines into this:

Changed lines 59-62 from:

and you can reboot the nslu2

the new output format of 'ls -l' command would be :

to:

and you must then reboot the NSLU2

The new output format of 'ls -l' command would be :

Changed lines 68-69 from:

and WinSCP don't have any errors...

to:

and WinSCP will not report any errors...

February 08, 2009, at 11:57 AM by maisondouf --
Changed lines 3-4 from:

In fact, it's due to a format error of the output of the 'ls' command on nslu2.

to:

In fact, it's due to a format error of the output of the 'ls -l' command on nslu2.

February 08, 2009, at 11:49 AM by maisondouf --
Added line 12:
Deleted line 13:
Added line 17:
Added lines 29-30:

[@

Changed lines 40-41 from:
to:

@]

Added lines 44-45:

[@

Changed lines 55-56 from:
to:

@]

Added lines 61-62:

[@

Changed lines 64-65 from:
to:

@]

February 08, 2009, at 11:48 AM by maisondouf --
Changed lines 12-13 from:
to:
February 08, 2009, at 11:47 AM by maisondouf --
Changed line 13 from:

%box [@

to:

[@

February 08, 2009, at 11:47 AM by maisondouf --
Changed line 13 from:
to:

%box [@

February 08, 2009, at 11:46 AM by maisondouf --
Added line 13:
Changed line 15 from:
to:

@]

February 08, 2009, at 11:44 AM by maisondouf -- ls command output format error
Added lines 1-55:

When you have saved big files on your Nslu2's attached drive, you can have somes error for listing directories with WinSCP utility.

In fact, it's due to a format error of the output of the 'ls' command on nslu2.

As 'ls' command is a part of the Slingbox, noyhing is possible to correct this...

The bug appears only in one case.

  • the group name of the owner is more than 7 characters long
  • the files is bigest than 99.999.999 bytes (the size is 9 or more characters long)

in this case the 'ls -l' command issue a string with this format :

'-rwxrw---- 1 guest everyone7835492352 Apr 23 2005 my_file.ext'

WinSCP can't decode correctly that because there is no white space between the group and the size...

The groups names are fixed by the firmware. it's impossible to rename 'administrators' and 'everyone' with a shorter name so the solution is to create a third group.

As 'everyone' is by default the windows share group name, you create a group named 'windows'( or another name but 7 characters max ).

This group is automaticaly added in 'group' file as this "windows::2000:guest" on the first hdd, so in directory '/share/hdd/conf'.

After this, you have to edit this file (/share/hdd/conf/group). You normaly find this :

root:x:0:root lp:x:7:daemon,lp mail:x:12:mail ftp:x:50:admin nobody:x:99: users:x:100: administrators::500:admin everyone::501:guest,admin windows::2000:guest

you change the two last lines to have this

root:x:0:root lp:x:7:daemon,lp mail:x:12:mail ftp:x:50:admin nobody:x:99: users:x:100: administrators::500:admin everyone::2000:guest,admin windows::501:guest

and you can reboot the nslu2

the new output format of 'ls -l' command would be :

'-rwxrw---- 1 guest windows 7835492352 Apr 23 2005 my_file.ext'

and WinSCP don't have any errors...

view · edit · print · history · Last edited by Ernst.
Based on work by Ernst and maisondouf.
Originally by maisondouf.
Page last modified on February 08, 2009, at 03:54 PM