{"action":"created","issue":{"url":"https://api.github.com/repos/rogers0/OpenLinkstation/issues/6","repository_url":"https://api.github.com/repos/rogers0/OpenLinkstation","labels_url":"https://api.github.com/repos/rogers0/OpenLinkstation/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/rogers0/OpenLinkstation/issues/6/comments","events_url":"https://api.github.com/repos/rogers0/OpenLinkstation/issues/6/events","html_url":"https://github.com/rogers0/OpenLinkstation/issues/6","id":114471503,"number":6,"title":"Step 2 brick my NAS LS-WXL...","user":{"login":"door999mo","id":1476974,"avatar_url":"https://avatars.githubusercontent.com/u/1476974?v=3","gravatar_id":"","url":"https://api.github.com/users/door999mo","html_url":"https://github.com/door999mo","followers_url":"https://api.github.com/users/door999mo/followers","following_url":"https://api.github.com/users/door999mo/following{/other_user}","gists_url":"https://api.github.com/users/door999mo/gists{/gist_id}","starred_url":"https://api.github.com/users/door999mo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/door999mo/subscriptions","organizations_url":"https://api.github.com/users/door999mo/orgs","repos_url":"https://api.github.com/users/door999mo/repos","events_url":"https://api.github.com/users/door999mo/events{/privacy}","received_events_url":"https://api.github.com/users/door999mo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rogers0/OpenLinkstation/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-11-01T14:12:38Z","updated_at":"2016-04-11T17:35:31Z","closed_at":null,"body":"What I did..\r\nI mounted /dev/md2 (I still don't know what where is root dev...)\r\n\r\nroot@LS-Jessie:/dev# mount /dev/md2 /mnt\r\n\r\nand then go to the mnt where the script is located.\r\nroot@LS-Jessie:/mnt/OpenLinkstation\r\n\r\nafter that i ran the script for step 2...\r\nroot@LS-Jessie:/mnt/OpenLinkstation# 1_debootstrap/build_rootfs_with_buffalo-kernel.sh debian\r\n3rd stage: Build Debian rootfs on final target device\r\nSTAGE=2 ARRAY=1 TARGET=/mnt TARGET_DEVICE=/dev/md2 BOOT_DEVICE=/dev/md0 rootfs=/dev/md2 bootfs=/dev/md0\r\nBUFFALO_KERNEL=0 MACHINE_ID='Buffalo Linkstation LS-WXL/WSXL' DEB_KERNEL=\r\nmkdir old_fs_backup\r\nmv .* * old_fs_backup/\r\nmv: cannot move ‘.’ to ‘old_fs_backup/.’: Device or resource busy\r\nmv: cannot remove ‘..’: Is a directory\r\nmv: cannot move ‘boot’ to ‘old_fs_backup/boot’: Device or resource busy\r\nmv: cannot move ‘dev’ to ‘old_fs_backup/dev’: Device or resource busy\r\nmv: cannot move ‘mnt’ to ‘old_fs_backup/mnt’: Device or resource busy\r\nmv: cannot move ‘old_fs_backup’ to a subdirectory of itself, ‘old_fs_backup/old_fs_backup’\r\nmv: cannot move ‘proc’ to ‘old_fs_backup/proc’: Device or resource busy\r\nmv: cannot move ‘run’ to ‘old_fs_backup/run’: Device or resource busy\r\nmv: cannot move ‘sys’ to ‘old_fs_backup/sys’: Device or resource busy\r\ntar xf /rootfs.tar\r\n1_debootstrap/build_rootfs_with_buffalo-kernel.sh: line 249: tar: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 144: blkid: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 144: blkid: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 144: blkid: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 160: /mnt/etc/fstab: No such file or directory\r\n/mnt/OpenLinkstation/lib/shell_lib: line 361: mount: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 362: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 363: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 364: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 365: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 365: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 365: chroot: command not found\r\n1_debootstrap/build_rootfs_with_buffalo-kernel.sh: line 254: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 144: blkid: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 140: blkid: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 144: blkid: command not found\r\n1_debootstrap/build_rootfs_with_buffalo-kernel.sh: line 257: /mnt//etc/initramfs-tools/modules: No such file or directory\r\n/mnt/OpenLinkstation/lib/shell_lib: line 144: blkid: command not found\r\n1_debootstrap/build_rootfs_with_buffalo-kernel.sh: line 259: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 373: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 374: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 375: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 376: chroot: command not found\r\n/mnt/OpenLinkstation/lib/shell_lib: line 377: chroot: command not found\r\n1_debootstrap/build_rootfs_with_buffalo-kernel.sh: line 268: mount: command not found\r\n\r\nIt moved my /bin and some other folders which bricked my NAS...\r\nroot@LS-Jessie:/# cd\r\nboot/          dev/           mnt/           old_fs_backup/ proc/          run/           sys/\r\nroot@LS-Jessie:/mnt/OpenLinkstation# ls\r\n-bash: /bin/ls: No such file or directory\r\nroot@LS-Jessie:/mnt/old_fs_backup# echo $PATH\r\n/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin\r\nroot@LS-Jessie:/mnt/old_fs_backup# which ls\r\n-bash: which: command not found\r\nroot@LS-Jessie:/old_fs_backup# cp -r * /\r\n-bash: cp: command not found\r\n\r\nCan anyone tell me how can i recover it...\r\nVery much appreciated..."},"comment":{"url":"https://api.github.com/repos/rogers0/OpenLinkstation/issues/comments/208466308","html_url":"https://github.com/rogers0/OpenLinkstation/issues/6#issuecomment-208466308","issue_url":"https://api.github.com/repos/rogers0/OpenLinkstation/issues/6","id":208466308,"user":{"login":"LPTT","id":8556564,"avatar_url":"https://avatars.githubusercontent.com/u/8556564?v=3","gravatar_id":"","url":"https://api.github.com/users/LPTT","html_url":"https://github.com/LPTT","followers_url":"https://api.github.com/users/LPTT/followers","following_url":"https://api.github.com/users/LPTT/following{/other_user}","gists_url":"https://api.github.com/users/LPTT/gists{/gist_id}","starred_url":"https://api.github.com/users/LPTT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LPTT/subscriptions","organizations_url":"https://api.github.com/users/LPTT/orgs","repos_url":"https://api.github.com/users/LPTT/repos","events_url":"https://api.github.com/users/LPTT/events{/privacy}","received_events_url":"https://api.github.com/users/LPTT/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T17:35:31Z","updated_at":"2016-04-11T17:35:31Z","body":"Hi rogers0,\r\n\r\nI tried the version of today. Install completed successfully but again I'm stuck in bootloop. Any ideas? Is there maybe a way to repair it manually? "}}