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-06-06 18:41:25

congee
Member
Registered: 2010-06-02
Posts: 11

4K support for the DNS-323 under RAID

Hi,

I know I've already started a couple of threads regarding this, but the titles weren't exactly explicit regarding what I wanted to do.

I've been trying to get my 323 to properly support 4K drives under RAID, but I've run into a few snags. If someone can help me out (preferably someone with strong Linux skills), I'll put together a HOWTO once I get it working.

My setup:
DNS-323, rev C1
Firmware 1.08
2 x WD10EARS 1TB drives (Western Digital 1TB Green Drives with Advanced Formatting)

I managed to get fun_plug up and running, and managed to get SMB and the swap files stopped. However, once I start changing the partitions on SDB, I get an ERROR 16 when I tell FDISK to "write" the partition table. I can partition SDA without issue, but can't get SDB to work at all. And it doesn't matter if I do SDB or SDA first: the problem always lies on SDB.

Here is what my console looks like when I try to write the new partition structure to SDB:

Code:

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

My guess is that I'm not running FDISK from the RAM drive. I'm not a Linux guy, so I wouldn't be surprised if I screwed that part up. Would appreciate some help with my STARTTELNET.SH file:


Code:

# improved starttelnet.sh, enabling the filesystems to be unmounted and checked, if need be. 
 
# copy the provided components to a directory on the ramdisk
# the ramdisk is regenerated with every boot, so the copy has no lasting effects at all
# simply copy the two files over
cp /mnt/HD_a2/lnx_bin/utelnetd /sbin/utelnetd
cp /mnt/HD_a2/lnx_bin/busybox3 /bin/busybox3

# this part will copy fdisk to the RAM drive
mkdir /ffp
mkdir /ffp/lib
cp /mnt/HD_a2/ffp/lib/*.* /ffp/lib
cp /mnt/HD_a2/fdisk /tmp/fdisk

# create the terminal device as usual
/bin/busybox3 mknod /dev/ptyp0 c 2 0
/bin/busybox3 chmod 0666 /dev/ptyp0
/bin/busybox3 mknod /dev/ttyp0 c 3 0
/bin/busybox3 chmod 0666 /dev/ttyp0

# make a shell link on the ramdisk
mkdir /bin/busybox3.dir/
PATH="$PATH:/bin/busybox3.dir"
 
ln -s /bin/busybox3  /bin/busybox3.dir/sh
 
# and start the Telnet service from the ramdisk as well
/sbin/utelnetd -l /bin/sh -d

Offline

 

#2 2010-06-25 08:19:28

Retardical_Sam
New member
Registered: 2010-06-25
Posts: 1

Re: 4K support for the DNS-323 under RAID

I'm getting what looks like the exact same thing - I tried proceeding and the hd_verify failed.  Anyone have any ideas?  I should add that I'm using the minimal fun_plug with just telnet on it, so it should be running off the RAM disk, but I too get an error 16 when writing the changes to sdb.

Last edited by Retardical_Sam (2010-06-25 08:21:11)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB