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-11-30 15:18:32

nickotar
Member
Registered: 2008-11-30
Posts: 16

Problem with custom partitioning

First of all I'd like to thank this community. I've found a lot of stuff helping me configuring my DNS-323.

I'm now experiencing one problem for which I didn't find any information though :
I got 2 drives in my NAS. They were at first formatted with the box as standalone drives. But for my needs I wanted to have more than one partition on the second drive. As fdisk doesn't work on the NAS (segmentation fault) and I didn't find a way to make it work, I've extracted drive 2 and repartitioned it on my linux desktop. I then put it back into the NAS and restarted it.

All seems to work fine. I can still log into my NAS (fun_plug 0.5), and my apps still work well. Drive 2 is well recognized with the new partitionning, and I can still mount Volume_2 through the network.
The only problem I am facing is that each time I log into the admin utility it prompts me to format drive 2. I have to skip this to get into the utility.

How could I avoid this behaviour ?

I guess I should not accept to format because I will probably lose my partitioning ?

I would just like it to consider that the formatting is done and to stop annoying me with this.

Last edited by nickotar (2008-11-30 15:19:21)

Offline

 

#2 2008-11-30 17:20:27

wirbel
Member
Registered: 2008-11-22
Posts: 20

Re: Problem with custom partitioning

If that helps you - i posted a working fdisk version here about 3 days ago.

Offline

 

#3 2008-11-30 17:52:13

nickotar
Member
Registered: 2008-11-30
Posts: 16

Re: Problem with custom partitioning

Thanks for your help.
I got it, but before testing this I'm waiting in case someone has a way to fix this without needing to partition again.

Offline

 

#4 2008-12-01 23:02:37

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

Re: Problem with custom partitioning

You erased the cofiguration files which are required to be in the 4th partition of the drive.  When you changed the partition information from what the DNS had done, you should only have deleted partition 2, then created partitions 2 and 3 from that space.  Partitions 1 and 4 are required to be setup in a specific manner and partition 4 is required to have specific configuration files stored on it.  Copy the files (which are in a hidden directory) from /mnt/HD_a4 to /mnt/HD_b4.  Make sure you have the hidden directory as well.

Last edited by bq041 (2008-12-01 23:04:08)


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

 

#5 2008-12-05 14:58:21

nickotar
Member
Registered: 2008-11-30
Posts: 16

Re: Problem with custom partitioning

In fact that's what I did, keeping partitions 1 (swap) and 4. I've also checked HD_a4 and HD_b4, they are exactly the same (same hd_magic_num). This is not enough.

Just to see what would happen, I decided to accept formatting. Bad idea : partition table got overwritten on disk 2, and disk 1 got formatted !

So I had to install all stuff from scratch once more.

After that, I've repeated the same steps on disk 2 :
- delete partition 2
- create new partition 2
- create new partition 3

Same result : everything works as expected, but I get the partition wizard each time I log on the web interface.

I found a way to avoid this : creating empty files "/web/hddok_b" and "/web/hddok" which where missing.
This workaround works fine, but I have to do this after each boot (automated with fun_plug).

This is not a completely satisfying solution though. I would like to know why these 2 files are not created automatically.

Offline

 

#6 2008-12-05 19:23:22

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Problem with custom partitioning

It sounds like the web interface is checking for "holes" between the end of partition 2 and the start of partition 4.

Can anyone else verify that the web interface complains about added partitions

Offline

 

#7 2008-12-06 10:00:25

nickotar
Member
Registered: 2008-11-30
Posts: 16

Re: Problem with custom partitioning

I think that it's not the web interface which does system checkings. Upon my guess, checkings are done at system startup and lead to creation of state files (like /web/hddok* and other ones).
Then the web interface just checks the existence of such files to determine what to display.

What would be interesting : to know what checkings are done, in order to have the right state files automatically created at system startup, if possible.

Offline

 

#8 2008-12-06 17:24:50

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

Re: Problem with custom partitioning

Actually the web interface not only checks, but initiates the binaries to write the files to the /tmp directory. 

The next thing that may have happened in this situation is that one of the sets of files in Flash got messed up.  If the 4th partitions were correct, then they would have needed to then be checked agains both flash locations.

Actually, I bet 2, 4, or 8 files were wrong.  In the raidtab and raidtab2web files, the lower half of the files specifies the information for partition 2 (the upper half for partition 2).  It was back in May I ran the tests, so I don't fully remember if those files need to be also on each hard drive when running with multiple partitions and individual disks.

I can verify that extra partitions are fine, and the web interface is okay with them provided they are set correctly, but as I said it was back in May, so I will need to experiment some to determine the config again.


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

 

#9 2008-12-08 04:42:34

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Problem with custom partitioning

bq041 wrote:

I can verify that extra partitions are fine, and the web interface is okay with them provided they are set correctly, but as I said it was back in May, so I will need to experiment some to determine the config again.

So just wanted to confirm that you are saying that as long as partitions 1,2,4 are left untouched (other than resizing partition to create more room), then you can add extra partitions without causing the dns-323 to reformat?

If so, can you make partition 3 a logical partition so that you then have unlimited new logical partitions as in sda5, ada6, etc.?

Offline

 

#10 2008-12-09 08:09:02

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

Re: Problem with custom partitioning

I'm not actually going that far.  I have not tested logical partitions, only partition 3 as a primary one (my plural, partitions, was refering to partition 3 on both disks).  Partition 3 is used by the DNS for the JBOD setup along with RAID1 and is looked at by the raidtab and raidtab2web files.  If I had to guess, I would say it is possible to make them logical, as long as the configureation files reflected that partition 3 correctly; I would venture that it would ignore the rest.  Of course they would need to be manually mounted.

If I didn't have a new baby at home right now, I would test it, but I've go my free time all tied up...


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