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-09-05 19:02:47

spark
New member
Registered: 2010-09-05
Posts: 1

how to manually create partitions for the DNS323?

Hi, i'm new to this forum.
It seems the right place where i can found answers concerning my dns323.

I got this NAS from a friend who don't used it, without any drive inside.
I own a seagate barracuda 1,5TB previously used in a usb box, and i want to use it for DNS323 without loosing data.
The problem is that this drive contain more or less 1,2TB of data and i can backup just 500GB on another external drive.
The DNS323  ask me to reformat it when powered on, but i can't loose my old files.
I have a linux box (debian squeeze) with gparted where i can change partitions without loosing data, so i'm wondering if is possible to arrange things in order to make the drive "compatible" with the nas.
In other words i don't want to use the DNS323 internal format function while i can change the partitions structure with the drive connected to my debian box.
Is there a way to do this? which is the partition schema used by the dns323?

regards
spark

Offline

 

#2 2010-09-08 09:53:07

chriso
Member
Registered: 2009-03-29
Posts: 74

Re: how to manually create partitions for the DNS323?

Well I have no idea if you can get away with it, but here are some of the details you might need.
First off the file system is ext2.

Here is a df of mine:
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    9911      8059      1340  86% /
/dev/root                 9911      8059      1340  86% /
/dev/loop0                5760      5760         0 100% /sys/crfs
/dev/sda2            152807104  18136284 134670820  12% /mnt/HD_a2
/dev/sdb2            960404324  69412976 842205560   8% /mnt/HD_b2
/dev/sda4               497861     28824    469037   6% /mnt/HD_a4
/dev/sdb4               497861        18    497843   0% /mnt/HD_b4
/dev/sdc1               996116    175096    770420  19% /mnt/USB1
/dev/sdd1             76920416  18269444  54743564  25% /mnt/USB2
/dev/sdc1               996116    175096    770420  19% /opt

The HD_a* are the first drive, and HD_b* is the second.

Here is the fdisk list of the two hard drives:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          66      530113+ 82 Linux swap
/dev/sda2             131       19457   155244127+ 83 Linux
/dev/sda4              67         130      514080  83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1          66      530113+ 82 Linux swap
/dev/sdb2             131      121601   975715807+ 83 Linux
/dev/sdb4              67         130      514080  83 Linux

Also there is a .systemfile directory created on each of the drives that has samba and other information, that may or may not be created automatically.  And as such there might be something in there that if it doesn't exist the DNS-323 might not consider it a drive setup the way it likes:

root@DLink-NAS:/usr/bin# ls -l /mnt/HD_a2/.systemfile/ /mnt/HD_a4/.systemfile/
/mnt/HD_a2/.systemfile/:
-rwxr-xr-x    1 root     root           36 Aug 24 12:47 Certs.info
-rw-r--r--    1 root     root         1387 Aug 24 12:47 cacert.pem
-rw-r--r--    1 root     root         1751 Aug 24 12:47 cakey.pem
-rw-r--r--    1 root     root         1679 Aug 24 12:47 server-key-nopassword.pem
-rw-r--r--    1 root     root         3066 Aug 24 12:47 server.pem

/mnt/HD_a4/.systemfile/:
-rwxr-xr-x    1 root     root           36 Sep  5 13:52 Certs.info
-rw-r--r--    1 root     root         1387 Sep  5 13:52 cacert.pem
-rw-r--r--    1 root     root         1743 Sep  5 13:52 cakey.pem
-rw-r--r--    1 root     root            6 Feb  5  2009 hd_magic_num
-rwxr--r--    1 root     root          512 Jan 12  2009 raidtab
-rwxr-xr-x    1 root     root          310 Jan 12  2009 raidtab2web
drwxr-xr-x    2 root     root         1024 May  9  2008 samba
-rw-r--r--    1 root     root         1675 Sep  5 13:52 server-key-nopassword.pem
-rwxr--r--    1 root     root         3062 Sep  5 13:52 server.pem

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB