所以我真的试着提取它,但是它给了我一个错误:
命令(在usb上提取):
tar xpvf stage3-amd64-nomultilib-20201021T14503Z --xattrs-include='*.*' --numeric-owner输出:
tar: ./sys/: cannot change ownership to uid 0, gid 0 operation not permitted和:
tar: ./bin/mount: Cannot change mode to rws--x--x: operation not permitted这样的错误
有什么办法可以让我发色吗?在usb里?(注意-我只是想不想安装Gentoo)。
在用户Binki的评论之后
谢谢
我把闪存的文件系统改成了EXT4。运行gentoo wiki中的命令,然后猜怎么着?啊,真灵。下面是我运行至chroot的命令列表(用于nomultilib):
tar xpvf stage3-amd64-nomultilib-20201021T14503Z --xattrs-include='*.*' --numeric-owner安装文件系统:
mount --types proc /proc specified_usb/gentoo/proc
mount --rbind /sys specified_usb/gentoo/sys
mount --make-rslave specified_usb/gentoo/sys
mount --rbind /dev specified_usb/gentoo/dev
mount --make-rslave specified_usb/gentoo/dev
test -L /dev/shm && rm /dev/shm && mkdir /dev/shm
mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm
chmod 1777 /dev/shm发布于 2020-10-27 14:26:49
当您是root用户时,仍然可能会收到以下错误:
tar: ./sys/: cannot change ownership to uid 0, gid 0 operation not permitted
tar: ./bin/mount: Cannot change mode to rws--x--x: operation not permitted这些听起来像是权限错误。在某些情况下可能是这样。因此,请注意,您确实需要成为这些命令的根用户才能工作。
但是,如果您使用的文件系统不支持这些特性,这些错误也会显示出来。例如,如果闪存驱动器被格式化为FAT32的变体,则它无法支持某些操作,例如存储unix权限。您可以切换您的闪存驱动器以使用支持这些操作(如EXT4 )的文件系统。根据您的用例,您可能希望在闪存驱动器上创建一个回送文件(这样,闪存本身就可以保持较高的容量,而不是循环的EXT4)。
着色时,一定要记住如Gentoo手册中所解释的那样绑定挂载文件系统。如果没有至少安装了/dev、/sys和/proc的东西,某些操作/程序就会失败。
https://unix.stackexchange.com/questions/616403
复制相似问题