5
I've chrooted into an external disk with sudo chroot /mnt/disk
, but almost everything I do (logging in, tab-completion, less
ing a file, ...) results in an error mentioning /dev/null: Permission denied
, even if the command seems to work.
/dev/null has the correct permissions (666), and file
says it's a character device, so it's not like anything has overwritten it with a regular file or changed the permissions.
What can I do to fix this?
Here's what tab-completion (of ls /u
) results in:
$ ls /ubash: /dev/null: Permission denied
bash: _upvars: `-a2': invalid number specifier
bash: /dev/null: Permission denied
bash: _upvars: `-a0': invalid number specifier