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 2008-05-22 16:38:58

Voziv
New member
From: exiva "voziv
Registered: 2008-05-22
Posts: 2
Website

Odd Partitions: Waste of space?

So.. recently I decided to investigate what HD_a4 and HD_b4 are on my drives, and to my surprise I got the following from "DF -h".

Code:

/dev/md0              1.4T  1.2T  204G  86% /mnt/HD_a2
/dev/sda4             487M  141K  487M   1% /mnt/HD_a4
/dev/sdb4             487M  2.0K  487M   1% /mnt/HD_b4

The /dev/md0 is 2x750gb drives in Raid 0, but the other 2 I have no idea. Apparently they are independant as I created a random.txt on the HD_a4 and it did not appear in the HD_b4. Are they merely a waste of space? roll

Also here is Mount

Code:

rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw,nodiratime)
/dev/loop0 on /sys/crfs type cramfs (ro)
/dev/md0 on /mnt/HD_a2 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)
devpts on /dev/pts type devpts (rw)

Your help is much appreciated

-Voziv

Last edited by Voziv (2008-05-22 16:39:19)


-Truth is a lie

Offline

 

#2 2008-05-22 18:35:42

bspvette86
Member
Registered: 2008-05-09
Posts: 81

Re: Odd Partitions: Waste of space?

Those file systems are used to house the UPnP database, Disk layout, etc...  It would not be advisable to remove them unless you want your unit to quit working as designed.

Do a "find /mnt/HD_a4"  and look at the contents of some of the files.  You might learn a bit about how these things work.

Cheers!
bspvette

Offline

 

#3 2008-05-22 19:14:18

SilentException
Member
From: Island of Krk, Croatia
Registered: 2008-05-04
Posts: 148

Re: Odd Partitions: Waste of space?

basically you "loose" around 2gb when using 2 disks with dns-323. 1gb for HD_a4 and HD_b4 and 1gb for swap partitions. no biggie if you ask me smile


D-Link DNS-323 v1.05 fun_plug-ed + many mods,  2 x 320GB Seagate Barracuda 7200.10 RAID0, Cat6 Gigabit Network, 9k Jumbo Frames, Average (WRITE): 19,32 MB/sec, Average (READ): 28,6 MB/sec

Offline

 

#4 2008-05-22 19:56:24

skydreamer
Member
From: At the Atlantic Coast
Registered: 2007-01-06
Posts: 232

Re: Odd Partitions: Waste of space?

bspvette86 wrote:

Those file systems are used to house the UPnP database, Disk layout, etc...  It would not be advisable to remove them unless you want your unit to quit working as designed.

Do a "find /mnt/HD_a4"  and look at the contents of some of the files.  You might learn a bit about how these things work.

Cheers!
bspvette

I am not sure if this holds true, looking at another thread I asked exactly the same question last week and got response back that under v1.05 firmware the disks are formatted only with two partitions.

http://dns323.kood.org/forum/t2199-Firm … -site.html
post # 15

Offline

 

#5 2008-05-22 20:03:01

bspvette86
Member
Registered: 2008-05-09
Posts: 81

Re: Odd Partitions: Waste of space?

My A1 unit has all three partions when formatted using 1.05.

sda1 Swap
sda2 Data
sda4 Config

I would guess that if you had both raid and jbod, that there would be a sda3 with data as well.  I'll check tonight...

Cheers!
bspvette

Offline

 

#6 2008-05-22 21:01:44

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Odd Partitions: Waste of space?

I manually set mine up with only 2 partitions (1 and 2).  All my config files that were under partition 4 are now found on partition 2.  The units have been running great with no noticeable degradation.  However, I cannot comment on UPNP since I have it disabled and always had.  I would guess that the login scripts are written to search partition 2 if partition 4 is not found.  I have found this type of coding in some of the D-Link scripts, such as looking at sdb2 for the BT client if it's not found on sda2.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#7 2008-05-23 17:37:13

bspvette86
Member
Registered: 2008-05-09
Posts: 81

Re: Odd Partitions: Waste of space?

As I expected, reformatting with a RAID / JBOD combo creates 4 partitions per physical disk.

sda1 Swap DNS-323
sda2 Data RAID
sda3 Data JBOD
sda4 Config DNS-323

sdb1 Swap DNS-323
sdb2 Data RAID
sdb3 Data JBOD
sdb4 Config DNS-323

Cheers!
bsp

Offline

 

#8 2009-04-08 21:31:37

talkingRock
Member
Registered: 2009-03-26
Posts: 100

Re: Odd Partitions: Waste of space?

I've been wondering exactly this same thing about my DNS-321.

Clearly the swap partitions are useful and need to be left alone.

The HD_a4 and HD_b4 partitions, when using "standard" mode seem like another matter entirely.  From what I can see of the files that exist there, they are dedicated to control files for the uPnP and itunes servers, neither of which I use. 

So, these partitions are about 500MB, a perfect size to put the ffp files and my rsnapshot configuration and automation files.    This makes the a2 and b2 partitions clean as just snapshots, well except for the "fun_plug" file on a2.     

Has anyone tried this?
Does it work?
Is it more than aesthetically useful?   (500mb on a 1.5TB drive doesn't seem like anything worth worrying about.)

Duaine

Offline

 

#9 2009-04-09 21:03:36

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Odd Partitions: Waste of space?

a4 and b4 are not just for upnp and itunes.  They have config files that are crucial to the DNS' operation.  These store the setup information that the DNS uses each time the web utility is run to determine the setup.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB