WHOOPS... rm /lib/*

Goof-ball over here trying to type too fast just removed /lib/* from
my QNX 6.2NC box, yes I was root.
What’s the best way to recover what was in there?

TIA
Kevin

Kevin Caporaso <kcaporaso@pillardata.com> wrote:

Goof-ball over here trying to type too fast just removed /lib/* from
my QNX 6.2NC box, yes I was root.
What’s the best way to recover what was in there?

Try this first:

pkgctl -r /lib

if it not work, try this:

rm -rf /var/pkg/spill/x86/lib

slay -fQsSIGKILL fs-pkg; /pkgs/base/qnx/os/core-2.1.3/x86/sbin/fs-pkg

instead of slay fs-pkg, you can just reboot.

-xtang

xtang, i remember using pkgctl before but where does qnx put it,
i can’t find it now. thanks

“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:ak5pv8$pmm$1@nntp.qnx.com

Kevin Caporaso <> kcaporaso@pillardata.com> > wrote:

Goof-ball over here trying to type too fast just removed /lib/* from
my QNX 6.2NC box, yes I was root.
What’s the best way to recover what was in there?

Try this first:

pkgctl -r /lib

if it not work, try this:

rm -rf /var/pkg/spill/x86/lib

slay -fQsSIGKILL fs-pkg; /pkgs/base/qnx/os/core-2.1.3/x86/sbin/fs-pkg

instead of slay fs-pkg, you can just reboot.

-xtang

found it … sorry to waste your time.
got a /lib [not spilled
will try your next suggestion.

“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:ak5pv8$pmm$1@nntp.qnx.com

Kevin Caporaso <> kcaporaso@pillardata.com> > wrote:

Goof-ball over here trying to type too fast just removed /lib/* from
my QNX 6.2NC box, yes I was root.
What’s the best way to recover what was in there?

Try this first:

pkgctl -r /lib

if it not work, try this:

rm -rf /var/pkg/spill/x86/lib

slay -fQsSIGKILL fs-pkg; /pkgs/base/qnx/os/core-2.1.3/x86/sbin/fs-pkg

instead of slay fs-pkg, you can just reboot.

-xtang

second suggestion worked!
Thanks xtang!!!

“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:ak5pv8$pmm$1@nntp.qnx.com

Kevin Caporaso <> kcaporaso@pillardata.com> > wrote:

Goof-ball over here trying to type too fast just removed /lib/* from
my QNX 6.2NC box, yes I was root.
What’s the best way to recover what was in there?

Try this first:

pkgctl -r /lib

if it not work, try this:

rm -rf /var/pkg/spill/x86/lib

slay -fQsSIGKILL fs-pkg; /pkgs/base/qnx/os/core-2.1.3/x86/sbin/fs-pkg

instead of slay fs-pkg, you can just reboot.

-xtang