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 2011-01-28 16:24:15

vschlenk
Member
Registered: 2011-01-27
Posts: 25

reading directory .: Input/output error

HI all.

i tried to setup home directories for my users. It did work. Now I wanted to setup a "ssl" directory inside the home directory of "backup". What I do  get back is "reading directory .: Input/output error".

root@dlink-b2e:/mnt/usbstorage/home/root# cd ..
root@dlink-b2e:/mnt/usbstorage/home# ls
yyyyyyy  backup  root  xxxxxxxx
root@dlink-b2e:/mnt/usbstorage/home# cd backup
root@dlink-b2e:/mnt/usbstorage/home/backup# ls
reading directory .: Input/output error
root@dlink-b2e:/mnt/usbstorage/home/backup# mkdir ssl
cannot create directory `ssl': Input/output error
root@dlink-b2e:/mnt/usbstorage/home/backup# cd /mnt/usbstorage/home
root@dlink-b2e:/mnt/usbstorage/home# ls
yyyyyyyyy  backup  root  xxxxxxx
root@dlink-b2e:/mnt/usbstorage/home# cd backup
root@dlink-b2e:/mnt/usbstorage/home/backup# ls
reading directory .: Input/output error
root@dlink-b2e:/mnt/usbstorage/home/backup# ls -l
reading directory .: Input/output error
total 0
root@dlink-b2e:/mnt/usbstorage/home/backup# cd ..
root@dlink-b2e:/mnt/usbstorage/home# ls -l

I am quite sure that the error is in front of the screen :-)

FFP is at /mnt/usbstorage/ffp, home is at /mnt/usbstorage/home, ipkg is at /mnt/usbstorage/ipkg

what I did is setup: /mnt/usbstorage/home/backup/ as home-directory of the user "backup". When I do go inside  /~ - being user "backup" everything is fine. When I go up one directory I am in /home which seems to be mounted from flash and where only root and ftp have a home directory.

1] It sems to be that the I/O error comes from there. So it means that I do not understand the interdependencies betweeen the file/directory structure from Flash/Firmware and betweeen the directories being underneath. 

Any pragmatic proposition how to go forward?

B.t.w.: final goal? create SSL-Keys and make use of a "backup"-user to enable rsnyc between two DNS-323 boxes via cron ... still a far way to go :-)


Cheers,
Volker

Last edited by vschlenk (2011-01-28 19:21:42)

Offline

 

#2 2011-01-29 14:26:36

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: reading directory .: Input/output error

I/O error indicates the device is broke. replace it

Offline

 

#3 2011-01-30 12:03:50

vschlenk
Member
Registered: 2011-01-27
Posts: 25

Re: reading directory .: Input/output error

Oxygen,

first of all THX for your answer. No - it isn't broken [did a verify].

It works now [at least as long as working as root]

fun_plug.local:

"rm" for  /home/root via
and afterwards the ln -s .... for fixing the home dirs to a non-temp space on mnt/usbstorage/home

I think it was because initially I did ln on top of an existing folder and forgot to rm the existing temporary folder from the dns323 file system. This can't work.

Thanks,
Volker

Last edited by vschlenk (2011-01-30 21:32:27)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB