Re: [lfs-support] /bin/sh: /dev/null: Permission denied
On Mon, 03 Jul 2017 22:09:38 -0400 Ken Moffatzarniwh...@ntlworld.com wrote On Mon, Jul 03, 2017 at 06:49:13PM -0400, Isaac D. Cohen wrote: Hi, I'm up to section 6.7.1 ("Installation of Linux API Headers") and when I type "make mrproper" I get the following error message: /bin/sh: /dev/null: Permission denied If I type: ls -l /dev/null I get: crw-rw-rw- 1 root root 1, 3 Jun 28 21:57 /dev/null I'm surprised by that. Google found similar error messages where a *user* could not do things because /dev itself had the wrong permissions (ls -ld /dev in chroot). But you should be root here in chroot, so perms for group and other are irrelevant. And you bound the host's /dev in 6.2.2, didn't you ? Oh, that must be it. I did section 6.2.2 but then I shut down my computer and later resumed. I'm sorry. I should have known that would be a problem. It doesn't preserve mounted stuff for the next terminal session. Anyway, I did that section again and it works now! Thank you very much! which is correct. So that can't be the problem. The FAQ (http://www.linuxfromscratch.org/lfs/faq.html#perm-denied) also says it can be /etc/fstab. But I'm not sure which one. The one on the host system says: /dev/mapper/isw_bejfhacdjf_Volume1p4 / ext4 errors=remount-ro $ /dev/mapper/isw_bejfhacdjf_Volume1p5 none swap sw 0 $ /dev/mapper/isw_bejfhacdjf_Volume1p5 none swap sw 0 $ I don't think /dev/mapper entries are the problem : if there is a problem in the host system's fstab, it probably relates to /dev itself. I say 'probably' because I'm not familiar with that entry in the FAQ and I don't recall anybody mentioning permission problems with /dev on the lists. I don't know if there is a problem there. On the LFS partition, /etc/fstab doesn't exist. Is that a problem? No, not at this stage - you have barely started building the final LFS system. And since you didn't comment on my previous replies that /mnt/lfs should be its own filesystem, I still doubt that you will be able to boot your new system when you complete it. I hope I'm wrong on that. I'm building LFS in its own filesystem. For some reason my distro mounts filesystems in media/username hence /media/isaac/LFS. Isaac -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] /bin/sh: /dev/null: Permission denied
On Mon, Jul 03, 2017 at 06:49:13PM -0400, Isaac D. Cohen wrote: > Hi, > > I'm up to section 6.7.1 ("Installation of Linux API Headers") and when I type > "make mrproper" I get the following error message: > > /bin/sh: /dev/null: Permission denied > > If I type: > > ls -l /dev/null > > I get: > > crw-rw-rw- 1 root root 1, 3 Jun 28 21:57 /dev/null > I'm surprised by that. Google found similar error messages where a *user* could not do things because /dev itself had the wrong permissions (ls -ld /dev in chroot). But you should be root here in chroot, so perms for group and other are irrelevant. And you bound the host's /dev in 6.2.2, didn't you ? > which is correct. So that can't be the problem. The FAQ > (http://www.linuxfromscratch.org/lfs/faq.html#perm-denied) also says it can > be /etc/fstab. But I'm not sure which one. The one on the host system says: > > /dev/mapper/isw_bejfhacdjf_Volume1p4 / ext4 > errors=remount-ro $ > /dev/mapper/isw_bejfhacdjf_Volume1p5 noneswapsw > 0 $ > /dev/mapper/isw_bejfhacdjf_Volume1p5 noneswapsw > 0 $ > I don't think /dev/mapper entries are the problem : if there is a problem in the host system's fstab, it probably relates to /dev itself. I say 'probably' because I'm not familiar with that entry in the FAQ and I don't recall anybody mentioning permission problems with /dev on the lists. > > I don't know if there is a problem there. On the LFS partition, /etc/fstab > doesn't exist. Is that a problem? > No, not at this stage - you have barely started building the final LFS system. And since you didn't comment on my previous replies that /mnt/lfs should be its own filesystem, I still doubt that you will be able to boot your new system when you complete it. I hope I'm wrong on that. ĸen -- I live in a city. I know sparrows from starlings. After that everything is a duck as far as I'm concerned. -- Monstrous Regiment -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] /bin/sh: /dev/null: Permission denied
Hi, I'm up to section 6.7.1 ("Installation of Linux API Headers") and when I type "make mrproper" I get the following error message: /bin/sh: /dev/null: Permission denied If I type: ls -l /dev/null I get: crw-rw-rw- 1 root root 1, 3 Jun 28 21:57 /dev/null which is correct. So that can't be the problem. The FAQ (http://www.linuxfromscratch.org/lfs/faq.html#perm-denied) also says it can be /etc/fstab. But I'm not sure which one. The one on the host system says: /dev/mapper/isw_bejfhacdjf_Volume1p4 / ext4errors=remount-ro $ /dev/mapper/isw_bejfhacdjf_Volume1p5 noneswapsw 0 $ /dev/mapper/isw_bejfhacdjf_Volume1p5 noneswapsw 0 $ I don't know if there is a problem there. On the LFS partition, /etc/fstab doesn't exist. Is that a problem? Thank you very much, Isaac D. Cohen -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style