So everything has worked fine up until now.
I ran "./MAKEDEV -v generic-nopty" as directed from wthin the /dev folder, chrooted into the LFS environment, and the following happened:
PHP Code:
root:/dev# ./MAKEDEV -v generic-nopty
./MAKEDEV: line 1: /dev/null: Permission denied
NOTICE: Resolving user/group names manually using /etc/group and /etc/passwd
./MAKEDEV: line 1: /dev/null: Permission denied
NOTICE: Resolving user/group names manually using /etc/group and /etc/passwd
create mem c 1 1 root:kmem 0640
create kmem c 1 2 root:kmem 0640
create null c 1 3 root:root 0666
create port c 1 4 root:kmem 0640
create zero c 1 5 root:root 0666
// continues on like this, casually erroring about [b]/dev/null[/b]
At first, I paid no mind to the errors. I continued onto the Linux headers installation with "mrproper" and such, until I executed "make include/linux/version.h" and was confronted by the following:
PHP Code:
root:/sources/linux-2.4.22# make include/linux/version.h
/bin/sh: line 1: /dev/null: Permission denied
/bin/sh: line 1: /dev/null: Permission denied
KERNELRELEASE "2.4.22" exceeds 64 characters
make: *** [include/linux/version.h] Error 1
I consulted google for an answer, and one came up. It was a message board, one of the posters suggested to the thread starter:
Quote:
Lets give /dev/null a test...
create a simple little file that contains anything, say "hello" somewhere. Then type this:
mv /path/to/little/file /dev/null
|
Well, I did just that. Soon I realize what had happened, the null device was simply replaced by the 'test' file I created. I confirmed this by doing 'cat /dev/null', it printed out the contents of the file.
So, fearing an error, I opened a terminal into my host environment. As a normal user, I executed "cat "test" >> /dev/null; echo "$?". In my host terminal, I got "0", meaning it was a success, whereas in the LFS chrooted terminal, I got:
PHP Code:
root:/sources/linux-2.4.22# cat "test" >> /dev/null;echo "$?"
bash: /dev/null: Permission denied
1
So, what, may I ask, did I do wrong? Anyone know of how to fix this?