Hi,
and thanks again! Got a functional samba server on OpenWrt - even preserving the previous data I had on the Medion Life NAS hard disk:)
A terse description how I did get there:
Using one '\' less in fw_setenv boot_stage2 set the variable as expected:
~ # fw_setenv boot_stage2 nand read 64000000 440000 90000\; go 64000000
~ # fw_setenv bootcmd run boot_stage2
~ # fw_printenv
[..]
boot_stage2=nand read 64000000 440000 90000; go 64000000
Did the nandwrite without the extra argument of=/dev/mtd4
nandwrite /dev/mtd4 openwrt-15.05-oxnas-stg212-u-boot-initramfs.bin
- used the web interface (instead of the command line sysupgrade) to update firmware
- rebooted
- login via http
- setting dhcp client
- allowing ssh login
- reboot
- login via http (different address now)
- updated fw via web interface
- reboot
- install kmod-fs-xfs
- install xfs-fsck
- install samba36-server
- install luci-app-samba
- reboot
- added the command "mount -t xfs /dev/sda2 /nas" into the web form in system/startup Local Startup
- logged in via ssh
- mkdir /nas
- reboot
- loosely followed the smb documentation at https://wiki.openwrt.org/doc/uci/samba to setup one guest account with share level access and one user account
- checked directory permissions under /nas
- reboot
Done (not claiming done correctly, just claiming works_for_me. For convenience I didn't switch away from XFS). I can access the original files with the samba cifs now:
# reading a 859 MB file from NAS
dd if=test.ts of=/tmp/test.bin
859399136 Bytes (859 MB) kopiert, 22,0373 s, 39,0 MB/s
# writing a 859 MB file to NAS
dd if=/tmp/test.bin of=t.bin
859399136 Bytes (859 MB) kopiert, 23,9573 s, 35,9 MB/s
# writing using 1M blocks
dd if=/data/tmp/test.bin of=t.bin bs=1M
859399136 Bytes (859 MB) kopiert, 20,0754 s, 42,8 MB/s
(Last edited by just_me on 15 Nov 2015, 15:45)