linux文件系统解压 tar: Exiting with failure status due to previous errors [Solved]

在执行

$ tar jxf rootfs.tar.bz2 -C ./rootfs/

时遇到如下问题:

tar: dev/console: Cannot mknod: Operation not permitted

tar: dev/tty: Cannot mknod: Operation not permitted

tar: dev/null: Cannot mknod: Operation not permitted

tar: Exiting with failure status due to previous errors

在解压时加上sudo,可解决。

$ sudo tar jxf rootfs.tar.bz2 -C ./rootfs/

原因在于,mknod需要使用管理员权限。

 

你可能感兴趣的:(status)