After replacing several routers, several firmwares, and spending countless hours in forums trying to get my external 3TB drive to mount - I came today to realization that there is just no current solution for mounting ext3 partitions larger than 2TB. That was good enough reason to just create one myself.
I used the latest git version of Toastman-RT as base, and modified the linux kernel, borrowing heavily from Karel Zak's [lkml.indiana.edu/hypermail/linux/kernel/0911.1/00751.html patches from 2009]. It worked much sooner than I expected:
scsi 0:0:0:0: Direct-Access WD Ext HDD 1021 2021 PQ: 0 ANSI: 4 sd 0:0:0:0: [sda] 732566016 4096-byte hardware sectors (3000590 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 17 00 10 08 sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] 732566016 4096-byte hardware sectors (3000590 MB) sd 0:0:0:0: [sda] Assuming drive cache: write through sda: sda1 sd 0:0:0:0: [sda] Attached SCSI disk kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode.
Before it used to print "unknown partition".
df is also behaving:
# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 4992 4992 0 100% / tmpfs 63524 392 63132 1% /tmp devfs 63524 0 63524 0% /dev /dev/sda1 2884280536 882941312 2001339224 31% /tmp/mnt/extbackup
fdisk gives bogus output because it is hard coded to use 512 bytes sectors and I have not fixed it yet - I was eager to just get the drive mounted.
The drive is auto-mounted and is shared beautifully via CIFS. Did not encounter a problem yet but I am only using it for an hour.
You can download the binary from my server at www.yanivhamo.com/tomato-K26USB-188.8.131.52MIPSR2_gpt_nomedia-Ext.trx (5,980,160 bytes)
A few caveats:
- MIPS R2 Kernel 2.6 only. I have an Asus RT-N16
- It is based on the "Ext" build type, with the media server disabled (to speed up compilation since I have no use in it).
- It supports GPT partitions with 512, 1024, 2048, and 4096 bytes sectors.
- It is very fresh and comes with no warranty, please do realize that.
EDIT: full builds are here www.yanivhamo.com/tomato/
Once enough people test it and confirm it is working ok for them, I will be glad if one of the seniors here agrees to adopt the code, or I can just issue a changelist for it. The change needs some polishing, but in general it is non intrusive and can be just submitted to head.
Hope you find this helpful!
(the forum system prevented me from posting normal links since it is my first post, so I had to strip the http: // ..)