Yup, done all of these at least once. Some of them twice by now. Went back through all the steps from Chapter 6 again in case I had done something wrong. Here's how it went:
An - I'm assuming small - iritation arose when chrooting itself, the PATH variable wasn't set properly, as it couldn't find any programs, but I just used the export PATH=/static/bin:$PATH when I was in chroot and all seemed fine from there.
chown -R 0:0 /static went off with no complaints.
Making the directory tree gave a bunch load of errors, all along the lines of, "these already exist".
Changing the permissions of /root /tmp and /var/tmp went fine also. Did an ls -l in the various directories to confirm:
Code:
drwxr-x--- 2 0 0 4096 Jan 7 18:24 root
drwxrwxrwt 2 0 0 4096 Jan 7 18:35 tmp
And in /var/tmp:
Code:
drwxrwxrwt 2 0 0 4096 Jan 7 09:01 tmp
Now I'll admit I never did fully get the hang of what each of the numbers on chmod are to mean in ls -l permissions, but the general gist of higher numbers equals less permissions required got through, which seems to hold for the the above.
Mounting proc simply said that it was already mounted.
Creating the mtab symlink from /proc/mount with:
ln -sf /proc/mounts /etc/mtab went fine, only thing odd was that it didn't give an error about it already existing.
I deleted everything in the /bin dir, as there were all symlinks anyway. Made the /bin/bash and /bin/sh symlinks without problems.
Then I deleted the group and passwd files in /etc to make them again with those mini-scripts. They both passed without error.
So onto the MAKEDEV script. used
MAKEDEV -v generic and it filled the screen pretty quickly with what it was up to. It looked exactly the same as before, right down to what during the first time I assumed where not important, about 20 of these lines interspersed themselves throughout the output:
Code:
./MAKEDEV: /dev/null: Permission denied
NOTICE: Resolving user/group names manually using /etc/group and /etc/passwd
Not sure if this indicates a problem or not as the script continues regardless until it's done. Yet after all of this, and remaking the symlink /bin/pwd, I still get the same output from the make include/linux/version.h.
My spidy sense tells me that /dev/null's something to do with it. Here are the permissions for those that understand them better:
Code:
crw-rw-rw- 1 0 0 1, 3 Jan 7 18:46 null
Thanks for your replies guys
