Have problem to access to ALL my files after restart

814 views
Skip to first unread message

chq...@gmail.com

unread,
May 11, 2013, 12:08:13 AM5/11/13
to al...@googlegroups.com
HI all,
I am a newbie in Alt-F. I have a DNS323 loading 2*2TB Hitachi drive. I used to use firmware 1.10 and notice it has many problems when one of my drive died.
then I  last week I switch to Alt-F 

I have set the DNS as RAID 1 but only one drive in, (another is send to factory for repair); 
I copied around 300G data to one of the drive. everything looks good, till I decide to restart the box...

It not restart but stuck some where.. with two steady orange leds (which is normal because I only have one drive for the RAID1), and the flashing power button in blue light.
I have tried to press the power button for 3 , 6 or longer, no luck and then pull the cord for a restart.
After restart, I notice NO file structure anymore under the "system --> Folders", 
Folder: /mnt (hit path component to visit it)
OwnerGroupPermissions
Up Folder
md0rootrootrwxrwxrwx
sda4rootrootrwxrwxrwx
both md0 and sda4 are empty.

I have saved my files used to be under "/mnt/md0/Public/RW"
I used to use WIN7 and then "map a drive" to access the files.
I also tried to load the file settings under "System --> settings" as two hours ago.
no luck...
Please help me out!!!!

------------------------------------------------------------------------------------------------------------------------------------------------
the following are some information which may be helpful to you fix the problem:

I have set nothing under the "system--> User"

No users folder found, create it in:

 
but no select under the droplist.

the samba service is on, with settings still available:

Samba Setup

Folders to export to other hosts
DisableFolderBrowseShare NameCommentAllowBrowseableRead
Only
Inherit
Perms


Here is the status page:

Alt-F 0.1RC3 Status Page help



System
Temperature
38.0°C/100.4°F
Fan speed
0
Load
2.24
CPU
100%
Swap
134.4/383MB
Name: DNS323Device: DNS-323 rev-B1Mode: Flashed
Date: Fri May 10 23:54:13 EDT 2013Uptime: 0 day(s) 0 hour(s)
NetworkSpeed: 100Mbps Duplex: full MTU: 1500 TX: 306.1KiB Rx: 523.0KiB IP: 192.168.0.11
Disks
BayDev.ModelCapacityPower StatusTempHealth
leftsdaHitachi HDS5C3020ALA6322000.4 GBactive or idle38°C/100.4°Fpassed
RAID
Dev.CapacityLevelStateStatusActionDoneETA
md01861.0 GBraid1cleandegradedidle
Filesystem Maintenance
Dev.LabelOperation
md0checking...step 1: 83%

Joao Cardoso

unread,
May 11, 2013, 8:11:21 AM5/11/13
to Alt-F Group

read the documentation. i spent a lot if time writing it!
wait for the filesystem check to finish.

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To post to this group, send email to al...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/alt-f/-/BbTlHbLqaP0J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

chq...@gmail.com

unread,
May 13, 2013, 10:53:48 AM5/13/13
to al...@googlegroups.com
HI Joao, 
Thank you for your quick answer. It's my bad to not read the doc carefully. the first time it works after install alt-f when the disk is empty, so later I did not notice the disk check issue. I have spent 1 hour to check my 2TB disk, and now it is able to show two disks (md0 and sda4), I think the sda4 comes with the dlink box.

But it still has the problem: I CANNOT power if off!   I have installed some packages and want a power off. the webpage showing "the DNS is being power off" or something like that. but the DNS keeps the same stage and not powered off for the whole night. I cannot access to the management interface via webpage anymore.

The DNS box has two orange leds (because I only have one disk in for a RAID1), and the power button steady blue, a small button below the power button flashes randomly. 

I pressed the power button 3 or 6 seconds, or even longer, no led change, not work. 

It seems I went back to the cycle: power off not work --> pull cord --> restart --> check the disk for 1hr ..

Please help me!

João Cardoso

unread,
May 13, 2013, 12:07:10 PM5/13/13
to al...@googlegroups.com


On Monday, May 13, 2013 3:53:48 PM UTC+1, chq...@gmail.com wrote:
HI Joao, 
Thank you for your quick answer. It's my bad to not read the doc carefully.

You obviously have read it, not very carefully, but you have read it. I was on a bad mood, I apologize.
 
the first time it works after install alt-f when the disk is empty, so later I did not notice the disk check issue. I have spent 1 hour to check my 2TB disk, and now it is able to show two disks (md0 and sda4), I think the sda4 comes with the dlink box.

But it still has the problem: I CANNOT power if off!   I have installed some packages and want a power off. the webpage showing "the DNS is being power off" or something like that. but the DNS keeps the same stage and not powered off for the whole night. I cannot access to the management interface via webpage anymore.

There is something avoiding the shutdown, it should take only a couple of seconds.

What Alt-F packages have you installed? Which ones are running before you tried to shutdown?
Do you have any ffp packages installed? leftover from a previous install or installed using Alt-F ffp package manager?
Are the filesystems mounted RW (Read Write) or RO (Read Only) in the Mounted Filesystems in the Status page

If you unplug the power cord (you seems to not have any other option at the moment, but keep reading), then at the next reboot a new fsck will be performed. It will happens whenever an unclean shutdown is "performed".

If you have no web access, then probably you will not be able to ssh or telnet the box, but try it anyway.
*telnet* the box, login as the 'root' user using the same password as the webUI, and execute and post the output of the followings commands:
rcall status
top -b -n1
aufs
.sh -l
poweroff
# post all messages



If you can't ssh/telnet, you have to unplug the box, power it on again and wait for the fsck to complete :-)
Then stop all services that you have started (but NOT inetd), and *verify* that they are indeed stopped.
Then, under System->Utilities->View logs, view and download the System Log and the Running Processes and attach them (not inline, attach them)
You should also find a Alt-F.log file in the root of each filesystem, attach it also.
Then telnet the box (not ssh, as ssh will be early stopped and we will have no diagnostics to see), login as above, execute the 'poweroff' command and post all messages you see.

This is not a fix, just trying to determine what is avoiding the poweroff command to succeed.


The DNS box has two orange leds (because I only have one disk in for a RAID1),

Yes, but there is no problem, my box is in the same situation, and it powers off fine.
 
and the power button steady blue, a small button below the power button flashes randomly. 

the network led.


I pressed the power button 3 or 6 seconds, or even longer, no led change, not work. 

The box is freeze, that's why that does not works. It executes the 'poweroff' or 'reboot' command, as the webUI does.

chq...@gmail.com

unread,
May 13, 2013, 2:41:40 PM5/13/13
to al...@googlegroups.com
Hi Joao, 
Really thank you for the help,
here is the feedback from my box:



What Alt-F packages have you installed? Which ones are running before you tried to shutdown?
I have installed the: 
transmission2.76A Fast, Easy and Free Bittorrent client

but it has been stopped before I power off.

 
Do you have any ffp packages installed? leftover from a previous install or installed using Alt-F ffp package manager?
 I have installed 
ffp-0.5 Package Manager
I have problems with the firmware so I come back and forth for quite a lot of times, don't know whether there is previous files left.
 
Are the filesystems mounted RW (Read Write) or RO (Read Only) in the Mounted Filesystems in the Status page

Please see the status page at the end of this post, I don't see the  RW and RO in the status page.

 
If you unplug the power cord (you seems to not have any other option at the moment, but keep reading), then at the next reboot a new fsck will be performed. It will happens whenever an unclean shutdown is "performed".

If you have no web access, then probably you will not be able to ssh or telnet the box, but try it anyway.
*telnet* the box, login as the 'root' user using the same password as the webUI, and execute and post the output of the followings commands:
rcall status
top -b -n1
aufs
.sh -l
poweroff
# post all messages


I have the box cord pulled and then restart for another round of  disk check, 


If you can't ssh/telnet, you have to unplug the box, power it on again and wait for the fsck to complete :-)

I did that,
 
Then stop all services that you have started (but NOT inetd), and *verify* that they are indeed stopped.
I did that for all three type of services, but not sure how to verify it.
 
 
 
Then, under System->Utilities->View logs, view and download the System Log and the Running Processes and attach them (not inline, attach them)
 
I need to start this service to view logs, so I start it.
syslogRunningSystem and Kernel log Daemon

See attached is the  two log files.
 

You should also find a Alt-F.log file in the root of each filesystem, attach it also.
 
 NO, I cannot find them, here is my file structures.
FolderOwnerGroupPermissions
md0rootrootrwxrwxrwx  
      Publicrootrootr-xr-xr-x  
      Usersrootrootrwxr-xr-x
      .systemfilerootrootrwx------

sda4rootrootrwxrwxrwx
Alt-Frootrootrwxr-xr-x
backuprootrootrwxr-xr-x
ffprootrootrwxr-xr-x
.lpdrootrootrwxrwxrwx
.systemfilerootrootrwx------





no *.log found,

Then telnet the box (not ssh, as ssh will be early stopped and we will have no diagnostics to see), login as above, execute the 'poweroff' command and post all messages you see.

see attached "telnet_log"
The box did not poweroff, have all the leds stable, two orange ones, two blue ones (power led and the one below it);  the little blue light seems flash some times; 
Press the power button for no matter how many times, no response.





----------------------------------------------------------------------------------------------------------------------
status page:

Alt-F 0.1RC3 Status Page help



System
Temperature
38.5°C/101.3°F
Fan speed
0
Load
0.05
CPU
17%
Swap
0.0/517MB
Name: DNS323Device: DNS-323 rev-B1Mode: Flashed
Date: Mon May 13 06:24:31 EDT 2013
Uptime: 0 day(s) 0 hour(s)
NetworkSpeed: 1000Mbps Duplex: full MTU: 1500 TX: 652.4KiB Rx: 146.8KiB IP: 192.168.0.11
Disks
BayDev.ModelCapacityPower StatusTempHealth
leftsdaHitachi HDS5C3020ALA6322000.4 GBactive or idle
35°C/95°Fpassed
RAID
Dev.CapacityLevelStateStatusActionDoneETA
md01861.0 GBraid1cleandegradedidle
Mounted Filesystems
Dev.LabelCapacityAvailableFSModeDirtyAutomatic FSCK in
md01.8TB
1.3TB
ext2RW*31 mounts or 179 days
sda4484.3MB
425.1MB
ext2RW*27 mounts or 179 days
 
telnet_log.txt
Processes.log
SystemLog.log

chq...@gmail.com

unread,
May 13, 2013, 2:54:31 PM5/13/13
to al...@googlegroups.com
One more thing: 
I notice when I use telnet to power off the box, the fan stopped after a while, but the box leds keep on.
I pull the cord right now, and restart the box, no check filesystem this time!! It directly shows the filesystems:
Mounted Filesystems
Dev.LabelCapacityAvailableFSModeDirtyAutomatic FSCK in
md01.8TB
1.3TB
ext2RW*
30 mounts or 179 days
sda4484.3MB
425.1MB
ext2RW*
26 mounts or 179 days

Hope this can bring useful clues.

João Cardoso

unread,
May 13, 2013, 4:39:13 PM5/13/13
to al...@googlegroups.com


On Monday, May 13, 2013 7:54:31 PM UTC+1, chq...@gmail.com wrote:
One more thing: 
I notice when I use telnet to power off the box, the fan stopped after a while, but the box leds keep on.
I pull the cord right now, and restart the box, no check filesystem this time!!

So the shutdown procedure advanced a bit more.
Filesystems are mounted RW (under the "Mode" column), so the fs check succeeded.

-Your shall have syslogd active. It consumes almost no resources and is invaluable to diagnose problems. Boot enable it.
-You shall have and 'alt-f.log' file at all your filesystems root, i.e., /mnt/md0/alt-f.log and /mnt/sda4/alt-f.log. You can't see it using the Folder Browse, as it is a file, not a folder. To enable it, Services->User->user->Configure, check "Create diagnostics file". To make the file visible under windows, execute "cp /mnt/md0/alt-l.log /Public/RW" or "cp /mnt/sda4/alt-f.log /Public/RW"

-I still have no clue about what makes 'poweroff' fails, but:
-I suspect that you have a ffp leftover from previous installs. remove it.
 -If it appears under Packages->ffp, uninstall it. If it does not appears, it must be under /mnt/md0 or /mnt/sda4, execute the command "rm -rf /mnt/md0/ffp" or "/mnt/sda4/sda4"
-uninstall all Alt-F packages, Packages->Alt-F, RemoveAll at the bottom of "Installed Packages". You can reinstall them latter. I advise you to install it into the sda4 filesystem, not on md0; the same applies to ffp packages, if you need them.
-save settings
-go to "Filesystem Maintenance" and try unmount md0 and sda4 (FS Operations, unmount). It might fail.
-System Utilities, reboot

chq...@gmail.com

unread,
May 13, 2013, 7:39:00 PM5/13/13
to al...@googlegroups.com
Thank you,
I have tried all the steps you given, still not work, attached is the log files.

I have uninstalled all the ALT-F and FFP packages,
But I still cannot successfully power it off,  (I have only try power off via Telnet, because I will not need to check the disk for >1hr; I think it is the same as the "system--> utility --> power off")
alt-f_md0.log
alt-f_sda4.log

chq...@gmail.com

unread,
May 13, 2013, 7:44:46 PM5/13/13
to al...@googlegroups.com
attached is the new process and system log

here is the folder tree:
------------------------------------------------root ------------------------------------------
# ls -al
total 23
drwxr-xr-x   25 root     root           300 May 13 11:03 .
drwxr-xr-x   25 root     root           300 May 13 11:03 ..
-rw-r--r--    1 root     root         17987 Sep 24  2010 COPYING
-rw-r--r--    1 root     root           245 Sep 24  2010 LICENCE
lrwxrwxrwx    1 root     root            15 May 13 11:03 Public -> /mnt/md0/Public
drwxr-xr-x    2 root     root           973 Mar 22 18:13 bin
drwxr-xr-x    2 root     root             3 Mar 17 15:43 boot
drwxr-xr-x    4 root     root          1500 May 13 11:03 dev
drwxr-xr-x   15 root     root           740 May 13 11:22 etc
lrwxrwxrwx    1 root     root            14 May 13 11:03 home -> /mnt/md0/Users
-rwxr-xr-x    1 root     root          4433 Feb 25 13:16 init
drwxr-xr-x    2 root     root           539 Mar 22 18:13 lib
drwxr-xr-x    4 root     root            80 May 13 11:03 mnt
dr-xr-xr-x   47 root     root             0 Dec 31  1969 proc
drwxr-x---    2 root     root            60 May 13 11:16 root
drwxrwxrwt    4 root     root            80 May 13 11:03 rootmnt
drwxr-xr-x    2 root     root           520 May 13 11:03 sbin
drwxr-xr-x   11 root     root             0 May 13 11:03 sys
drwxrwxrwt    6 root     root           180 May 13 11:22 tmp
drwxr-xr-x    9 root     root            60 Mar 22 18:13 usr
drwxr-xr-x    5 root     root           140 May 13 11:03 var


------------------------------------------------sda4 ------------------------------------------
drwxrwxrwx    6 root     root          1024 May 13 11:03 .
drwxr-xr-x    4 root     root            80 May 13 11:03 ..
drwxrwxrwx    2 root     root          1024 May  9 21:21 .lpd
drwx------    3 root     root          1024 May 12 21:22 .systemfile
-rw-rw-rw-    1 root     root         31740 May 13 11:03 alt-f.log
drwxr-xr-x    4 root     root          1024 May  9 21:21 backup
drwx------    2 root     root          1024 May 12 16:52 lost+found

------------------------------------------------md0------------------------------------------
# cd ../md0
# ls -al
total 52
drwxrwxrwx    6 root     root          4096 May 13 11:03 .
drwxr-xr-x    4 root     root            80 May 13 11:03 ..
drwx------    2 root     root          4096 May 13 06:48 .systemfile
dr-xr-xr-x    4 root     root          4096 May  9 22:52 Public
drwxr-xr-x    3 root     root          4096 May 12 21:54 Users
-rw-rw-rw-    1 root     root         31740 May 13 11:03 alt-f.log
drwx------    2 root     root          4096 May 12 15:42 lost+found


Processes (1).log
SystemLog (1).log

João Cardoso

unread,
May 14, 2013, 9:45:22 AM5/14/13
to al...@googlegroups.com


On Tuesday, May 14, 2013 12:39:00 AM UTC+1, chq...@gmail.com wrote:
Thank you,
I have tried all the steps you given, still not work, attached is the log files.

I have uninstalled all the ALT-F and FFP packages,
But I still cannot successfully power it off,  (I have only try power off via Telnet, because I will not need to check the disk for >1hr; I think it is the same as the "system--> utility --> power off")

I couldn't find nothing wrong with your setup, so I have no fix for you.

The only odd thing I found was that the disk drive is too slow to start at powerup, but that shouldn't influence powerdown.

Just to rule out a board hardware malfunction, you can try to power on the box without any disk drives on it and then try to power it off using the webUI. Does it works fine? It should.

If the power down issue does not resolves by itself (!), and you can live with that, the only thing that you can do it to convert your filesystems from ext2 to ext3 (or ext4).
Using a journaled filesystem such as ext3 (or ext4) makes the power on disk check much faster, most of the time only a couple of seconds.
ext4 is prefered and faster then ext3, but you shouldn't convert to ext4 if you consider reverting to the D-Link firmware, as it will not recognize ext4.

To convert the filesystems to ext3 (or ext4), go to Disk->Filesystems, and on the md0 (and latter sda4) dev. line, under "New FS Operations", under "New FS" select ext3 (or ext4), and under Operations select Convert ( *not* format! ).

Notice that this procedure will not solve the power down issue, it will only make the power up check much faster.

chq...@gmail.com

unread,
May 14, 2013, 2:03:08 PM5/14/13
to al...@googlegroups.com
Hi  I have followed your instruction, still not work.

I have removed the disk from the box, but still not able to power off.  I remember that using the box firmware 1.10 I can power off correctly. So the hardware should be fine. Since the hard drive is removed and the problem still there, so it should not be the problem with the hard drive.

System
Temperature
36.5°C/97.7°F
Fan speed
0
Load
0.17
CPU
10%
Swap
None
Name: DNS323Device: DNS-323 rev-B1Mode: Flashed
Date: Tue May 14 05:55:11 EDT 2013
Uptime: 0 day(s) 0 hour(s)
NetworkSpeed: 100Mbps Duplex: full MTU: 1500 TX: 18.9KiB Rx: 12.8KiB IP: 192.168.0.11
No disks found!
I have converted the system file format to ext4. for both md0 and sda4. If the power off is an issue, then I just keep it running without poweroff.

One more question: when my new drive comes back, how can I install the new drive back, together with my current drive (have data on it), as a RAID 1?


Thank you for all your help and instructions!

João Cardoso

unread,
May 14, 2013, 2:44:53 PM5/14/13
to al...@googlegroups.com


On Tuesday, May 14, 2013 7:03:08 PM UTC+1, chq...@gmail.com wrote:
Hi  I have followed your instruction, still not work.

I have removed the disk from the box, but still not able to power off.  I remember that using the box firmware 1.10 I can power off correctly. So the hardware should be fine.

As a counter argument, I'm able to power off the box through software, and it is a rev-B1 hardware box like yours.
And I'm certain that many others can.
 
Since the hard drive is removed and the problem still there, so it should not be the problem with the hard drive.

I never said it was a disk issue.
 

System
Temperature
36.5°C/97.7°F
Fan speed
0
Load
0.17
CPU
10%
Swap
None
Name: DNS323Device: DNS-323 rev-B1Mode: Flashed
Date: Tue May 14 05:55:11 EDT 2013Uptime: 0 day(s) 0 hour(s)
NetworkSpeed: 100Mbps Duplex: full MTU: 1500 TX: 18.9KiB Rx: 12.8KiB IP: 192.168.0.11
No disks found!
I have converted the system file format to ext4. for both md0 and sda4. If the power off is an issue, then I just keep it running without poweroff.

One more question: when my new drive comes back, how can I install the new drive back, together with my current drive (have data on it), as a RAID 1?

Read the HowToFixDegradedRAID1 wiki.

If it is not enough, search the forum, this has been discussed more than once, and contribute to the wiki ;-)
 

Thank you for all your help and instructions!

I hope to also thank you for your wiki contribution :-)

Joao

João Cardoso

unread,
May 15, 2013, 10:30:16 AM5/15/13
to al...@googlegroups.com


On Tuesday, May 14, 2013 7:44:53 PM UTC+1, João Cardoso wrote:


On Tuesday, May 14, 2013 7:03:08 PM UTC+1, chq...@gmail.com wrote:
Hi  I have followed your instruction, still not work.

I have removed the disk from the box, but still not able to power off.  I remember that using the box firmware 1.10 I can power off correctly. So the hardware should be fine.

I just remembered now that some D-Link fw versions allowed to schedule powering-up the box at certain times.
Have you used this feature? 
That might explain the issue... as it might require a special power-off sequence.

chq...@gmail.com

unread,
May 16, 2013, 10:51:39 AM5/16/13
to al...@googlegroups.com
NO, there is no such a schedule. If there is one, how can I cancel it?

I have more questions during using the Alt-f:  
I need to login in the webpage everytime, in order to use packages and start services. it is very inconvenient to login and select the service --> configure --> webpage ....
Is there a easy way to achieve that like using different software/links ? the bookmarks seems not work, and I don't know whether they can do this job.

Also, I want to more than one person access to my bittorent download page, but I don't want to share my administrator password. Then how can I use the normal users to login to Transimission?
I have set the schedule to download during 2am to 8am in Transmisson, with all other time upload and download speed as 0. But I notice it is still download when I get up after 10am? There is a small turtle button, do I need to click it to activate the schedule download?  I have checked the Transmisson, no instruction for this issue.

thx,

João Cardoso

unread,
May 17, 2013, 9:40:42 AM5/17/13
to al...@googlegroups.com


On Thursday, May 16, 2013 3:51:39 PM UTC+1, chq...@gmail.com wrote:
NO, there is no such a schedule.

OK
 
If there is one, how can I cancel it?

After all you are not certain...

some D-Link fw versions allowed to schedule powering-up the box at certain times.
Have you used this feature?
 
I have more questions during using the Alt-f:  

If they are unrelated you should open a new topic!
 
I need to login in the webpage everytime, in order to use packages and start services. it is very inconvenient to login and select the service --> configure --> webpage ....
Is there a easy way to achieve that like using different software/links ?

You can access those apps web pages, if the app is running,  by directly entering the URL in the browser, e.g., for transmission it is http://yournas:9091, for sickbeard it is port 8081, so use http://yournas:8081, cups uses port 631, etc.
 
the bookmarks seems not work,

Bookmarking, which is an unfortunate name,  is not intended to use your browser bookmarking capabilities, but to provide shortcuts from within Alt-F webUI to avoid the need to follow deeply nested menus.

and I don't know whether they can do this job.

Also, I want to more than one person access to my bittorent download page, but I don't want to share my administrator password. Then how can I use the normal users to login to Transimission?

When Transmission is installed a group called BT is also created. Just add the required user to that group (Setup->Users)
 
I have set the schedule to download during 2am to 8am in Transmisson, with all other time upload and download speed as 0. But I notice it is still download when I get up after 10am? There is a small turtle button, do I need to click it to activate the schedule download?  I have checked the Transmisson, no instruction for this issue.

Don't know, that is not Alt-F specific.

Reply all
Reply to author
Forward
0 new messages