# Chrooted Debian Jessie for WD MyCloud 1st generation (With "memory page size = 64kb") ================= # Install: # 1. Upload chroot-j64k to "Public" folder # 2. Enable "SSH Access" in web interace (copy password. User - root) # 3. Connect via SSH to wdmc (Use PuTTY tool) and run (type) this: chmod a+x /shares/Public/chroot-j64k /shares/Public/chroot-j64k # After installing run this for enable autostart: /DataVolume/debian/chroot_debian.sh install ================= # Complete remvoe chrooted debian: /etc/init.d/chroot_debian.sh uninstall ================= # Note: Inside chroot folders mounted to /mnt ! /DataVolume/shares -> /mnt/ ================= # Start/stop all services in chroot (Run in firmware): /etc/init.d/chroot_debian.sh start /etc/init.d/chroot_debian.sh stop # Remove only autostart script for chroot (Not /DataVolume/debian) /etc/init.d/chroot_debian.sh remove # Reenable autostart (After firmware update) /DataVolume/debian/chroot_debian.sh install # Go inside chroot: chroot /DataVolume/debian /bin/bash ================= # Automount USB disk: # In /DataVolume/debian/chroot_debian.sh, find "start() {", after "done" but before "}" insert this: chroot $CHROOT_DIR mount /dev/sdb1 /mnt/usb_hdd1 chroot $CHROOT_DIR mount /dev/sdc1 /mnt/usb_hdd2 # Find "stop() {", after "done", insert: chroot $CHROOT_DIR umount /mnt/usb_hdd1 chroot $CHROOT_DIR umount /mnt/usb_hdd2 # Reinstall autorun script: /DataVolume/debian/chroot_debian.sh remove /DataVolume/debian/chroot_debian.sh install ================= Заметка: ================= Порядок наименований дисков в *nix системах: /dev/sdc1 будет расшифровываться так: s - Scsi d - Disc c - Номер (буква) диска от A до Z 1 - Номер раздела на диске