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 2013-01-13 14:14:35

djb146
New member
Registered: 2013-01-13
Posts: 2

Using very large USB devices on DNS-323

Has anyone successfully mounted a large USB device (3Tbyte MyBook) on the DNS-323?

My configuration:
- DNS-323 with 1.10 firmware
- ffp version 0.7
- usb device driver (which is working fine for smaller drives)

I suspect the problem is the file size limitation for ext2 f/s (2Tbytes?) and i can't find a solution for that.

Alternatively, has anyone successfully mounted an NTFS formatted USB device?

Offline

 

#2 2013-01-13 16:02:07

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Using very large USB devices on DNS-323

Yes - to the NTFS formatted USB device, however, it was a very long time ago, and more of a "can I do this" deal that an intent to use it - the required steps and a link to the required ntfs kernal driver (I believe ntfs.ko) are somewhere in the forum.

Offline

 

#3 2013-01-13 16:34:24

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: Using very large USB devices on DNS-323

Here is my setup.sh script that I use to mount my USB linux drive

Code:

#!/bin/sh

# .bootstrap/setup.sh
# This script is called by FFP fun_plug early in the run, before all the 
# other scripts in ffp/start so it is a good place to perform setup operations
# such as loading the USB device etc

export PATH=${PATH}:/mnt/HD_a2/ffp/sbin:/mnt/HD_a2/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin

# Fixup firmware issues

# Increase the number of open file handles in ulimit
/bin/echo "Setting the ulimit number of open file handles to 65535"
#echo `ulimit -a`
ulimit -n 65535
echo `ulimit -a`

# Fix time zone information.
echo "Setting Time Zone information in /etc/TZ to EST5EDT,M3.2.0,M11.1.0"
echo "EST5EDT,M3.2.0,M11.1.0" > /etc/TZ
if ! grep -q ntp /etc/services >/dev/null; then
  echo "Adding the ntp service port 123 to /etc/services"
  echo "ntp 123/udp" >>/etc/services
else
  echo "Warning - The ntp service port 123 is already listed in /etc/services!"
fi

usbdisk_mount_options="-t ext2"
usbdisk_dev="sdc1"
usbdisk_alt="sdc"
usbdisk_name="usb"
usbdisk_mountp="/mnt/${usbdisk_name}"
usbdisk_delay=30

echo "Loading the USB storage driver"
insmod /mnt/HD_a2/.bootstrap/usb-storage.ko

# Ensure the usb-storage module is loaded
/bin/grep -q usb_storage /proc/modules
if [ $? -eq 0 ]; then
  echo "The usb-storage.ko module was loaded"
  # loop and wait for disk to initialize
  let timeout=${usbdisk_delay}
  while [ ${timeout} -gt 0 ]; do
  echo "Waiting up to ${timeout} seconds for the USB device ${usbdisk_dev} to initialize"
  /bin/grep -q ${usbdisk_dev} /proc/partitions
  [ $? -eq 0 ] && break
    sleep 2
    let timeout=${timeout}-2
  done
  let elapsed=${usbdisk_delay}-${timeout}
  echo "Waited ${elapsed} seconds."
  /bin/grep -q ${usbdisk_dev} /proc/partitions
  if [ $? -eq 0 ]; then
    # Disk found. Attempt to create mount point.
    mkdir -p ${usbdisk_mountp}
    if ! mount | grep -q ${usbdisk_mountp}; then
      echo "Mounting /dev/${usbdisk_dev} on ${usbdisk_mountp}"
      echo "Running command: [mount ${usbdisk_mount_options} /dev/${usbdisk_dev} ${usbdisk_mountp}]"
      mount ${usbdisk_mount_options} /dev/${usbdisk_dev} ${usbdisk_mountp}
      echo "Running alternate command: [mount ${usbdisk_mount_options} /dev/${usbdisk_alt} ${usbdisk_mountp}]"
      mount ${usbdisk_mount_options} /dev/${usbdisk_alt} ${usbdisk_mountp}
      if [ $? -eq 0 ]; then
        echo "/dev/${usbdisk_dev} was mounted as ${usbdisk_mountp}"
        # Test for existence of ffp on USB drive
        if [ -d ${usbdisk_mountp}/ffp ]; then
          # Establish path to symlink
          FFP_PATH="${usbdisk_mountp}/ffp"
        fi
      else
        echo "Warning - failed to mount /dev/${usbdisk_dev}!"
      fi
    fi
  else
    echo "Warning - failed to mount /dev/${usbdisk_dev}. Did not find ${usbdisk_dev} in /proc/partitions!"
  fi
else
  echo "Warning - usb-storage.ko module is not loaded!"
fi

#eof

Last edited by FunFiler (2013-01-13 16:37:03)


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#4 2013-01-13 17:11:44

scaramanga
Member
Registered: 2010-08-04
Posts: 251

Re: Using very large USB devices on DNS-323

djb146 wrote:

Has anyone successfully mounted a large USB device (3Tbyte MyBook) on the DNS-323?
...
I suspect the problem is the file size limitation for ext2 f/s (2Tbytes?) and i can't find a solution for that.

The problem is that the official firmware only supports MBR partitioned drives. MBR only supports up to 2TB HDDs. It is a safe guess that your HDD is using GPT.

If I'm not mistaken ALT-F supports GPT. Not sure if out of the box or only after installing an additional package.

Last edited by scaramanga (2013-01-13 17:12:59)


DNS-323 HW Rev. C1 FW 1.10 fun-plug 0.5
2 x WD10EARS-00Y5B1 in Standard mode (LCC set to 5 min; Aligned to 4K)
Transmission with Transmission Remote GUI

Offline

 

#5 2013-01-14 10:26:04

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Using very large USB devices on DNS-323

Your disk is intended to have an ext2 filesystem? Does that mean you don't want to use in on a Windows system? In that case you could just skip the partititon table, and use disk itself

Code:

mke2fs /dev/sdc

Offline

 

#6 2013-01-15 14:06:14

djb146
New member
Registered: 2013-01-13
Posts: 2

Re: Using very large USB devices on DNS-323

Thanks all for your comments and assistance.

- I tried alt-f and it temporarily bricked my NAS by corrupting boot process.
- mke2fs won't work due to limitations identified by scaramanga.
- I tried ntfs.ko and it didn't work (I suspect due to my upgraded firmware v1.10 versus 1.03 or 1.04).
- I do wish to be able to use the MyBook on a windows occasionally (but may have to abandon that goal).

I haven't given up and if I find something that works reliably i will post my procedures.

Offline

 

#7 2013-01-16 13:08:31

scaramanga
Member
Registered: 2010-08-04
Posts: 251

Re: Using very large USB devices on DNS-323

djb146 wrote:

Thanks all for your comments and assistance.

- I tried alt-f and it temporarily bricked my NAS by corrupting boot process.
- mke2fs won't work due to limitations identified by scaramanga.
- I tried ntfs.ko and it didn't work (I suspect due to my upgraded firmware v1.10 versus 1.03 or 1.04).
- I do wish to be able to use the MyBook on a windows occasionally (but may have to abandon that goal).

I haven't given up and if I find something that works reliably i will post my procedures.

Give Alt-F a second chance. Don't flash - use the reolad method. That's what I'm currently doing.


DNS-323 HW Rev. C1 FW 1.10 fun-plug 0.5
2 x WD10EARS-00Y5B1 in Standard mode (LCC set to 5 min; Aligned to 4K)
Transmission with Transmission Remote GUI

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB