NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

givememynamebak's avatar
May 30, 2021

ReadyNAS SDK - Error & Proper removal

Hi - I could use some help.

 

I want to build a .deb file, so I followed all the directions in the SDK.  When I try to build, I get this error: 

root@ReadyNAS:~/sdk/examples# ./build.sh
E: Failed to change to directory ‘/root/sdk/examples/sample1-1.0.0’: No such file or directory
I: The directory does not exist inside the chroot.  Use the --directory option to run the command in a different directory.

I have no ideas how to fix this so it really builds...  Anyone have any ideas?

------

The next thing is, after doing all these steps - I found out that there's a VirtualBox image available (albiet, not the latest OS6 version) that should work.  So my next question is, how do I properly reverse these steps to unmount/remove and get the space back from my file system without messing anything up?

 

$ sudo apt update
$ sudo apt install debootstrap
$ sudo mkdir -p /chroot/jessie
$ sudo debootstrap --arch amd64 jessie /chroot/jessie http://ftp.us.debian.org/debian
$ sudo apt install schroot
$ sudo bash -c 'cat > /etc/schroot/schroot.conf' << EOF
[jessie]
aliases=R6,r6
description=jessie 64bits for R6 developement
type=directory
directory=/chroot/jessie
users=r2d2
root-users=r2d2
EOF

$ schroot -c R6 apt -- install sudo
$ schroot -c R6 sudo -- apt update
$ schroot -c R6 sudo -- apt install build-essential

$ schroot -c R6 sudo -- \
  apt install libxml2-dev libsqlite3-dev pkg-config libsystemd-daemon-dev devscripts

 

 

 

1 Reply

Replies have been turned off for this discussion
  • So these are the step's I've taken to remove, can anyone tell if I missed something to get my space back?  I went from 87% full root volume to %64 full.

     

    $ schroot -c R6 sudo -- apt remove libxml2-dev libsqlite3-dev pkg-config libsystemd-daemon-dev devscripts
    $ schroot -c R6 sudo -- apt remove build-essential
    $ schroot -c R6 apt -- remove sudo
    $ vi /etc/schroot/schroot.conf -- and removed contents
    $ sudo apt remove schroot
    $ rm -rf /chroot
    $ apt remove debootstrap
    $ reboot

     

    Is there anything additional I can do for cleanup to maximize my space back on root volume?

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More