Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Correct me if wrong, but the fdisk routine will not cover both drives. And the sdb1/2/4 all located on one disk?(It looks to me like 2 small partitions(from my brief telnetting experience today) and then the rest of it which in my case was about 737 Gb)
Secondly, for some clarity, I purchased these 2 drives at the same time from Newegg so the specs are the same(or should be at least)
The only problem that I am seeing right now is that the DNS unit seems to be seeing the two different HD's as "Volume_1". Does this pose a problem (especially when both are inserted at the same time)? The second drive will not allow me to remove the incomplete FFP folder so l have to figure that out before I can proceed. But I think that this might have to do with me doing it incorrectly that first time out of inexperience. I can't even telnet into it so it looks like I get to go back and use windows to format and make it recognized by the DNS unit before I can copy and boot ffp onto it...
Any advice on how to proceed?
I will be signing off and won't be able to work on this until tomorrow night....but it may be later on this week. Mind if I PM you specifically with questions bq041? I will be monitoring this sight from work though should anything come up...
Best Regards
Kdogg
Offline
Here is where I believe your source of confusion is. /dev/sdb refers to the second scsi device that the DNS has found. When you boot up the device with 1 drive in it, then push in the second drive, /dev/sda will be the one you booted from and /dev/sdb will be the one you inserted. The system does not know or care which drive it is, or whether it is in the left or right slot. However, if you boot up the DNS with both drives installed, it will look at the left bay first (drive 0) and the right bay second (drive 1). The drive in the left bay will be /dev/sda and the drive in the right bay will be /dev/sdb.
In my scenario above, since the unit is (or should have been) booted from only 1 drive installed, that installed drive will always be /dev/sda. Once you push the other drive into its slot, it will always be /dev/sdb. That is why you can fdisk /dev/sdb the second time and it is the other drive.
You are not seeing both disks as Volume_1. That would only be the case if it was set-up in RAID1. What you are seeing is 1 disk and not the other. For a brief summary of the instructions:
1) Install ffp on the 1 working disk, boot up on that disk only, telnet in, pop in the second disk, fdisk and format /dev/sdb (1/2/4)
2) Shut down the unit.
3) Remove the original disk (the one that you booted from and has ffp)
4) Boot up the unit on the freshly formatted disk, install ffp on this disk and reboot (this disk will now be the /dev/sda disk as the unit is booted from it).
5) Telnet in, pop in the disk you removed, fdisk and format this disk (it will be /dev/sdb2 since it was added after the boot)
6) Reboot the unit. Now you should have 2 individual volumes running on the DNS.
Offline
Kdoggwiley wrote:
I am guessing that this is the log file(even though I saw no extension on the file)....
You saw no extension on it because your windows machine is set to "hide extentions of known file types". Since a .log file is known to windows, it was hiding it from you.
Last edited by bq041 (2008-06-09 17:18:51)
Offline
Ok I think I am understanding more now. I will try this out when I get time tonight and see if I can get her rolling...
Between step 3 and 4 though should I move /dev/sdb over to drive 0 before I proceed to fdisking (the now current) /dev/sda?
This makes a bit more sense now that you described it since when I did fdisk etc I was wondering why it woule mess with the drive in "drive 1"
Last edited by Kdoggwiley (2008-06-09 18:34:44)
Offline
No, it is not necessary. When booting from only 1 drive, location in the device (left or right bay) does not matter. The drive will always be /dev/sda for the boot drive. Position only becomes really important when booting the unit up with 2 drive in it, and when creating RAID arrays.
The reason I do not want you to swap the drive to the other location is because the serial number of the drive is stored in the DNS' flash memory, and it is done by physical location. While it really won't matter in these first steps you are doing, it will later if you want to build a RAID array.
Just remember, you will always run fdisk on /dev/sdb, never on /dev/sda.
Offline
Got it, I only did what I saw from your previous posts, so even though I switched positions and fdisk'ed /dev/sdb I was still ok all along. So just out of pure ignorance last night I was running in circles
Oh well, I will make another attempt at this tonight.
Thanks again bq041
KW
Offline
bq041 wrote:
No, it does not reset the information. I just tested it.
That's rather unfortunate. Is there a command that I can issue via telnet to reset it then?
Offline
blahsome wrote:
bq041 wrote:
No, it does not reset the information. I just tested it.
That's rather unfortunate. Is there a command that I can issue via telnet to reset it then?
Not exactlly. Since it is stored in flash, you first need to mount it and then modify the file. Here is the command line instructions for it. It could be written into a scrip, but be very careful as this is modifying the flash.
/ # mount -t minix /dev/mtdblock0 /sys/mtd1 #Mounts flash block 1 / # mount -t minix /dev/mtdblock1 /sys/mtd2 #Mounts flash block 0 / # sed -i -e '3,4d' /sys/mtd1/hd_magic_num # Deletes lines 3 and 4 from file hd_magic_num / # sed -i -e '3,4d' /sys/mtd2/hd_magic_num # see above / # umount /sys/mtd1 # Unmounts flash / # umount /sys/mtd2 # See above / #
Very important to not forget to unmount the flash. If you reboot without unmounting it, you will get errors in your dmesg and will need to run fsck.minix on the flash. It is better not to have to worry about this.
Offline
Kdoggwiley --
Don't get frustrated. Play around a little bit in the telnet session before you put in the other drive. Look to see what is going on, so you will learn how the system funtions. Try a few of these commands:
ls - directory list same as dir in DOS/Windows cd /xxx/yyy -change directory to directory /xxx/yyy (the slashes are opposite from windows) cat /proc/partitions - displays the partition information as seen by the Linux kernel. Try this command before you insert the second drive, and after. You will see a change.
For help on the commands, just add --help after it. See example:
/ # ls --help BusyBox v1.10.1 (2008-04-19 12:53:41 CEST) multi-call binary Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...] List directory contents Options: -1 List files in a single column -A Do not list implied . and .. -a Do not hide entries starting with . -C List entries by columns -c With -l: show ctime --color[={always,never,auto}] Control coloring -d List directory entries instead of contents -e List both full date and full time -F Append indicator (one of */=@|) to entries -i List the i-node for each file -l Use a long listing format -n List numeric UIDs and GIDs instead of names -p Append indicator (one of /=@|) to entries -L List entries pointed to by symlinks -R List subdirectories recursively -r Sort the listing in reverse order -S Sort the listing by file size -s List the size of each file, in blocks -T NUM Assume Tabstop every NUM columns -t With -l: show modification time -u With -l: show access time -v Sort the listing by version -w NUM Assume the terminal is NUM columns wide -x List entries by lines instead of by columns -X Sort the listing by extension -h Print sizes in human readable format (e.g., 1K 243M 2G) / # cat --help BusyBox v1.10.1 (2008-04-19 12:53:41 CEST) multi-call binary Usage: cat [-u] [FILE]... Concatenate FILE(s) and print them to stdout Options: -u Use unbuffered i/o (ignored) / #
Offline
No frustration here caused from the assistance. I am just thankful that there are some people willing to walk others through to get what they want when the great little product made failed to deliver. it has super potential but a shame that the community had to finish Dlinks work!
I was playing around with the limited knowledge that I do have so I would feel more comfortable with it and started to feel more at ease. I did pull something to do with DOS up and then couldn't figure out what was going on so I ended my session and tried to log back in nad then re-fdisked again...
Oh well...all is good! Hopefully tonight will be more eventful...
Offline
BAM!
Done....
Next?
However I do have one question.....According to windows networked drive section it shows that I have 686 Total and 651Gigs free per drive....I am assuming that the 686 is the way that the drive is treated inside of windows? and then the 5%(which works out to be 651.7 is what that is showing) Reason why I ask is because when I log into the DNS GUI and go to "status" it shows 2 drives with roughly 737 Gigs on each drive as the drive capacity and then unused(volume_1) is 699765 MB and (volume_2) 699802 MB free...
Just weird looking to see that I am out about 100 gigs off the nominal size..... Just wondering really...
Thanks
Last edited by Kdoggwiley (2008-06-10 04:15:16)
Offline
I would not trust the windows network drive section.
Anyway, did you want to set up as RAID 1? If so, I cannot do much for you until Friday. I am traveling on business and all my stuff is at home.
Offline
Understood....that will be fine. I appreciate the help... That way I can read up on other stuff here on the sight and see if anything tickles my fancy with capabilities of components that I already have(i.e. wired home network, Xbox, Xbox360) hmm
thanks again
KW
Offline
bq041 wrote:
To format the drive properly after you have done the above fdisk:
Looks like I got lucky when recovering from the 94% issue. I installed one drive, got it formatted OK, & installed ffp. Push in 2nd drive. Then I telnetted in and built the partition table on the second drive as described above. Then I rebooted. Oops. Forgot to format the 2nd drive. When it asked to format it for me, I said OK, and it worked fine. Now I have Volume_1 and Volume_2 which is what I wanted.
Regards
C
Offline
I just got this last night and was still trying to figure out the device. Could not get fun_plug to work after firmware upgrade from 1.0 -> 1.05. Redid my RAID to RAID-1 and started to put some data in. Tot that why fun_plug could not work was because I already had data inside.. so since i was still in test/setup phase, decided to redo my RAID-1 config again.
This is when things started to get bad. To my horror, I saw a notice that the reformat FAILED and it needed to reboot. Once reboot, it told me that one of my drive needs to be formatted.. and I guess the rest is already familiar in this thread.
I tried to downgrade to 1.04 and redo RAID-1. NO GO.
I upgrade back to 1.05 and redo RAID-1. NO GO.
Then I did these steps.. and I got back my device.. without going thru telnet option.
1. I then.. decided to skip the screen when notified to reformat one of my drives, and did a HARD RESERT via the Web admin (Return to Factory Default).
2. Select to redo RAID option and chose instead, to setup as JBOD. (2x500GB Western D)
3. The above completed well.. so I then wen ahead and redo my RAID again.. this time back to RAID-1 (which is what I really want)
4. Fingers crossed, it did not get stuck at the sickening 94% mark and completed!
YEAH!!!!
If anyone has this reformat-loop horror, try this and post your results.
Cheers!
Offline
So I finally gave in and called tech support on the 94% freeze issue. You will never guess what the solution was.
They asked me to remove all the .NET installations (I removed all but the most recent version so as not to screw up all the other applications running on my machine) in add/remove programs. I asked them how on earth that could be the problem since I am using a web browser and the unit itself handles the formatting. He claimed that somehow .NET corrupted the information sent to the unit to tell it to format ?????
The only other thing I did was leave the unit unplugged for a few days (since I could not get it to work yet). The power off may have had nothing to do with it but I am mentioning it anyway in case the previous theory of the unit "remembering" the drives holds water. I think that it is possible that it does remember the drives perhaps to make sure when replacing a failed drive in RAID1 that it does not think the working drive is the new drive.
So either .NET unistall or a 3 day power off did the trick.
Please try and let the rest of us that still need info know. For now I am up and running.
Offline
The unit remembering the drives is not a theory. The serial numbers are stored in flash /dev/mtdblock0 and /dev/mtdblock1 under the file name hd_magic_num. Mount them and see for yourself.
Last edited by bq041 (2008-06-14 02:27:23)
Offline
DNS-Looped wrote:
The only other thing I did was leave the unit unplugged for a few days (since I could not get it to work yet). The power off may have had nothing to do with it but I am mentioning it anyway in case the previous theory of the unit "remembering" the drives holds water. I think that it is possible that it does remember the drives perhaps to make sure when replacing a failed drive in RAID1 that it does not think the working drive is the new drive.
Well - if that was the intent, they need to go back to the drawing board - because the unit, even with fw 1.05 is quite capable of doing exactly that.
Offline
SO does anyone think the .NET framework was the actual problem???
Offline
DNS-Looped wrote:
SO does anyone think the .NET framework was the actual problem???
nope.. I don't even have .Net installed and it gave me endless 94% errors.
Essentially for me, this is the way to do it.
1. Reset config back to factory. i.e. clear all settings.
2. re-config drives into any other mode.. except that one that you had
3. if successful, reconfig the RAID back to what you actually want.
This is what I did which works for me.
Offline
Ok BQ041,I'm ready to get this RAID1 thing rolling! I will be out most if not all today but will try this tonight once I return if you had a chance to uplad the directions(or since you have probably done this a million times, point to to the correct link as my searching isn't direct enough I guess. I thank that on people going off on tangencies!
Offline
Okay, here it is. First a couple of things that could cause errors. First, this is only for F/W 1.04 or 1.05. I have not have time yet to make one for F/W 1.03. In the web admin tool, turn off the iTunes, UPNP, and FTP servers. You can turn them back on after you are done (they lock access on the configuration partitions).
Any data you wish to keep needs to be on drive 1 (left bay usually Volume_2).
1) Copy the attached file to the root of drive 0 (usually Volume_1).
2) Telnet in
3) Run the following command:
/ # /mnt/HD_a2/build_raid1_1.04_1.05.sh
4) Follow the instructions at the end. I will also put them here.
1) Shutdown the unit using the web admin tool
2) Remove drive 0 (right bay)
3) Start up the unit
4) Telnet in
5) Push in drive 0
6) Run this command:
/# /mnt/HD_a2/raid1.sh
Once this has run, both drive lights should start blinking, indicating that sync is taking place. You can monitor this in the web admin tool. Do NOT shutdown, reboot, or interupt the power until sync is finished.
Offline
still having problems, I am getting a random pink LED when trying to form the array.....
I will try it once again from the ground up just to make sure....
Offline
The amber light is normal until you reboot when manually forming the array. This time as soon as you form the second half of the array (when it starts syncing) enter the command:
do_reboot
Last edited by bq041 (2008-06-21 02:03:59)
Offline