I have an external NTFS formatted Western Digital hard drive connected to the router. Both the router and the hard drive are connected to a UPS so there's no problem if the power goes out. However, I was in the middle of copying a text file to the drive when the router rebooted itself. From searching online the only thing I could find is some vague info that the n66u will sometimes reboot if being accessed from the external ip address or something. I know I had another family member using the internet at the time but I'm not sure what they were doing, I think just browsing and possibly chatting. First time this has happened.
When all connections were restored and the router mounted the drive, the text file showed as a 0kb file. I then recopied the file, however I decided that I should probably unmount the drive and connect it to my computer to run chkdsk on it. Sure enough, Windows (7) said if I wanted to scan and fix errors on the drive. Basically chkdsk restored another text file that I had delete right before copying the new text file. The restored file was in a hidden found.000 folder at the root of the drive. Chkdsk then deleted the new text file that I had recopied. lol. No biggie, I just recopied it again.
Now, according to the sdparm utility, the hard drive has write cache enable. No biggie, since there's no danger from power outages however I'm concerned about data loss if the router randomly decides to reboot. Unfortunately the sdparm command to disable write cache does not work.
To check if it's enabled:
sdparm -6 -g WCE /dev/sda (or whatever your drive letter is )
To disable, the command should be:
sdparm -6 -s WCE=0 /dev/sda
Write cache however is still enabled. Not sure what else to do. Any idea why the command isn't working? Anyone have any rebooting problems? Or are they fairly rare? I suppose it's not as big a deal if I'm copying files from my computer to the drive but it's different if I'm downloading files from the internet directly to the drive. It'd be nice if the system log could give an indication as to what causes the reboot but the log is reset after every reboot.
As a side note, the stock firmware doesn't have option for spinning down the drive after being idle for a period of time, so before I go to bed I use
sdparm -v -C stop /dev/sda
and the router will spin down the drive. It will start up again when you access a new file you didn't access before or when you restart your computer and access your drive. So for those of you that don't want your drive on 24/7 this command is nice solution. Not automatic, but still.
When all connections were restored and the router mounted the drive, the text file showed as a 0kb file. I then recopied the file, however I decided that I should probably unmount the drive and connect it to my computer to run chkdsk on it. Sure enough, Windows (7) said if I wanted to scan and fix errors on the drive. Basically chkdsk restored another text file that I had delete right before copying the new text file. The restored file was in a hidden found.000 folder at the root of the drive. Chkdsk then deleted the new text file that I had recopied. lol. No biggie, I just recopied it again.
Now, according to the sdparm utility, the hard drive has write cache enable. No biggie, since there's no danger from power outages however I'm concerned about data loss if the router randomly decides to reboot. Unfortunately the sdparm command to disable write cache does not work.
To check if it's enabled:
sdparm -6 -g WCE /dev/sda (or whatever your drive letter is )
To disable, the command should be:
sdparm -6 -s WCE=0 /dev/sda
Write cache however is still enabled. Not sure what else to do. Any idea why the command isn't working? Anyone have any rebooting problems? Or are they fairly rare? I suppose it's not as big a deal if I'm copying files from my computer to the drive but it's different if I'm downloading files from the internet directly to the drive. It'd be nice if the system log could give an indication as to what causes the reboot but the log is reset after every reboot.
As a side note, the stock firmware doesn't have option for spinning down the drive after being idle for a period of time, so before I go to bed I use
sdparm -v -C stop /dev/sda
and the router will spin down the drive. It will start up again when you access a new file you didn't access before or when you restart your computer and access your drive. So for those of you that don't want your drive on 24/7 this command is nice solution. Not automatic, but still.
Last edited: