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 2013-05-12 09:08:33

tiago.trindade
Member
Registered: 2012-09-25
Posts: 8

DNS-320 Debian Squeeze Access to Both Hard Drives

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

 

#2 2013-05-12 15:10:23

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

A

Code:

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

 

#3 2013-05-12 20:17:03

tiago.trindade
Member
Registered: 2012-09-25
Posts: 8

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

Thank you very much Mijzelf.

You were right, Volume_1 is on the /dev/sdb2 .

Offline

 

#4 2013-05-17 20:47:10

nix_zero
New member
Registered: 2013-05-17
Posts: 2

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

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

 

#5 2013-05-24 00:32:06

tiago.trindade
Member
Registered: 2012-09-25
Posts: 8

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

Thank you for the additional help nix_zero!

Offline

 

#6 2013-10-29 19:37:08

faustf
Member
Registered: 2013-10-29
Posts: 8

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

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

 

#7 2013-10-29 23:43:27

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

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 smile

Last edited by baltzatu (2013-10-29 23:53:00)


Moo... or something...

Offline

 

#8 2013-10-30 10:01:13

faustf
Member
Registered: 2013-10-29
Posts: 8

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

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  sad(((

Offline

 

#9 2013-10-30 20:51:26

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

Okay... no need to panic yet smile

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)


Moo... or something...

Offline

 

#10 2013-10-31 15:28:37

faustf
Member
Registered: 2013-10-29
Posts: 8

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

yea   baltzatu  is  right  the  mistake  is  right  or left  uff  big_smile  ahahhah  but , i have  another  questions
when  i open  by  netbios  \\192.168.1.7\Volume_1\       where is  root  folder???

Offline

 

#11 2013-10-31 15:31:07

faustf
Member
Registered: 2013-10-29
Posts: 8

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

is very strange : if i  use  web file server  , of  nas  , i can  look and  browse  root  folder , in netbios  no sad

Offline

 

#12 2013-10-31 17:21:47

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 Debian Squeeze Access to Both Hard Drives

Glad it's solved smile

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 smile

Last edited by baltzatu (2013-10-31 17:26:13)


Moo... or something...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB