HDsamba Version 3 Available

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 31, 32, 33, 34, 35  Next
Author Message
Pandora-Box
DD-WRT User


Joined: 09 Mar 2008
Posts: 218
Location: USA

PostPosted: Sun Aug 23, 2009 2:34    Post subject: Reply with quote
You can try gparted-live to format your drive.
(I never had to wait 3hrs to format 1Tb drive)
Regarding FAT32, you will be limited with files sizes FAT32 can handle 2-4 GB max, so if you need file system for larger files, you might consider ext3 or ntfs (this one has still some writing issues).
Also, since, according to trac, dd-wrt devs seem to try to get kernel 2.6 implemented, you might just wait for a while and see what next future builds will bring and incorporate

_________________
Netgear R7000
Sponsor
jjgarciasp
DD-WRT User


Joined: 18 Jun 2006
Posts: 210
Location: Central Florida

PostPosted: Tue Aug 25, 2009 16:22    Post subject: Reply with quote
Ok... this is what I ultimately ended up with.

Got tired of messing with the 1TB drive and the formatting using Partition Magic.

When you mentined GParted... I had an epiphany.

I have an OpenSUSE 11.1 box running.

So I plugged in the 1TB USB drive to the OpenSUSE box, used Yast Partitioner to wipe its partitions and created / formatted one big Ext3 partition.

Plugged it in to the router, mounted manually and it is up and running.

As you know.. I continue on my quest to make my WRT-350N become a NAS box that runs at the speed of Gig. What are your thoughts around getting a cheapy ASUS to just handle the NAS part? And allowing the WRT350 to do its router/gateway/switch thing.

In my quest, the next question is, what can I do to speed up the transfers... I moved 11G from a Linkstation on the network to the newly mounted 1TB Drive on my WRT350N and it took one hour.

When I looked at the bandwidth utilization, it showed a consistent speed of about 30Mpbs on the LAN.

Am I being limited by the USB2.0 interface at the Router somehow?

FYI, Disc0 (40GB) has part1 Ext3 = 1G, part2 SWAP = 1GB and part3 Ext3 = 38GB.

What impact do large transfers have on the router CPU utilization (saw mine spike to 2.5)

Do I need add more swap space to give it more transfer capacity?

OK THIS IS REALLY THE LAST QUESTION IN THIS POST....

What do I need to do so that my router mounts Disc1/part1 when it boots? Is there something I can add to the init.startup script so that when SAMBA starts and mounts Disc0 it also mounts Disc1?

My apologies for the long-winded postings.
D13H4rdNL
DD-WRT User


Joined: 15 Jul 2009
Posts: 72
Location: Netherlands

PostPosted: Tue Aug 25, 2009 18:00    Post subject: Reply with quote
Acronis Disk Director can also format large ext2/ext3 partitions Rolling Eyes but you were looking for FArT32 formatting
_________________
WRT610N (no Version = V1?)Broadcom BCM4785
Pandora-Box
DD-WRT User


Joined: 09 Mar 2008
Posts: 218
Location: USA

PostPosted: Tue Aug 25, 2009 18:11    Post subject: Reply with quote
@jjgarciasp
Ok, lets see if we can sort things out 1-by-1 Wink

1. NAS: if you are looking for a dedicated NAS solution, I would not use router as NAS device. I noticed during large file transfers CPU was very high. Maybe when devs implement 2.6 kernel, it will be better.
As OS-wise you might check FreeNAS (I tried it in a virtual environment and looked great) or Openfiler, or stand-alone dedicated NAS solutions (no advice here).

2. Transfer speeds: I am getting about 2x faster transfers (about 6-8MBp/s (big B not small b), according to my net monitor, and 21GB file took about 1hr), and I also noticed FTP transfers were faster than using Windows copy. If this is USB or network issue, you might try to copy files between 2 USB HDDs directly attached to the router and see transfer speeds between those HDDs without network involved, just ssh/telnet to the router and cp files between volumes); dmesg on my router shows that High bandwidth mode is enabled on USB devices.

Regarding Gibabit net speeds, I do not have advice here, I am getting speeds on the low side of Gigabit, even when 2 computers are connected directly through a cable without router in between, peer-to-peer, both have gigabit nics, I am still getting pretty low speeds; some claim, this might be due to HDDs speeds and bus. I will have to live with this.

3. Regarding auto-mounting disk1 at boot time, yes, it seems possible. Check samba mount.usb script, and after part3 of disk0 is mounted, modify the script and add disk1 partitions to it.

4. Re swap:, your swap is 1Gb, it might be too big. unless your router has 1Gb RAM, but normally 128-256 Mb should be plenty.

I hope some of my answers will be helpful.
Good Luck Wink

_________________
Netgear R7000
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Tue Aug 25, 2009 18:45    Post subject: Reply with quote
@ jjgarciasp:

Regarding gigabit speed: Just forget it. You will see some speed-up if you run the WLAN access point on a different machine. But don't expect magic. Use a mini-itx board built around Atom-CPU for gigabit speed transfers.

Large transfers will result in decreased speed. Don't know why. More swap will not help. You can test read speed to disc with

hdparm -tT /dev/scsi/host0/bus0/target0/lun0/part1

SMB is a protocol with large overhead, expect NFS and FTP to be faster.

Another partition is no problem if you have used my latest HDsamba mod. Just run the script

/mnt/HDsamba/scripts/detection_custom

it give you the chance to specify another partition (on whatever USB device connected) to be mounted where you want. It will be automounted during startup.
anjelika
DD-WRT Novice


Joined: 04 Sep 2009
Posts: 33

PostPosted: Sat Sep 05, 2009 15:17    Post subject: Reply with quote
I'm having a problem with HDSamba2 on my WRT610N router (standard build).
After successfully installing HDSamba on the router I see the following message in /tmp/HDsamba/boot.log:
Code:

TASK 4: Waiting for Router to mount swap partition...
/jffs/usr/sbin/swapon: can't resolve symbol 'swapon'
        ERROR: Router has failed to mount swap.
        TERMINATING SCRIPT IMMEDIATELY
              total         used         free       shared      buffers
  Mem:        60740        15348        45392            0         1928
 Swap:            0            0            0
Total:        60740        15348        45392
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)

Any help is appreciated.
Thanks.
nathulal
DD-WRT Novice


Joined: 22 Jan 2008
Posts: 39

PostPosted: Sat Sep 05, 2009 15:48    Post subject: Reply with quote
anjelika wrote:
I'm having a problem with HDSamba2 on my WRT610N router (standard build).
After successfully installing HDSamba on the router I see the following message in /tmp/HDsamba/boot.log:
Code:

TASK 4: Waiting for Router to mount swap partition...
/jffs/usr/sbin/swapon: can't resolve symbol 'swapon'
        ERROR: Router has failed to mount swap.
        TERMINATING SCRIPT IMMEDIATELY
              total         used         free       shared      buffers
  Mem:        60740        15348        45392            0         1928
 Swap:            0            0            0
Total:        60740        15348        45392
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)

Any help is appreciated.
Thanks.


I had the same problem with the std version. You need to install the big version. I am using the 12774 big version from Eko and it works fine.
anjelika
DD-WRT Novice


Joined: 04 Sep 2009
Posts: 33

PostPosted: Sat Sep 05, 2009 15:56    Post subject: Reply with quote
Ah, thanks for the tip, will try with big build now.
Regards
anjelika
DD-WRT Novice


Joined: 04 Sep 2009
Posts: 33

PostPosted: Wed Sep 09, 2009 7:36    Post subject: Reply with quote
Hi,
I've solved the problem. Anyway, I have another one now. I've changed the HDD (I am using a 3.5" now insted of 2.5") which appears in fdisk -l like this:
Code:

root@DD-WRT:/tmp/xxx# fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                 Device Boot      Start         End      Blocks   Id  System
/dev/scsi/host0/bus0/target0/lun0/part1               1         125     1004031   83  Linux
/dev/scsi/host0/bus0/target0/lun0/part2             126         188      506047+  82  Linux swap / Solaris
/dev/scsi/host0/bus0/target0/lun0/part3             500         865     2939895   83  Linux


Trying to mount third partition :
Code:
mount /dev/scsi/host0/bus0/target0/lun0/part3 /mnt
will not trow an error or something.
Anyway, I am unable to write on /mnt:
Code:

root@DD-WRT:/tmp/xxx# echo "Hello" > /mnt/file
-sh: can't create /mnt/file: Read-only file system

Also, the partition does not appear as mounted:
Code:

root@DD-WRT:/tmp/xxx# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 5120      5120         0 100% /
/dev/mtdblock/4           1792      1092       700  61% /jffs

Therefore I can not install HDSamba.
I have all activated in the router's interface:
Code:

    * Core USB Support
    * USB Storage Support
    * USB 2.0 (or the version your HD supports)
    * ext2/ext3 Support

Any thoughts?
hans_lt
DD-WRT User


Joined: 22 Jan 2009
Posts: 158

PostPosted: Wed Sep 09, 2009 8:57    Post subject: Reply with quote
What show mount command ?
Mine is:
root@NAS:~# mount
...
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part1 on /mnt type ext3 (rw)
/dev/discs/disc0/part1 on /opt type ext3 (rw)
/dev/discs/disc0/part3 on /mnt/data type ext3 (rw,noatime)

Is part1 listed at all ? If yes is it (rw) ?

_________________
WRT610N V1, CFE .16, 12V 3.3 A PS, OC:300 Mhz, DD-WRT big 14584M Eko K2.6 + 1TG NAS USB 2.0

Wl0 25 mW N-only, Wl1 25 mW Mixed, 2.4+2.4 Ghz.
anjelika
DD-WRT Novice


Joined: 04 Sep 2009
Posts: 33

PostPosted: Wed Sep 09, 2009 8:59    Post subject: Reply with quote
The disk does not appear in 'mount':
Code:

root@DD-WRT:/tmp/xxx# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)


Also, trying to format the third (largest) partition give me this error:
Code:

root@DD-WRT:/tmp/xxx# mke2fs -j /dev/scsi/host0/bus0/target0/lun0/part3
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
368000 inodes, 734973 blocks
36748 blocks (5.00%) reserved for the super user
First data block=0
23 block groups
32768 blocks per group, 32768 fragments per group
16000 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912


Warning: cannot zero block 734944 at end of filesystem
Writing inode tables: 16/23
Could not write 8 blocks in inode table starting at 524290.
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Wed Sep 09, 2009 9:08    Post subject: Reply with quote
Can you post the output of "dmesg" ?

Can you mount the disc manually with
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt

or

mount -t ext2 /dev/scsi/host0/bus0/target0/lun0/part1 /mnt ?

The error you discribe can occur if you formatted the USB-drive with a new version of some linux-distros. DD-WRT then cannot mount as ext3 and so the HDsamba2 script fails. Normally you can detect such a problem by looking at output of dmesg ( something like : "cannot find journal on superblock" will be mentioned there) and you can mount the drive as ext2. The workaround is to delete the journal and recreate it with dd-wrt. How to do that is written in this thread (somewhere).
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Wed Sep 09, 2009 9:09    Post subject: Reply with quote
AFAIK mke2fs on dd-wrt is broken.
anjelika
DD-WRT Novice


Joined: 04 Sep 2009
Posts: 33

PostPosted: Wed Sep 09, 2009 9:14    Post subject: Reply with quote
part1 seems to mount OK on /mnt. (root@DD-WRT:/tmp# touch /mnt/xxx creates the file)

dmesg shows some warnings/errors though:
Code:

Adding Swap: 506036k swap-space (priority -1)
EXT3-fs error (device sd(8,1)): ext3_check_descriptors: Block bitmap for group 8 not in group (block 0)!
EXT3-fs: group descriptors corrupted !
EXT3-fs error (device sd(8,1)): ext3_check_descriptors: Block bitmap for group 8 not in group (block 0)!
EXT3-fs: group descriptors corrupted !
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
EXT2-fs warning (device sd(8,1)): ext2_read_super: mounting ext3 filesystem as ext2

EXT2-fs error (device sd(8,1)): ext2_check_descriptors: Block bitmap for group 8 not in group (block 0)!
EXT2-fs: group descriptors corrupted!
EXT3-fs error (device sd(8,1)): ext3_check_descriptors: Block bitmap for group 8 not in group (block 0)!
EXT3-fs: group descriptors corrupted !
FAT: bogus logical sector size 0
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
FAT: bogus logical sector size 0
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,3)
FAT: bogus logical sector size 0
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,3)
FAT: bogus logical sector size 0
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Wed Sep 09, 2009 10:22    Post subject: Reply with quote
As I wrote, problem with journal created by new linux. Solution is either search for a distro which produces a "good" (in term of dd-wrt accept it) ext3, delete journal and recreate it with dd-wrt (you can also try to reformat as ext2 and create a journal with dd-wrt to convert ext2 to ext3), or use only ext2. I would recommend the last without explicit reformat as ext2 because otherwise the partition will always be marked as corrupt and HDsamba schedule a complete disc check.
Goto page Previous  1, 2, 3 ... 31, 32, 33, 34, 35  Next Display posts from previous:    Page 32 of 35
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum