It’s not possible to restore .boot and .altboot file from archive into root
directory.
Solution:
gzip -cd $1 |
pax -ro
-s “,^backup/.boot,$2/$TMP_DIR/.boot,”
-s “,^backup/.altboot,$2/$TMP_DIR/.altboot,”
-s “,^backup,$2,”
cp $2/$TMP_DIR/.boot $2/.boot
cp $2/$TMP_DIR/.altboot $2/.altboot
rm -rf $2/$TMP_DIR
$1 - archive file
$2 - target dir
$TMP_DIR - temporary dir ( could be $$ )
“^backup” - added prefix for files in archive
“Shashank” <sbalijepalli@precitech.com> wrote in message
news:b891e0$90p$1@inn.qnx.com…
I compressed my entire root directory using the “tar” utility. I would
like
to uncompress the tar file onto my hard drive. But when I untar, it
doesn’t
copy the .boot and .altboot files and they stay 0 length even though my
tar
file contains >0 length .boot and .altboot files. Is there any option that
I
could use with tar so that it would forcefully write the .boot and
…altboot
files that are created with dinit?
Thank you,
Shashank
“David Gibbs” <> dagibbs@qnx.com> > wrote in message
news:b891fd$44s$> 2@nntp.qnx.com> …
Shashank <> sbalijepalli@precitech.com> > wrote:
I initialized a hard drive using the dinit utility.
dinit -h /dev/hd0t77
After the initialization, I wanted to remove the
.boot and .altboot files. I used “rm” to do just that
But it gave the following message:
Can’t unlink .boot: Resource Busy.
Is there a way to delete these files?
No.
They are always there, they must always be there, they can not
go away.
They can, of course, be zero-length, and are by default.
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.