Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hello,
I have the debian squeeze installed on my DNS-320, and two hard drives on it.
However the only HD that it mounted and I can access is Volume 1 (HD/HD_a2), where the debian squeeze/funplug is installed.
I want to access the Volume 2 too (the other hard drive) but I cannot understand how to do it.
I tried with different /dev/sda options (e.g. mount sda1, sda2, etc.) but with no luck. I tried the same thing with /dev/hda and no luck either.
Since I am a linux begginner, could you help me get my other disk recognized?
Thank you,
Tiago Trindade
Offline
A
cat /proc/partitions
will show you all connected block devices. In this case I can already tell you that you'll have to mount a partition of /dev/sdb, (/dev/sdb1, /dev/sdb2, ...)
Offline
Thank you very much Mijzelf.
You were right, Volume_1 is on the /dev/sdb2 .
Offline
add
export DISK2=/mnt/HD/HD_b2
if [ -d $DISK2 ] ; then mkdir -p $DISTDIR$DISK2 ; mount --bind $DISK2 $DISTDIR$DISK2 ; fi
to your fun_plug file and restart your nas
Last edited by nix_zero (2013-05-17 20:51:36)
Offline
Thank you for the additional help nix_zero!
Offline
hi guy i am faust
i have a little bit problem i have dns 320 i want connect a second hdd i do modify at fun_plug
this is my fun_plug
#!/bin/sh
# Root DISK1
export DISK1=/mnt/HD/HD_a2
export DISTDIR=squeeze
cd $DISK1
mount --bind $DISK1 $DISTDIR$DISK1
mount --bind / $DISTDIR/mnt/root
mount --bind /dev $DISTDIR/dev
mount --bind /sys $DISTDIR/sys
#mount --bind /sys/crfs $DISTDIR/sys/crfs
#mount --bind /web $DISTDIR/web
mount --bind /proc $DISTDIR/proc
cp -f /proc/mounts $DISTDIR/etc/mtab
rm -f $DISTDIR/etc/fstab
touch $DISTDIR/etc/fstab
cp -f /etc/resolv.conf $DISTDIR/etc
hostname >$DISTDIR/etc/hostname
cp -f /etc/hosts $DISTDIR/etc
$DISK1/$DISTDIR/boot/chroot $DISK1/$DISTDIR /boot/linuxrc
# DISK2
export DISK2=/mnt/HD/HD_b2
mount --bind $DISK2 $DISTDIR$DISK2
but when i shutdown dns 320 , insert second hdd , and restart, when i try to login in ssh , i have error : connection refused
if remove second hdd , go perfectly , but ofcourse not have a second hdd
Offline
Hello, Faustf.
Revert the changes, insert the second disk, initialize/format it via web interface. After that, login via PuTTY (or whatever SSH client you use) and just follow Nix_zero's post. That if checks the mount point existence; if it's not there, it will create it.
If you don't want to restart, but you want to mount the disk (you'll just need it once; afterwards, the disk will be mounted at system startup):
mkdir /mnt/HD/HD_b2
mount /dev/sdb2 /mnt/HD/HD_b2
Good luck
Last edited by baltzatu (2013-10-29 23:53:00)
Offline
i just do this , i insert new blank disk , turn on the dns , format by web interface, try to enter in ssh , but tell me : connection refused , i go by lan in \\192.168.1.7\Volume_1\ and look if mount HD_a2 , but the folder is empty , i think when i insert , second disk , dont start fun_plug, and i dont know why , i go in web interface for , controll if i , deactivated mirror , or bit torrent , or other , i deactivated all possible. but give me the same error : connection refused and dont mount (((
Offline
Okay... no need to panic yet
On my NAS, the first disk is placed on the right slot. Have you tried switching the disks? I'm not sure that it will help, but you can try.
Last edited by baltzatu (2013-10-30 20:52:28)
Offline
yea baltzatu is right the mistake is right or left uff ahahhah but , i have another questions
when i open by netbios \\192.168.1.7\Volume_1\ where is root folder???
Offline
is very strange : if i use web file server , of nas , i can look and browse root folder , in netbios no
Offline
Glad it's solved
There is no "root" shared folder. You can only share "Volume_1" and "Volume_2", which correspond to first and and second disk "roots" (/mnt/HD/HD_a2 and /mnt/HD/HD_b2).
If you have problems with some (or all) network shares (they disappear after a restart), check this post.
Good luck
Last edited by baltzatu (2013-10-31 17:26:13)
Offline