Hello Guys,
I have a WD MyCloud NAS but it seems that the /DataVolume is not mounted automatically upon system boot. I have waited for some time to see if it gets mounted, but it doesn’t. I also tried adding the below script in the rc2.d so it can be executed upon system start, but it doesn’t seem to run.
I need to mount the DataVolume manually by running:
/etc/init.d/mountDataVolume.sh
WDMyCloud:/etc/rc2.d# /etc/init.d/mountDataVolume.sh
mountDataVolume.sh: begin script:
[....] >>>> mount data volume...run-parts: executing /etc/nas/drive-init.d/mindspeed-drive-init sda
fsck from util-linux 2.20.1
/dev/sda4: clean, 6990/121806848 files, 14073960/487200000 blocks
tune2fs 1.42.5 (29-Jul-2012)
Setting reserved blocks percentage to 2% (9744000 blocks)
removed `/shares'
`/shares' -> `/DataVolume/shares'
removed directory: `/nfs/Marin'
removed directory: `/nfs/Public'
removed directory: `/nfs/SmartWare'
removed directory: `/nfs/TimeMachineBackup'
_: pkg: kernel-mindspeed-sequoia
_: pkg: wd-nas
[wd-nas.preinst] 10/09/15 19:28:02: test
[wd-nas.preinst] 10/09/15 19:28:05: test
[wd-nas.preinst] 10/09/15 19:28:06: done.
[wd-nas.postinst] 10/09/15 19:28:07: test context=test
[wd-nas.postinst] 10/09/15 19:28:08: done.
_: pkg: networking-general
_: pkg: wifi
dpkg-query: no packages found matching wifi
dpkg-query: no packages found matching wifi
_: pkg: apache-php-webdav
_: pkg: date-time
_: pkg: alerts
[alerts.preinst] 10/09/15 19:28:10: test
[alerts.preinst] 10/09/15 19:28:10: test()
[alerts.preinst] 10/09/15 19:28:10: done.
[alerts.postinst] 10/09/15 19:28:11: test context=test
[alerts.postinst] 10/09/15 19:28:11: PASSED: setup test for ///CacheVolume/.wd-alert
[alerts.postinst] 10/09/15 19:28:11: setup test for alerts: PASSED
[alerts.postinst] 10/09/15 19:28:11: done.
_: pkg: drive-lib
_: pkg: data-volume-config
_: pkg: upnp-nas
_: pkg: smb-file
_: pkg: dlna-server-twonky
_: pkg: itunes
_: pkg: admin-rest-api
_: pkg: nas-safepoint
_: pkg: ui
_: pkg: afp
_: pkg: ftp
_: pkg: comm-manager-armhf-release-64k-pagesize
update-rc.d: warning: /etc/init.d/commgrd missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System start/stop links for /etc/init.d/commgrd already exist.
_: pkg: wdlog
done.
WDMyCloud:/etc/rc2.d# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 1.9G 830M 995M 46% /
/dev/root 1.9G 830M 995M 46% /
tmpfs 40M 3.0M 37M 8% /run
tmpfs 40M 64K 40M 1% /run/lock
tmpfs 10M 0 10M 0% /dev
tmpfs 5.0M 0 5.0M 0% /run/shm
tmpfs 100M 2.2M 98M 3% /tmp
/dev/root 1.9G 830M 995M 46% /var/log.hdd
ramlog-tmpfs 40M 9.4M 31M 24% /var/log
/dev/sda4 1.8T 25G 1.8T 2% /DataVolume
/dev/sda4 1.8T 25G 1.8T 2% /CacheVolume
/dev/sda4 1.8T 25G 1.8T 2% /nfs/Marin
/dev/sda4 1.8T 25G 1.8T 2% /nfs/Public
/dev/sda4 1.8T 25G 1.8T 2% /nfs/TimeMachineBackup
/dev/sda4 1.8T 25G 1.8T 2% /nfs/SmartWare
I have also ran fsck and no errors were found.
Can anyone suggest how to mount the DataVolume partition automatically upon boot?