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 2010-03-07 22:34:08

ygavet
New member
Registered: 2010-03-07
Posts: 2

debian chroot, 2 disks and mounts

Hello all,

I have a problem/question I cant answer.
I installed debian chroot "the easy way": http://dns323.kood.org/howto:chroot_debian

I have 2 disks of 1To each. I run a rsync server and make my backups in
/mnt/HD_a2/backups (1st disk),

then, with a cron, I perform a snapshot of this directory into /mnt/HD_b2 , which is disk2, see result of mount (twice a day).

My problem is that it seems that I only use 1 disk. Notice in the df output that HD_a2 and HD_b2 have the same usage... strange.

Code:

dlink-EAB785:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                916G  577G  339G  63% /
/dev/root             916G  577G  339G  63% /
/dev/loop0            5.7M  5.7M     0 100% /sys/crfs
/dev/sda2             916G  577G  339G  63% /mnt/HD_a2
/dev/sdb2             916G  577G  339G  63% /mnt/HD_b2
/dev/sda4             916G  577G  339G  63% /mnt/HD_a4
/dev/sdb4             916G  577G  339G  63% /mnt/HD_b4
/dev/sda2             916G  577G  339G  63% /mnt/HD_a2/linux/mnt/HD_a2
/dev/root             916G  577G  339G  63% /mnt/HD_a2/linux/mnt/root
/dev/root             916G  577G  339G  63% /mnt/HD_a2/linux/dev
/dev/root             916G  577G  339G  63% /mnt/HD_a2/linux/sys
df: `/mnt/HD_a2/linux/sys/crfs': No such file or directory
/dev/root             916G  577G  339G  63% /mnt/HD_a2/linux/web

Code:

dlink-EAB785:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw,nodiratime)
/dev/loop0 on /sys/crfs type squashfs (ro)
/dev/sda2 on /mnt/HD_a2 type ext2 (rw)
/dev/sdb2 on /mnt/HD_b2 type ext2 (rw)
/dev/sda4 on /mnt/HD_a4 type ext2 (rw)
/dev/sdb4 on /mnt/HD_b4 type ext2 (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/sda2 on /mnt/HD_a2/linux/mnt/HD_a2 type ext2 (rw)
/dev/root on /mnt/HD_a2/linux/mnt/root type ext2 (rw)
/dev/root on /mnt/HD_a2/linux/dev type ext2 (rw)
/dev/root on /mnt/HD_a2/linux/sys type ext2 (rw)
/dev/loop0 on /mnt/HD_a2/linux/sys/crfs type squashfs (ro)
/dev/root on /mnt/HD_a2/linux/web type ext2 (rw)
proc on /mnt/HD_a2/linux/proc type proc (rw,nodiratime)

The thing I dont understand is that there should be a difference between HD_a2 and HD_b2. More, when I use the http interface,
I get the information (volume 2 is not used at all !!):

Code:

Volume Name:     Volume_1
Total Hard Drive Capacity:     983454 MB
Used Space:     619478 MB
Unused Space:     363975 MB
Volume Name:     Volume_2
Total Hard Drive Capacity:     983454 MB
Used Space:     24 KB
Unused Space:     983454 MB

Could anyone explain this thing and how to correct it. Thanks a lot.

Offline

 

#2 2010-03-07 23:26:20

ygavet
New member
Registered: 2010-03-07
Posts: 2

Re: debian chroot, 2 disks and mounts

Well, I might have found a solution:

I didnt have any line in the fun_plug file mentionning /dev/hda2
So, I added the lines:

Code:

export DISK2=/mnt/HD_b2

mount --bind $DISK2 $DISTDIR$DISK2

After a reboot, the disk 2 is correctly mounted, and writing on /mnt/hd_b2 seems to be working:

Code:

df -h
Filesystem            Size  Used Avail Use% Mounted on
...
/dev/sda2             916G  577G  340G  63% /mnt/HD_a2
/dev/sdb2             916G  4.8G  912G   1% /mnt/HD_b2
...

I still have to correct some problems for hd_a4 and hd_b4...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB