This describes how you can connect a Fritz!Box to USB media formatted with the ext4 file system.
At present only available for Kernel versions:
- For mipsel-Fritz!Boxes (e.g. 7270, 7170 et al.):
- 2.6.32.41 (e.g. Fritz!Box 7270 fw 54.05.21)
- 2.6.32.21 (z.B. Fritz!Box 7270 fw 54.04.76)
- For mips-Fritz!Boxes (e.g. 7390, 7340 et al.):
- 2.6.32.60 (z.B. Fritz!Box 7490 fw 05.59)
- 2.6.32.41 (e.g. Fritz!Box 7320 fw 100.05.20)
- 2.6.28.10 (z.B. Fritz!Box 7390 fw 84.05.05)
Fritz!Box without USB Storage
1. Execute the following steps in the console. Then mount the content of the new partition in the directory $EXT4FSNAME in read-write mode.
2. If everything works OK you can add it to debug.cfg (see chapter. “debug.cfg”)
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
TEMP=/var/tmp DOWNLOADPAGE='https://fritzmod.net/download/mipsel/2.6.32.41' # for kernel 2.6.32.41 mipsel # DOWNLOADPAGE='https://fritzmod.net/download/mipsel/2.6.32.21' # for kernel 2.6.32.21 mipsel # DOWNLOADPAGE='https://fritzmod.net/download/mips/2.6.32.60' # for kernel 2.6.32.60 mips # DOWNLOADPAGE='https://fritzmod.net/download/mips/2.6.32.41' # for kernel 2.6.32.41 mips # DOWNLOADPAGE='https://fritzmod.net/download/mips/2.6.28.10' # for kernel 2.6.28.10 mips EXT4FSNAME=/var/media/ext4 # any name while !(ping -c 1 www.google.de); do sleep 5; done cd $TEMP wget $DOWNLOADPAGE/crc16.ko wget $DOWNLOADPAGE/jbd2.ko wget $DOWNLOADPAGE/ext4.ko /sbin/insmod crc16.ko /sbin/insmod jbd2.ko /sbin/insmod ext4.ko mkdir $EXT4FSNAME mount -t ext4 /dev/sda2 $EXT4FSNAME # sda2 might be replaced by another partition |
Fritz!Box with USB memory
1. Download the files below and store on the Fritz!Box in directory “module”:
- For mipsel-Fritz!Boxes (e.g. 7270, 7170 et al.):
- For mips-Fritz!Boxes (e.g. 7390, 7340 et al.):
Advanced users may want to use another directory. Don’t forget to adapt the code.
2. Execute the following steps in the console. Then mount the content of the new partition in the directory $EXT4FSNAME in read-write mode.
3. If everything works OK you can add it to debug.cfg (see chapter. “debug.cfg”)
Take care: a fat partition must exist in order to be able to recognize that the USB memory was connected.
Code
1 2 3 4 5 6 7 8 9 10 11 |
HDD='Hitachi-HTS543216L9A300-01' # ATTENTION: must be adapted! HDD_ABSOLUT='/var/media/ftp/'$HDD EXT4FSNAME=/var/media/ext4 # any name while ! [ -d $HDD_ABSOLUT ] ; do sleep 5; done /sbin/insmod $HDD_ABSOLUT/module/crc16.ko /sbin/insmod $HDD_ABSOLUT/module/jbd2.ko /sbin/insmod $HDD_ABSOLUT/module/ext4.ko mkdir $EXT4FSNAME mount -t ext2 /dev/sda2 $EXT4FSNAME # sda2 may be replaced by another partition |