Re: Struggling to automatically mount "Folders to import from other hosts"

211 views
Skip to first unread message
Message has been deleted

João Cardoso

unread,
Apr 4, 2017, 12:19:51 PM4/4/17
to Alt-F


On Tuesday, 4 April 2017 12:12:58 UTC+1, Markcous wrote:
Hola! How goes it?

This has probably been asked before but I've never been able to solve it.

It's probably just something stupid that I'm doing or not doing but whatever.

I've never been able to get the "Folders to import from other hosts" to auto mount any entries that I have in there. (This being inside the "Samba Setup")

There is no such feature to automount SMB or NFS remote shares, although that information is being maintained. After all the box is a server.
I might add that possibility in future releases.

Meanwhile you can do that from your "user boot script", Services->Users,user, Configure, and specifying a script to execute at boot time. For RC5/6 the script can be created and edited in that webUI, for RC4.1 it has to be manually created.
E.g. create /mnt/sda2/userscript.sh with the following contents

--------------8<-------- no leading blank line or spaces before #!/bin/sh in the file -------------->8-------------
#!/bin/sh

exec >> /var/log/user.log 2>&1

case "$1" in
start)
echo "Starting $0"
mount -t cifs -a
;;
stop)
echo "Stopping $0"
umount -t cifs -a
;;
esac

--------------8<-------------------->8-------------

set it executable using

chmod +x,og-wx /mnt/sda2/userscript.sh

and afterwards specify its name in the webUI, save settings and hit the service "StartNow" button. You can see the log it produces under System->Utilities, View Log, user or directly under /var/log/user.log
If the remote host is not available at boot time it might block the box boot sequence, don't know, never tried.

Remember to edit the user credentials when specifying it in the webUI "Mount Options", credentials.<user>; if <user> has the same name and password in both the box and the windows PC you should have no issues, otherwise edit /etc/samba/credentials.<user>

Worked? In what windows version?


I'm using Alt-F 0.1RC4.1 on a DNS-325-A1A2


Message has been deleted
Message has been deleted

João Cardoso

unread,
Apr 5, 2017, 11:26:04 AM4/5/17
to Alt-F


On Wednesday, 5 April 2017 02:09:47 UTC+1, Markcous wrote:
I'm not sure what question you're asking, but you definitely rock!

Thank you. I'll never have to worry about manually mounting that if/when/ever the power goes out or a reboot happens.

I'm using Windows 8.1 if that answers your question, I'm guessing not, though.

I guess that the question was what OS the remote mounted filesystem are on. so it's win-8.1, good to know.


Thanks again, João. I'd update to RC6 but now that I've finally got RC4 perfected, I'm scared to break any of it.

I can't donate much, and I'd prefer to stay anonymous, but that was definitely worth a few beers.

Thanks, its getting hot here, but beach time is still a couple of months away :-)
 

Cheers.

-Mark

On Tuesday, April 4, 2017 at 5:12:58 AM UTC-6, Markcous wrote:
Hola! How goes it?

This has probably been asked before but I've never been able to solve it.

It's probably just something stupid that I'm doing or not doing but whatever.

I've never been able to get the "Folders to import from other hosts" to auto mount any entries that I have in there. (This being inside the "Samba Setup")

I'm using Alt-F 0.1RC4.1 on a DNS-325-A1A2

and here is the system configuration

João Cardoso

unread,
Apr 5, 2017, 12:56:29 PM4/5/17
to Alt-F


On Wednesday, 5 April 2017 04:05:22 UTC+1, Markcous wrote:
Gah, it would appear that I got excited and jumped the gun too early.

It only works when I stop and restart the user service.

Here is an example of the log file after booting, and then stopping and restarting the service (Which DOES mount the remote share after a service restart)

Starting /mnt/2TB_-_Volume_2/userscript.sh
Couldn't chdir to /mnt/usbsd: No such file or directory

The cifs (MS-win) and nfs remote mount points should have been created (by rcS) before the user script is called.
This might be a bug, but I couldn't reproduce it. You have of course "save settings"

What is the current contents of your /etc/fstab?
cat /etc/fstab

Can you please add two commands before the mount command in the user script and post the user log after boot? as in
echo "Starting $0"
ls -l /mnt
cat /etc/fstab
mount -t cifs -a


mount: mounting //192.168.1.1/usbsd on /mnt/usbsd failed: No such file or directory
Stopping /mnt/2TB_-_Volume_2/userscript.sh
Starting /mnt/2TB_-_Volume_2/userscript.sh
unc name specified twice, ignoring second
mount: mounting //192.168.1.1/usbsd on /mnt/usbsd failed: Invalid argument

Attached is a picture showing the folder structure.

The /mnt/usbsd appears there... why was it not there when the userscript run? Had you to created it again?


Forgive me for needing such a big spoon, if you catch my drift.

Any other logs/information that would help as far as troubleshooting goes?

Markcous

unread,
Apr 6, 2017, 12:51:45 AM4/6/17
to Alt-F
Hey there João,

This is what it looks like after its all correctly mounted. (Manually, of course)

To answer your previous question, it's remotely mounting a USB attached sd card from another router.

I don't understand why this is ending up being such a pain, but nevertheless, yes, I did realize that I needed to "Save Settings" after the first failed attempt at the user script.

Is there a place within the NAS's own file structure that I can put the script as opposed to storing it on any of the drives attached? Like /etc, or something along those lines, where it will persist across reboots?

This what the user script looks like now.

#!/bin/sh

exec >> /var/log/user.log 2>&1

ls -l /mnt
cat /etc/fstab
mount -t cifs -a

case "$1" in
start)
echo "Starting $0"
mount -t cifs -a
;;
stop)
echo "Stopping $0"
umount -t cifs -a
;;
esac


//192.168.1.1/usbsd /mnt/usbsd cifs uid=root,gid=root,credentials=/etc/samba/cre
dentials.router,rw,iocharset=utf8,_netdev 0 0
/dev/sda1 none swap pri=1 0 0
/dev/sdb1 none swap pri=1 0 0
/dev/sda2 /mnt/2TB_-_Volume_2 ext4 defaults 0 0
/dev/sdb2 /mnt/1TB_-_Volume_1 ext4 defaults 0 0
/dev/sda4 /mnt/Volume_2_Swap ext4 defaults 0 0
/dev/sdb4 /mnt/Volume_1_Swap ext4 defaults 0 0
/dev/sdc1 /mnt/USBDisk1_1 ext4 defaults 0 0

And it is weird, but I did need to recreate the folder "usbsd" in the root of the NAS at one point for some reason. Then I think I needed to change the permissions on it as well.

It was a few days ago. But anyhoo, here's the user log.

"total 4
drwxrwxrwx    2 root     root            40 Apr  5 22:48 1TB_-_Volume_1
drwxrwsrwx   23 markmark Guest         4096 Apr  5 22:38 2TB_-_Volume_2
drwxrwxrwx    2 root     root            40 Apr  5 22:48 Volume_1_Swap
drwxrwxrwx    2 root     root            40 Apr  5 22:48 Volume_2_Swap
#
//192.168.1.1/usbsd /mnt/usbsd cifs uid=root,gid=root,credentials=/etc/samba/credentials.router,rw,iocharset=utf8,_netdev 0 0
/dev/sda1 none swap pri=1 0 0
/dev/sdb1 none swap pri=1 0 0
/dev/sda2 /mnt/2TB_-_Volume_2 ext4 defaults 0 0
Couldn't chdir to /mnt/usbsd: No such file or directory
mount: mounting //192.168.1.1/usbsd on /mnt/usbsd failed: No such file or directory
Starting /mnt/2TB_-_Volume_2/userscript.sh
Couldn't chdir to /mnt/usbsd: No such file or directory
mount: mounting //192.168.1.1/usbsd on /mnt/usbsd failed: No such file or directory"

On Tuesday, April 4, 2017 at 5:12:58 AM UTC-6, Markcous wrote:
Hola! How goes it?

This has probably been asked before but I've never been able to solve it.

It's probably just something stupid that I'm doing or not doing but whatever.

I've never been able to get the "Folders to import from other hosts" to auto mount any entries that I have in there. (This being inside the "Samba Setup")

I'm using Alt-F 0.1RC4.1 on a DNS-325-A1A2

and here is the system configuration

System Configuration

====================== Alt-F 0.1RC4.1 ======================

Tue Apr  4 04:42:45 MDT 2017


====================== BOARD ======================

DNS-325-A1A2


====================== CPU ======================

processor	: 0
model name	: Feroceon 88FR131 rev 1 (v5l)
BogoMIPS	: 1185.38
Features	: swp half fastmult edsp 
CPU implementer	: 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: Marvell Kirkwood (Flattened Device Tree)
Revision	: 0000
Serial		: 0000000000000000


====================== Flashed Firmware ======================

Alt-F-0.1RC4.1, initrd


====================== DMESG ======================

Booting Linux on physical CPU 0x0
Linux version 3.10.32 (jcard@silver) (gcc version 4.3.3 (GCC) ) #1 Fri Jan 30 16:37:58 WET 2015
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell Kirkwood (Flattened Device Tree), model: D-Link DNS-325 NAS (Rev A1/A2)
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c04c1b88, node_mem_map c0aea000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65536 pages, LIFO batch:15
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0,115200 root=/dev/ram0 init=/init
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 251880k/251880k available, 10264k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0467fac   (4480 kB)
      .init : 0xc0468000 - 0xc0493354   ( 173 kB)
      .data : 0xc0494000 - 0xc04c22a0   ( 185 kB)
       .bss : 0xc04c22a0 - 0xc04d7fe4   (  88 kB)
NR_IRQS:114
sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
Calibrating delay loop... 1185.38 BogoMIPS (lpj=5926912)
pid_max: default: 4096 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc03cb4c8 - 0xc03cb504
xor: measuring software checksum speed
   arm4regs  :  1079.200 MB/sec
   8regs     :   800.000 MB/sec
   32regs    :   874.400 MB/sec
xor: using function: arm4regs (1079.200 MB/sec)
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
dnskw: Failed to register dnskw:power:recover
No ATAGs?
bio: create slab  at 0
raid6: int32x1    109 MB/s
raid6: int32x2    137 MB/s
raid6: int32x4    117 MB/s
raid6: int32x8    116 MB/s
raid6: using algorithm int32x2 (137 MB/s)
raid6: using intx1 recovery algorithm
SATA0 Power: Failed to request enable GPIO39: -517
reg-fixed-voltage 1.regulator: Failed to register regulator: -517
platform 1.regulator: Driver reg-fixed-voltage requests probe deferral
SATA1 Power: Failed to request enable GPIO40: -517
reg-fixed-voltage 2.regulator: Failed to register regulator: -517
platform 2.regulator: Driver reg-fixed-voltage requests probe deferral
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 32
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 2984K (c0800000 - c0aea000)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 ok...@monad.swb.de).
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
aufs 3.10.x-20140127
msgmni has been set to 497
async_tx: api initialized (async)
io scheduler noop registered
io scheduler cfq registered (default)
kirkwood-pinctrl f1010000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
mv_xor f1060800.xor: Marvell XOR: ( xor fill cpy )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
mv_xor f1060900.xor: Marvell XOR: ( xor fill cpy )
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
sata_mv f1080000.sata: version 1.28
sata_mv f1080000.sata: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
Scanning device for bad blocks
Bad eraseblock 109 at 0x000000da0000
Bad eraseblock 138 at 0x000001140000
Bad eraseblock 287 at 0x0000023e0000
Bad eraseblock 389 at 0x0000030a0000
Bad eraseblock 487 at 0x000003ce0000
Bad eraseblock 535 at 0x0000042e0000
6 ofpart partitions found on MTD device orion_nand
Creating 6 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000600000 : "uImage"
0x000000600000-0x000000b00000 : "ramdisk"
0x000000b00000-0x000007100000 : "image"
0x000007100000-0x000007b00000 : "mini firmware"
0x000007b00000-0x000008000000 : "config"
libphy: orion_mdio_bus: probed
mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:ce:11:2a
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1050000.ehci: EHCI Host Controller
orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
orion-ehci f1050000.ehci: irq 19, io mem 0xf1050000
orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
i2c /dev entries driver
gpio-fan gpio_fan.2: GPIO fan initialized
lm75 0-0048: hwmon1: sensor 'lm75'
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
cpuidle: using governor ladder
cpuidle: using governor menu
leds-gpio gpio-leds.5: pins are not configured from the driver
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
SATA0 Power: 5000 mV 
SATA1 Power: 5000 mV 
input: gpio_keys.1 as /devices/gpio_keys.1/input/input0
rtc-mv f1010300.rtc: setting system clock to 2017-04-04 10:42:31 UTC (1491302551)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata1.00: ATA-8: WDC WD20EARX-32PASB0, 51.0AB51, max UDMA/133
ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EARX-32P 51.0 PQ: 0 ANSI: 5
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata2.00: ATA-8: WDC WD10EACS-00ZJB0, 01.01B01, max UDMA/133
ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      WDC WD10EACS-00Z 01.0 PQ: 0 ANSI: 5
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2 sdb4
sd 1:0:0:0: [sdb] Attached SCSI disk
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
RAMDISK: squashfs filesystem found at block 0
RAMDISK: Loading 2982KiB [1 disk] into ram disk... | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - done.
VFS: Mounted root (squashfs filesystem) readonly on device 1:0.
Freeing unused kernel memory: 172K (c0468000 - c0493000)
Adding 533088k swap on /dev/sda1.  Priority:1 extents:1 across:533088k 
Adding 530108k swap on /dev/sdb1.  Priority:1 extents:1 across:530108k 
EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
usbcore: registered new interface driver usblp
mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled


====================== SYSLOG ======================

Apr  4 04:42:39 Archive syslog.info syslogd started: BusyBox v1.20.2
Apr  4 04:42:39 Archive user.notice kernel: klogd started: BusyBox v1.20.2 (2015-01-30 16:18:45 WET)
Apr  4 04:42:39 Archive user.info kernel: Booting Linux on physical CPU 0x0
Apr  4 04:42:39 Archive user.notice kernel: Linux version 3.10.32 (jcard@silver) (gcc version 4.3.3 (GCC) ) #1 Fri Jan 30 16:37:58 WET 2015
Apr  4 04:42:39 Archive user.warn kernel: CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
Apr  4 04:42:39 Archive user.warn kernel: CPU: VIVT data cache, VIVT instruction cache
Apr  4 04:42:39 Archive user.info kernel: Machine: Marvell Kirkwood (Flattened Device Tree), model: D-Link DNS-325 NAS (Rev A1/A2)
Apr  4 04:42:39 Archive user.warn kernel: Memory policy: ECC disabled, Data cache writeback
Apr  4 04:42:39 Archive user.debug kernel: On node 0 totalpages: 65536
Apr  4 04:42:39 Archive user.debug kernel: free_area_init_node: node 0, pgdat c04c1b88, node_mem_map c0aea000
Apr  4 04:42:39 Archive user.debug kernel:   Normal zone: 512 pages used for memmap
Apr  4 04:42:39 Archive user.debug kernel:   Normal zone: 0 pages reserved
Apr  4 04:42:39 Archive user.notice root: Starting syslogd: OK. Starting klogd: OK.
Apr  4 04:42:39 Archive user.debug kernel:   Normal zone: 65536 pages, LIFO batch:15
Apr  4 04:42:39 Archive user.debug kernel: pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Apr  4 04:42:39 Archive user.debug kernel: pcpu-alloc: [0] 0 
Apr  4 04:42:39 Archive user.warn kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Apr  4 04:42:39 Archive user.notice kernel: Kernel command line: console=ttyS0,115200 root=/dev/ram0 init=/init
Apr  4 04:42:39 Archive user.info kernel: PID hash table entries: 1024 (order: 0, 4096 bytes)
Apr  4 04:42:39 Archive user.info kernel: Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Apr  4 04:42:39 Archive user.info kernel: Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Apr  4 04:42:39 Archive user.info kernel: Memory: 256MB = 256MB total
Apr  4 04:42:39 Archive user.notice kernel: Memory: 251880k/251880k available, 10264k reserved, 0K highmem
Apr  4 04:42:39 Archive user.notice kernel: Virtual kernel memory layout:
Apr  4 04:42:39 Archive user.notice kernel:     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Apr  4 04:42:39 Archive user.notice kernel:     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
Apr  4 04:42:39 Archive user.notice kernel:     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
Apr  4 04:42:39 Archive user.notice kernel:     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
Apr  4 04:42:39 Archive user.notice kernel:     modules : 0xbf000000 - 0xc0000000   (  16 MB)
Apr  4 04:42:39 Archive user.notice kernel:       .text : 0xc0008000 - 0xc0467fac   (4480 kB)
Apr  4 04:42:39 Archive user.notice kernel:       .init : 0xc0468000 - 0xc0493354   ( 173 kB)
Apr  4 04:42:39 Archive user.notice kernel:       .data : 0xc0494000 - 0xc04c22a0   ( 185 kB)
Apr  4 04:42:39 Archive user.notice kernel:        .bss : 0xc04c22a0 - 0xc04d7fe4   (  88 kB)
Apr  4 04:42:39 Archive user.info kernel: NR_IRQS:114
Apr  4 04:42:39 Archive user.info kernel: sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
Apr  4 04:42:39 Archive user.info kernel: Calibrating delay loop... 1185.38 BogoMIPS (lpj=5926912)
Apr  4 04:42:39 Archive user.info kernel: pid_max: default: 4096 minimum: 301
Apr  4 04:42:39 Archive user.info kernel: Mount-cache hash table entries: 512
Apr  4 04:42:39 Archive user.info kernel: CPU: Testing write buffer coherency: ok
Apr  4 04:42:39 Archive user.info kernel: Setting up static identity map for 0xc03cb4c8 - 0xc03cb504
Apr  4 04:42:39 Archive user.info kernel: xor: measuring software checksum speed
Apr  4 04:42:39 Archive user.info kernel:    arm4regs  :  1079.200 MB/sec
Apr  4 04:42:39 Archive user.info kernel:    8regs     :   800.000 MB/sec
Apr  4 04:42:39 Archive user.info kernel:    32regs    :   874.400 MB/sec
Apr  4 04:42:39 Archive user.info kernel: xor: using function: arm4regs (1079.200 MB/sec)
Apr  4 04:42:39 Archive user.info kernel: pinctrl core: initialized pinctrl subsystem
Apr  4 04:42:39 Archive user.info kernel: regulator-dummy: no parameters
Apr  4 04:42:39 Archive user.info kernel: NET: Registered protocol family 16
Apr  4 04:42:39 Archive user.info kernel: DMA: preallocated 256 KiB pool for atomic coherent allocations
Apr  4 04:42:39 Archive user.info kernel: Kirkwood: MV88F6281-A1, TCLK=200000000.
Apr  4 04:42:39 Archive user.info kernel: Feroceon L2: Enabling L2
Apr  4 04:42:39 Archive user.info kernel: Feroceon L2: Cache support initialised.
Apr  4 04:42:39 Archive user.err kernel: dnskw: Failed to register dnskw:power:recover
Apr  4 04:42:39 Archive user.info kernel: No ATAGs?
Apr  4 04:42:39 Archive user.info kernel: bio: create slab  at 0
Apr  4 04:42:39 Archive user.warn kernel: raid6: int32x1    109 MB/s
Apr  4 04:42:39 Archive user.warn kernel: raid6: int32x2    137 MB/s
Apr  4 04:42:39 Archive user.warn kernel: raid6: int32x4    117 MB/s
Apr  4 04:42:39 Archive user.warn kernel: raid6: int32x8    116 MB/s
Apr  4 04:42:39 Archive user.warn kernel: raid6: using algorithm int32x2 (137 MB/s)
Apr  4 04:42:39 Archive user.warn kernel: raid6: using intx1 recovery algorithm
Apr  4 04:42:39 Archive user.err kernel: SATA0 Power: Failed to request enable GPIO39: -517
Apr  4 04:42:39 Archive user.err kernel: reg-fixed-voltage 1.regulator: Failed to register regulator: -517
Apr  4 04:42:39 Archive user.info kernel: platform 1.regulator: Driver reg-fixed-voltage requests probe deferral
Apr  4 04:42:39 Archive user.err kernel: SATA1 Power: Failed to request enable GPIO40: -517
Apr  4 04:42:39 Archive user.err kernel: reg-fixed-voltage 2.regulator: Failed to register regulator: -517
Apr  4 04:42:39 Archive user.info kernel: platform 2.regulator: Driver reg-fixed-voltage requests probe deferral
Apr  4 04:42:39 Archive user.notice kernel: SCSI subsystem initialized
Apr  4 04:42:39 Archive user.debug kernel: libata version 3.00 loaded.
Apr  4 04:42:39 Archive user.info kernel: usbcore: registered new interface driver usbfs
Apr  4 04:42:39 Archive user.info kernel: usbcore: registered new interface driver hub
Apr  4 04:42:39 Archive user.info kernel: usbcore: registered new device driver usb
Apr  4 04:42:39 Archive user.info kernel: Switching to clocksource orion_clocksource
Apr  4 04:42:39 Archive user.info kernel: NET: Registered protocol family 2
Apr  4 04:42:39 Archive user.info kernel: TCP established hash table entries: 2048 (order: 2, 16384 bytes)
Apr  4 04:42:39 Archive user.info kernel: TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
Apr  4 04:42:39 Archive user.info kernel: TCP: Hash tables configured (established 2048 bind 2048)
Apr  4 04:42:39 Archive user.info kernel: TCP: reno registered
Apr  4 04:42:39 Archive user.info kernel: UDP hash table entries: 256 (order: 0, 4096 bytes)
Apr  4 04:42:39 Archive user.info kernel: UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Apr  4 04:42:39 Archive user.info kernel: NET: Registered protocol family 1
Apr  4 04:42:39 Archive user.info kernel: RPC: Registered named UNIX socket transport module.
Apr  4 04:42:39 Archive user.info kernel: RPC: Registered udp transport module.
Apr  4 04:42:39 Archive user.info kernel: RPC: Registered tcp transport module.
Apr  4 04:42:39 Archive user.info kernel: RPC: Registered tcp NFSv4.1 backchannel transport module.
Apr  4 04:42:39 Archive user.debug kernel: PCI: CLS 0 bytes, default 32
Apr  4 04:42:39 Archive user.info kernel: Trying to unpack rootfs image as initramfs...
Apr  4 04:42:39 Archive user.info kernel: rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Apr  4 04:42:39 Archive user.info kernel: Freeing initrd memory: 2984K (c0800000 - c0aea000)
Apr  4 04:42:39 Archive user.notice kernel: VFS: Disk quotas dquot_6.5.2
Apr  4 04:42:39 Archive user.warn kernel: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Apr  4 04:42:39 Archive user.info kernel: squashfs: version 4.0 (2009/01/31) Phillip Lougher
Apr  4 04:42:39 Archive user.info kernel: Installing knfsd (copyright (C) 1996 ok...@monad.swb.de).
Apr  4 04:42:39 Archive user.info kernel: jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
Apr  4 04:42:39 Archive user.info kernel: aufs 3.10.x-20140127
Apr  4 04:42:39 Archive user.info kernel: msgmni has been set to 497
Apr  4 04:42:39 Archive user.info kernel: async_tx: api initialized (async)
Apr  4 04:42:39 Archive user.info kernel: io scheduler noop registered
Apr  4 04:42:39 Archive user.info kernel: io scheduler cfq registered (default)
Apr  4 04:42:39 Archive user.info kernel: kirkwood-pinctrl f1010000.pinctrl: registered pinctrl driver
Apr  4 04:42:39 Archive user.notice kernel: mv_xor f1060800.xor: Marvell shared XOR driver
Apr  4 04:42:39 Archive user.info kernel: mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
Apr  4 04:42:39 Archive user.info kernel: mv_xor f1060800.xor: Marvell XOR: ( xor fill cpy )
Apr  4 04:42:39 Archive user.notice kernel: mv_xor f1060900.xor: Marvell shared XOR driver
Apr  4 04:42:39 Archive user.info kernel: mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
Apr  4 04:42:39 Archive user.info kernel: mv_xor f1060900.xor: Marvell XOR: ( xor fill cpy )
Apr  4 04:42:39 Archive user.info kernel: Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
Apr  4 04:42:39 Archive user.info kernel: f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
Apr  4 04:42:39 Archive user.info kernel: console [ttyS0] enabled
Apr  4 04:42:39 Archive user.info kernel: brd: module loaded
Apr  4 04:42:39 Archive user.info kernel: loop: module loaded
Apr  4 04:42:39 Archive user.debug kernel: sata_mv f1080000.sata: version 1.28
Apr  4 04:42:39 Archive user.info kernel: sata_mv f1080000.sata: slots 32 ports 2
Apr  4 04:42:39 Archive user.info kernel: scsi0 : sata_mv
Apr  4 04:42:39 Archive user.info kernel: scsi1 : sata_mv
Apr  4 04:42:39 Archive user.info kernel: ata1: SATA max UDMA/133 irq 21
Apr  4 04:42:39 Archive user.info kernel: ata2: SATA max UDMA/133 irq 21
Apr  4 04:42:39 Archive user.info kernel: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
Apr  4 04:42:39 Archive user.info kernel: Scanning device for bad blocks
Apr  4 04:42:39 Archive user.warn kernel: Bad eraseblock 109 at 0x000000da0000
Apr  4 04:42:39 Archive user.warn kernel: Bad eraseblock 138 at 0x000001140000
Apr  4 04:42:39 Archive user.warn kernel: Bad eraseblock 287 at 0x0000023e0000
Apr  4 04:42:39 Archive user.warn kernel: Bad eraseblock 389 at 0x0000030a0000
Apr  4 04:42:39 Archive user.warn kernel: Bad eraseblock 487 at 0x000003ce0000
Apr  4 04:42:39 Archive user.warn kernel: Bad eraseblock 535 at 0x0000042e0000
Apr  4 04:42:39 Archive user.notice kernel: 6 ofpart partitions found on MTD device orion_nand
Apr  4 04:42:39 Archive user.notice kernel: Creating 6 MTD partitions on "orion_nand":
Apr  4 04:42:39 Archive user.notice kernel: 0x000000000000-0x000000100000 : "u-boot"
Apr  4 04:42:39 Archive user.notice kernel: 0x000000100000-0x000000600000 : "uImage"
Apr  4 04:42:39 Archive user.notice kernel: 0x000000600000-0x000000b00000 : "ramdisk"
Apr  4 04:42:39 Archive user.notice kernel: 0x000000b00000-0x000007100000 : "image"
Apr  4 04:42:39 Archive user.notice kernel: 0x000007100000-0x000007b00000 : "mini firmware"
Apr  4 04:42:39 Archive user.notice kernel: 0x000007b00000-0x000008000000 : "config"
Apr  4 04:42:39 Archive user.info kernel: libphy: orion_mdio_bus: probed
Apr  4 04:42:39 Archive user.notice kernel: mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
Apr  4 04:42:39 Archive user.notice kernel: mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address xx:xx:xx:ce:11:2a
Apr  4 04:42:39 Archive user.info kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Apr  4 04:42:39 Archive user.info kernel: ehci-pci: EHCI PCI platform driver
Apr  4 04:42:39 Archive user.info kernel: ehci-orion: EHCI orion driver
Apr  4 04:42:39 Archive user.info kernel: orion-ehci f1050000.ehci: EHCI Host Controller
Apr  4 04:42:39 Archive user.info kernel: orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
Apr  4 04:42:39 Archive user.info kernel: orion-ehci f1050000.ehci: irq 19, io mem 0xf1050000
Apr  4 04:42:39 Archive user.info kernel: orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
Apr  4 04:42:39 Archive user.info kernel: hub 1-0:1.0: USB hub found
Apr  4 04:42:39 Archive user.info kernel: hub 1-0:1.0: 1 port detected
Apr  4 04:42:39 Archive user.info kernel: usbcore: registered new interface driver usb-storage
Apr  4 04:42:39 Archive user.info kernel: rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
Apr  4 04:42:39 Archive user.info kernel: i2c /dev entries driver
Apr  4 04:42:39 Archive user.info kernel: gpio-fan gpio_fan.2: GPIO fan initialized
Apr  4 04:42:39 Archive user.info kernel: lm75 0-0048: hwmon1: sensor 'lm75'
Apr  4 04:42:39 Archive user.info kernel: md: linear personality registered for level -1
Apr  4 04:42:39 Archive user.info kernel: md: raid0 personality registered for level 0
Apr  4 04:42:39 Archive user.info kernel: md: raid1 personality registered for level 1
Apr  4 04:42:39 Archive user.info kernel: md: raid6 personality registered for level 6
Apr  4 04:42:39 Archive user.info kernel: md: raid5 personality registered for level 5
Apr  4 04:42:39 Archive user.info kernel: md: raid4 personality registered for level 4
Apr  4 04:42:39 Archive user.info kernel: cpuidle: using governor ladder
Apr  4 04:42:39 Archive user.info kernel: cpuidle: using governor menu
Apr  4 04:42:39 Archive user.warn kernel: leds-gpio gpio-leds.5: pins are not configured from the driver
Apr  4 04:42:39 Archive user.info kernel: usbcore: registered new interface driver usbhid
Apr  4 04:42:39 Archive user.info kernel: usbhid: USB HID core driver
Apr  4 04:42:39 Archive user.notice hot_aux: Alt-F directory found in 1TB_-_Volume_1
Apr  4 04:42:39 Archive user.info kernel: TCP: cubic registered
Apr  4 04:42:39 Archive user.info kernel: NET: Registered protocol family 17
Apr  4 04:42:39 Archive user.info kernel: SATA0 Power: 5000 mV 
Apr  4 04:42:39 Archive user.info kernel: SATA1 Power: 5000 mV 
Apr  4 04:42:39 Archive user.info kernel: input: gpio_keys.1 as /devices/gpio_keys.1/input/input0
Apr  4 04:42:39 Archive user.info kernel: rtc-mv f1010300.rtc: setting system clock to 2017-04-04 10:42:31 UTC (1491302551)
Apr  4 04:42:39 Archive user.info kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
Apr  4 04:42:39 Archive user.info kernel: ata1.00: ATA-8: WDC WD20EARX-32PASB0, 51.0AB51, max UDMA/133
Apr  4 04:42:39 Archive user.info kernel: ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
Apr  4 04:42:39 Archive user.info kernel: ata1.00: configured for UDMA/133
Apr  4 04:42:39 Archive user.notice kernel: scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EARX-32P 51.0 PQ: 0 ANSI: 5
Apr  4 04:42:39 Archive user.notice kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Apr  4 04:42:39 Archive user.notice kernel: sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
Apr  4 04:42:39 Archive user.notice kernel: sd 0:0:0:0: [sda] 4096-byte physical blocks
Apr  4 04:42:39 Archive user.notice kernel: sd 0:0:0:0: [sda] Write Protect is off
Apr  4 04:42:39 Archive user.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Apr  4 04:42:39 Archive user.notice kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Apr  4 04:42:39 Archive user.notice root: Starting sslcert: OK.
Apr  4 04:42:39 Archive user.info kernel:  sda: sda1 sda2 sda4
Apr  4 04:42:39 Archive user.notice kernel: sd 0:0:0:0: [sda] Attached SCSI disk
Apr  4 04:42:39 Archive user.info kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
Apr  4 04:42:39 Archive user.info kernel: ata2.00: ATA-8: WDC WD10EACS-00ZJB0, 01.01B01, max UDMA/133
Apr  4 04:42:39 Archive user.info kernel: ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
Apr  4 04:42:39 Archive user.info kernel: ata2.00: configured for UDMA/133
Apr  4 04:42:39 Archive user.notice kernel: scsi 1:0:0:0: Direct-Access     ATA      WDC WD10EACS-00Z 01.0 PQ: 0 ANSI: 5
Apr  4 04:42:39 Archive user.notice kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
Apr  4 04:42:39 Archive user.notice kernel: sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
Apr  4 04:42:39 Archive user.notice kernel: sd 1:0:0:0: [sdb] Write Protect is off
Apr  4 04:42:39 Archive user.debug kernel: sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Apr  4 04:42:39 Archive user.notice kernel: sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Apr  4 04:42:39 Archive user.info kernel:  sdb: sdb1 sdb2 sdb4
Apr  4 04:42:39 Archive user.notice kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
Apr  4 04:42:39 Archive user.info kernel: md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
Apr  4 04:42:39 Archive user.notice kernel: RAMDISK: squashfs filesystem found at block 0
Apr  4 04:42:39 Archive user.notice kernel: RAMDISK: Loading 2982KiB [1 disk] into ram disk... |^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H
Apr  4 04:42:39 Archive user.info kernel: VFS: Mounted root (squashfs filesystem) readonly on device 1:0.
Apr  4 04:42:39 Archive user.info kernel: Freeing unused kernel memory: 172K (c0468000 - c0493000)
Apr  4 04:42:39 Archive user.info kernel: Adding 533088k swap on /dev/sda1.  Priority:1 extents:1 across:533088k 
Apr  4 04:42:39 Archive user.info kernel: Adding 530108k swap on /dev/sdb1.  Priority:1 extents:1 across:530108k 
Apr  4 04:42:39 Archive user.info kernel: EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
Apr  4 04:42:39 Archive user.info kernel: mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
Apr  4 04:42:39 Archive user.info kernel: EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
Apr  4 04:42:40 Archive user.notice root: Starting urandom: OK.
Apr  4 04:42:40 Archive user.notice root: Starting modload: OK.
Apr  4 04:42:40 Archive daemon.info sysctrl: Starting
Apr  4 04:42:40 Archive daemon.info sysctrl: reading /etc/bay
Apr  4 04:42:40 Archive daemon.info sysctrl: reading /etc/misc.conf
Apr  4 04:42:40 Archive daemon.info sysctrl: reading /etc/sysctrl.conf
Apr  4 04:42:40 Archive daemon.info sysctrl: non accessible file "/sbin/poweroff"
Apr  4 04:42:40 Archive user.notice root: Starting sysctrl: OK.
Apr  4 04:42:40 Archive daemon.info sysctrl: args.lo_fan=2000
Apr  4 04:42:40 Archive daemon.info sysctrl: args.hi_fan=5000
Apr  4 04:42:40 Archive daemon.info sysctrl: args.lo_temp=44
Apr  4 04:42:40 Archive daemon.info sysctrl: args.hi_temp=50
Apr  4 04:42:40 Archive daemon.info sysctrl: args.hist_temp=1.0
Apr  4 04:42:40 Archive daemon.info sysctrl: args.fan_mode=AUTO
Apr  4 04:42:40 Archive daemon.info sysctrl: args.mail=1
Apr  4 04:42:40 Archive daemon.info sysctrl: args.recovery=1
Apr  4 04:42:40 Archive daemon.info sysctrl: args.fan_off_temp=39
Apr  4 04:42:40 Archive daemon.info sysctrl: args.max_fan_speed=6000
Apr  4 04:42:40 Archive daemon.info sysctrl: args.crit_temp=54
Apr  4 04:42:40 Archive daemon.info sysctrl: args.warn_temp=52
Apr  4 04:42:40 Archive daemon.info sysctrl: args.crit_temp_command="(null)"
Apr  4 04:42:40 Archive daemon.info sysctrl: args.warn_temp_command="(null)"
Apr  4 04:42:40 Archive daemon.info sysctrl: args.front_button_command1="(null)"
Apr  4 04:42:40 Archive daemon.info sysctrl: args.front_button_command2="(null)"
Apr  4 04:42:40 Archive daemon.info sysctrl: args.back_button_command="(null)"
Apr  4 04:42:40 Archive daemon.info sysctrl: sda left rdwr=0 last=0 spindow=600 power=1
Apr  4 04:42:40 Archive daemon.info sysctrl: sdb right rdwr=0 last=0 spindow=300 power=1
Apr  4 04:42:40 Archive daemon.info sysctrl: (null) (null) rdwr=0 last=0 spindow=4294967236 power=1
Apr  4 04:42:40 Archive cron.info crond[598]: crond: crond (busybox 1.20.2) started, log level 8
Apr  4 04:42:40 Archive user.notice root: Starting crond: OK.
Apr  4 04:42:40 Archive daemon.info smartd[607]: smartd 6.2 2013-07-26 r3841 [armv5tel-linux-3.10.32] (local build)
Apr  4 04:42:40 Archive daemon.info smartd[607]: Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
Apr  4 04:42:40 Archive daemon.info smartd[607]: Opened configuration file /etc/smartd.conf
Apr  4 04:42:40 Archive daemon.info smartd[607]: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
Apr  4 04:42:40 Archive user.notice aufs: waiting for lock
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sda, type changed from 'scsi' to 'sat'
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sda [SAT], opened
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sda [SAT], WDC WD20EARX-32PASB0, S/N:WD-WCAZAF584781, WWN:5-0014ee-15a15f563, FW:51.0AB51, 2.00 TB
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sda [SAT], found in smartd database: Western Digital Caviar Green (AF, SATA 6Gb/s)
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sda [SAT], enabled SMART Attribute Autosave.
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sdb, type changed from 'scsi' to 'sat'
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sdb [SAT], opened
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sdb [SAT], WDC WD10EACS-00ZJB0, S/N:WD-WCASJ1382661, WWN:5-0014ee-2568fc20d, FW:01.01B01, 1.00 TB
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sdb [SAT], found in smartd database: Western Digital Caviar Green
Apr  4 04:42:40 Archive daemon.info smartd[607]: Device: /dev/sdb [SAT], enabled SMART Attribute Autosave.
Apr  4 04:42:41 Archive daemon.info smartd[607]: Device: /dev/sdb [SAT], is SMART capable. Adding to "monitor" list.
Apr  4 04:42:41 Archive daemon.info smartd[607]: Monitoring 2 ATA and 0 SCSI devices
Apr  4 04:42:41 Archive daemon.info sysctrl: temp=36.0	pwm=127 fan=3000
Apr  4 04:42:41 Archive daemon.info smartd[625]: smartd has fork()ed into background mode. New PID=625.
Apr  4 04:42:41 Archive user.notice root: Starting smartd: OK.
Apr  4 04:42:41 Archive user.info kernel: usbcore: registered new interface driver usblp
Apr  4 04:42:41 Archive user.notice root: Starting inetd: OK.
Apr  4 04:42:41 Archive daemon.notice sntp[674]: Started sntp
Apr  4 04:42:41 Archive daemon.warn sntp[674]: kod_init_kod_db(): Cannot open KoD db file /var/db/ntp-kod
Apr  4 04:42:43 Archive user.info kernel: mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
Apr  4 04:42:44 Archive user.notice root: ntpd: Setting up crontab... OK.
Apr  4 04:42:45 Archive user.notice root: Starting nmbd: OK. Starting smbd: OK.
Apr  4 04:42:45 Archive authpriv.info dropbear[729]: Running in background
Apr  4 04:42:45 Archive user.notice root: Starting dropbear: OK.


====================== BOOTLOG ======================

Apr  4 10:42:33 syslogd started: BusyBox v1.20.2
Apr  4 10:42:36 rcS: Reading RCT in UTC and setting system time and date
Apr  4 10:42:37 rcS: Board: DNS-325-A1A2
Apr  4 10:42:37 rcS: Flashed Firmware: Alt-F-0.1RC4.1, kernel 3.10.32
Apr  4 04:42:37 rcS: loadsave_settings: loaded set_2017-04-04_04:41:41.tgz settings file.
Apr  4 04:42:38 hot_aux: Start fscking sda2
Apr  4 04:42:39 hot_aux: Finish fscking sda2: fsck 1.41.14 (22-Dec-2010) 2TB_-_Volume_2: clean, 50240/476672 files, 325882091/488112128 blocks
Apr  4 04:42:39 hot_aux: Start fscking sdb2
Apr  4 04:42:39 hot_aux: Users directory found in 2TB_-_Volume_2
Apr  4 04:42:39 hot_aux: Public directory found in 2TB_-_Volume_2
Apr  4 04:42:39 rcS: IP from flash-defaults
Apr  4 04:42:39 hot_aux: Finish fscking sdb2: fsck 1.41.14 (22-Dec-2010) 1TB_-_Volume_1: clean, 218033/121978880 files, 81066413/243928951 blocks (check in 5 mounts)
Apr  4 04:42:39 syslogd exiting


====================== IFCONFIG ======================

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:49:CD:A4  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1514  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:908 (908.0 B)  TX bytes:1520 (1.4 KiB)
          Interrupt:11 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



====================== ROUTE ======================

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0


====================== RESOLVER ======================

search localnet
nameserver 192.168.1.1


====================== HOSTS ======================

127.0.0.1	localhost
192.168.1.191 ThickClient
192.168.1.100 Archive.localnet Archive


====================== DISKS (MBR) ======================


Disk /dev/sda: 243201 cylinders, 255 heads, 63 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/224/56 (instead of 243201/255/63).
For this listing I'll assume that geometry.
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sda1            56   1066239    1066184  82  Linux swap
/dev/sda2       2119936 3907016959 3904897024  83  Linux
/dev/sda3             0         -          0   0  Empty
/dev/sda4       1066240   2119935    1053696  83  Linux

Disk /dev/sdb: 121601 cylinders, 255 heads, 63 sectors/track
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sdb1            63   1060289    1060227  82  Linux swap
/dev/sdb2       2088450 1953520064 1951431615  83  Linux
/dev/sdb3             0         -          0   0  Empty
/dev/sdb4       1060290   2088449    1028160  83  Linux


====================== DISKS (GPT) ======================


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************

Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): BC864F8F-362F-4C58-BAA7-7D5B2006623F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 8-sector boundaries
Total free space is 12197 sectors (6.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              56         1066239   520.6 MiB   8200  Linux swap
   2         2119936      3907016959   1.8 TiB     8300  Linux filesystem
   4         1066240         2119935   514.5 MiB   8300  Linux filesystem

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************

Disk /dev/sdb: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 30FB4514-AFB1-43A5-9422-F02E77256D40
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 8-sector boundaries
Total free space is 5099 sectors (2.5 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              63         1060289   517.7 MiB   8200  Linux swap
   2         2088450      1953520064   930.5 GiB   8300  Linux filesystem
   4         1060290         2088449   502.0 MiB   8300  Linux filesystem


====================== BLOCKID ======================

/dev/sda2: LABEL="2TB - Volume_2" UUID="1a8d9a75-30f6-47b8-a29a-eb40129d6bfb" TYPE="ext4" 
/dev/sdb2: LABEL="1TB - Volume_1" UUID="b4999a8e-7ece-42d1-8058-95542b1a7d01" TYPE="ext4" 
/dev/loop0: TYPE="squashfs" 
/dev/sda1: UUID="1934454e-ffb6-49e0-b57b-9374e2af27a5" TYPE="swap" 
/dev/sda4: LABEL="Volume_2 Swap" UUID="2b212350-6c22-45a8-a6d4-ad8c06647715" TYPE="ext4" 
/dev/sdb1: TYPE="swap" 
/dev/sdb4: LABEL="Volume_1 Swap" UUID="7fd6265f-eb05-474b-ae9c-7e425b4d84c2" TYPE="ext4" 


====================== RAID ======================

Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] 
unused devices: 



====================== SWAP ======================

Filename				Type		Size	Used	Priority
/dev/sda1                               partition	533088	0	1
/dev/sdb1                               partition	530108	0	1


====================== MOUNT ======================

rootfs / rootfs rw 0 0
/dev/root / squashfs ro,relatime 0 0
tmpfs /rootmnt tmpfs rw,relatime 0 0
/dev/root /rootmnt/ro squashfs ro,relatime 0 0
aufs / aufs rw,relatime,si=990f59a 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime,size=162816k 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
...

João Cardoso

unread,
Apr 6, 2017, 12:52:46 PM4/6/17
to Alt-F


On Thursday, 6 April 2017 05:51:45 UTC+1, Markcous wrote:
Hey there João,

This is what it looks like after its all correctly mounted. (Manually, of course)

To answer your previous question, it's remotely mounting a USB attached sd card from another router.

I don't understand why this is ending up being such a pain, but nevertheless, yes, I did realize that I needed to "Save Settings" after the first failed attempt at the user script.

Is there a place within the NAS's own file structure that I can put the script as opposed to storing it on any of the drives attached? Like /etc, or something along those lines, where it will persist across reboots?

No, there isn't.
As you know Alt-F runs from read-only flash memory, and only a small set of modifiable files are saved in flash memory when you "save settings" (not overriding the original ones, so a "long reset" will recover them)
On the DNS-323 there is only 64KB available to save settings, so no arbitrary scripts should be saved there and the user script must be somewhere on disk.
Notice also that the userscript is only executed once when it is first found, so if it needs local filesystems to be mounted for whatever reason, it must be saved in the last filesystem found.
 

This what the user script looks like now.

#!/bin/sh

exec >> /var/log/user.log 2>&1

ls -l /mnt
cat /etc/fstab
mount -t cifs -a

case "$1" in
start)
echo "Starting $0"
mount -t cifs -a
;;
stop)
echo "Stopping $0"
umount -t cifs -a
;;
esac

//192.168.1.1/usbsd /mnt/usbsd cifs uid=root,gid=root,credentials=/etc/samba/credentials.router,rw,iocharset=utf8,_netdev 0 0
/dev/sda1 none swap pri=1 0 0
/dev/sdb1 none swap pri=1 0 0
/dev/sda2 /mnt/2TB_-_Volume_2 ext4 defaults 0 0
/dev/sdb2 /mnt/1TB_-_Volume_1 ext4 defaults 0 0
/dev/sda4 /mnt/Volume_2_Swap ext4 defaults 0 0
/dev/sdb4 /mnt/Volume_1_Swap ext4 defaults 0 0
/dev/sdc1 /mnt/USBDisk1_1 ext4 defaults 0 0

And it is weird, but I did need to recreate the folder "usbsd" in the root of the NAS
hmmm, something is wrong. 
at one point for some reason. Then I think I needed to change the permissions on it as well.

It was a few days ago. But anyhoo, here's the user log.

"total 4
drwxrwxrwx    2 root     root            40 Apr  5 22:48 1TB_-_Volume_1
drwxrwsrwx   23 markmark Guest         4096 Apr  5 22:38 2TB_-_Volume_2
drwxrwxrwx    2 root     root            40 Apr  5 22:48 Volume_1_Swap
drwxrwxrwx    2 root     root            40 Apr  5 22:48 Volume_2_Swap
#

So  /mnt/usbsd is indeed not being created, which should happens at boot time by /etc/init.d/rcS, near its end.
But I can't reproduce that on RC6, even using your fstab cifs entry.
We could continue trying to search what is specific in your setup to solve that, but the fast track will be to make the user script to to create the mount point explicitly before doing the mount. Use the following for your script:

#!/bin/sh
 
exec >> /var/log/user.log 2>&1

date

case "$1" in
 start
)
  echo
"Starting $0"

  mkdir
-p /mnt/usbsd # plus any other needed mount points

Markcous

unread,
Apr 7, 2017, 4:25:02 PM4/7/17
to Alt-F
Hm. Figures. Well after adding a 1 second sleep before mounting the shares, so that the script now looks like

#!/bin/sh

exec >> /var/log/user.log 2>&1
date

case "$1" in
        start)
                echo "Starting $0"
                mkdir -p /mnt/usbsd
                sleep 1
                mount -t cifs -a
                ;;
        stop)
                echo "Stopping $0"
                umount -t cifs -a
                ;;
esac 

it is finally working.

The user log shows:

 Apr  7 14:05:39 MDT 2017
Starting /mnt/2TB_-_Volume_2/userscript.sh
unc name specified twice, ignoring second
mount: mounting //192.168.1.1/usbsd on /mnt/usbsd failed: Invalid argument

I'm sure it's of no concern but I thought I'd at least mention it because I plan to rely on this system the way it currently is going into the future. But anyways.

You sir, are a gentleman and a scholar.

I hate asking others for help, so, thank you for taking the time.

Cheers
-Mark

Sergioo

unread,
Apr 7, 2017, 7:26:06 PM4/7/17
to Alt-F
This is my fix for mount CIFS or NFS shares on start:

Needs Alt-f package installed!

1. put this in new file /etc/init.d/S60nfs_cifs_mount

#!/bin/sh

case "$1" in
        start)
                for mpoint in $(awk '/^#/ { next } /noauto/ { next } { if ($3 == "nfs" || $3 == "cifs") print $2 }' < /etc/fstab); do
                        test -d $mpoint || mkdir -p $mpoint
                        mount $mpoint
                done
                ;;
        stop)
                for ftype in nfs cifs; do
                        if test -n "$(mount -t $ftype)"; then
                                umount -f -t $ftype -a >& /dev/null
                        fi
                done
                ;;
        restart)
                $0 stop
                $0 start
                ;;
esac

2. chmod +x /etc/init.d/S60nfs_cifs_mount
3. put lines with shares to /etc/fstab
4. noauto in options disable automounting selected share
5. this script automake mount points (if needed)

João Cardoso

unread,
Apr 13, 2017, 3:04:23 PM4/13/17
to Alt-F
Thanks Sergioo.
That is almost OK, and I'm thinking in using something similar as default, your contribution will be welcome

But for nfs it does not provides file locking unless rpc.statd is also running. That can be done from the command line using 'rcnfs_client start', or to enable and always execute at boot 'rcnfs_client enable'.
Alternatively the new service could also explicitly depend on rcnfs_client by adding a 'REQUIRE="nfs_client"', which would start it before.

Otherwise, see the sequence:

[root@DNS-325]# mount -t nfs
silver:/home/jcard on /mnt/nfs type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=192.168.1.1)

[root@DNS-325]# ./nfs-locking-test-arm  /mnt/nfs/zonzo.homenet.org.bat 
Open OK
Locking...Failed with errno 37

[root@DNS-325]# start-stop-daemon -S -q -o -x rpc.statd -- --no-notify

[root@DNS-325]# ./nfs-locking-test-arm  /mnt/nfs/zonzo.homenet.org.bat 
Open OK
Locking...OK

The 'nfs-locking-test-arm' test is a simple C file locking program that I grabbed somewhere:

/* A simple locking test. 
* Hewlett Packard 
* Compile this program on the nfs client using : 
* cc locktest.c -o locktest 
* Then run the executable passing the name of a file that 
* is located on your nfs server, such as: 
* ./locktest /nfs/server/testfile 
* If file locking is working correctly, the output will look like: 
* Open OK 
* Locking...OK 
* If you do not see the "OK" after the "Locking..." then you have 
* a file locking problem. The typical symptom would be that the program 
* will not complete, but will just hang afetr the "Locking...". 
*/ 

#include <stdio.h> 
#include <stdlib.h> 
#include <errno.h> 
#include <sys/types.h> 
#include <unistd.h> 
#include <fcntl.h> 
extern int errno; 
struct flock lk; 

main(ac, av) 
int ac; 
char *av[]; 
int i, x; 

if (ac < 2) 
printf("usage: %s <filename> \n",av[0]); 
exit(1); 
/* Open the file first */ 
if ((i = open(av[1],O_RDONLY)) < 0) 
printf("Open failed with errno %d\n", errno); 
exit(errno); 
printf("Open OK\n"); 

lk.l_type=F_RDLCK; 
lk.l_start=0; 
lk.l_len = 1; 
lk.l_whence = 0; 

/* Now try to lock it */ 
printf("Locking..."); 
if (fcntl(i, F_SETLK, &lk) < 0) 
printf("Failed with errno %d\n", errno); 
exit(errno); 
printf("OK\n"); 
close(i); 
}



So, for nfs I'm thinking adding a new service, nsm (Network State Monitor, which uses rpc.statd and sm-notify), that depends on portmap and is depended on by nfs_client and nfs.
nfs_client could even be replaced by your nfs_cifs_mount script, and if nfs mounts are required would start nsm.

Any comments on that Sergioo?
Thanks

Sergioo

unread,
Apr 14, 2017, 7:09:45 AM4/14/17
to Alt-F


W dniu czwartek, 13 kwietnia 2017 21:04:23 UTC+2 użytkownik João Cardoso napisał:
Thanks Sergioo.
That is almost OK, and I'm thinking in using something similar as default, your contribution will be welcome

But for nfs it does not provides file locking unless rpc.statd is also running. That can be done from the command line using 'rcnfs_client start', or to enable and always execute at boot 'rcnfs_client enable'.
Alternatively the new service could also explicitly depend on rcnfs_client by adding a 'REQUIRE="nfs_client"', which would start it before.


I use mainly D-Link's to work with few Kodi players (on Raspberry Pi platforms) and there is no lockings at all (all Kodi NFS mount are for read only or one client for share only), there no lock related binaries in Kodi enviroment (Open/LibreELEC) like rpc.statd or sm-notify. So I think lock related elements in D-Link would be optional (for checking in web interface) for start. Most flexible will be 3 separate inits:
1. nfs_lockd (S59 - before server/mount):
- no need for disk/Alt-F waiting
- REQ portmap
- make /var/lib/nfs/statd/sm, /var/lib/nfs/statd/sm.bak and /var/lib/nfs/statd/state
- starting rpc.statd and sm-notify
2. nfs_mount (like my script in post before)
3. nfs - removing NSM related things (rpc.statd, sm-notify and related files making)

So there will be variants for run:
- NFS server with or without locking
- shares mounts over: CIFS (no locking) or NFS (with or without remote locking)
- mounting NFS shares and start NFS server without collisions on daemons/files

Reply all
Reply to author
Forward
0 new messages