USB mounting and unmounting
usb-storage mount and unmount scripts: Download file
The USB 1.1 ports behind are not only for connecting to USB printers. With the correct kernel module loaded, you can attach a flash disk or portable harddisk to it.
Extract the files to the following location
/mnt/HD_a2
The current scripts assume that you have only got one harddisk installed in the DNS-323, hence it will attempt to mount partition 1 on sdb. In linux, the harddisk naming goes like this:
1st harddisk – sda
2nd harddisk – sdb
3rd harddisk – sdc
…
So you should customise both the script to suit yourself. The scripts are used to mount FAT32 partitions and not NTFS. To mount NTFS partitions, you would need the necessary NTFS kernel module and edit the mount arguments.
The script actually creates a USB directory in /mnt/HD_a2 and mount the attached drive in this location. A timer has been included to allow the system to recognise the flash disk or portable drive before attempting to do a mount.
It is (strongly) advised to umount the device everytime before you perform a shutdown or unplug the attach device else you might experience data loss.
References:
DNS323WIKI
forum thread on DSM-G600, DNS-323 and TS-I300 Hack Forum