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 2009-03-01 13:07:56

Martin77
New member
Registered: 2008-04-20
Posts: 2

Howto manually partition a HDD for use in DNS-323

Hello,

I'm trying to gather some information about this issue.
Apparently the DNS tends to format the wrong drive when attaching a new drive to it. At least that happend to me and I read it also in some other posts in this forum.
Therefore I search for a way to manually perform all the necessary tasks and avoid DNS messing up with the disks.

This is what I THINK it could work. I would like to discuss with you guys before trying it out.

First step would be to create the partions on the disk:
This can be done by utilizing the fdisk tool which is already included on the DNS box (in case you can access it via a shell) or by booting a linux distribution, e.g. Knoppix and partitioning the HDD there.

According to posts in the forum the partition table schould look somewhat like this for a 1TB hdd:

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

I wonder if the size of /dev/sdb4 matters since my partition table (160 GB hdd) looks like this:

Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          66      530113+ 82 Linux swap
/dev/sda2              93       19457   155549362+ 83 Linux
/dev/sda4              67          92      208845  83 Linux


However, in /dev/sdb1 a swap partition is formatted by mkswap.
The other two partitions (sdb2 & sdb4) are formated with ext2 by using mke2fs.

Further, there are system folders called ".systemfile" on both, /dev/sdb2 & /dev/sdb4 partitions that probably need to be created and filled with proper information.
I guess a good idea is to just copy the information of the first drives systemfile folder ( sda2 -> sdb2 & sda4 -> sdb4) to the second drive and set the permissions in a similar manner.

Is that it or is threre any other important thing that needs to be done to make DNS accept the harddrive and mount it without formatting it (does e.g. the label of the hdd matter?) ?

BR
Martin

Offline

 

#2 2009-03-03 13:01:38

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: Howto manually partition a HDD for use in DNS-323

Martin77 wrote:

Is that it or is threre any other important thing that needs to be done to make DNS accept the harddrive and mount it without formatting it (does e.g. the label of the hdd matter?) ?

The DNS saves the partition UID in its flash. Not sure if you can change it.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB