[lfs-support] LFS-7.0 /dev/pts
I have finished my LFS-7.0 build and I have successfully booted it aafter solving some problems. The symlink /bin/sh to /bin/bash was missing. I am looking into why that happened, but I see in the chapter06 in the bash section that the link is not created by hand. I believe it should have beeen created by the package installation but it was not. I have made this link by hand to fix this particular problem. I have the following two issues to correct: When it now boots there is a line that states: mount: mount point /dev/pts does not exist This appears in the boot sequence What is responseable for /dev/pts and why might it be missing? The other issue I have is with grub2. Upon trying to install it to the mbr using grub-install /dev/sda it puked saying that the core.img file was too big, hereby trashing the grub-legacy boot loader leaving the system unbootable. I will need to look into what/why/when the cause of the core.img file being too big. Any help would be greatly appreciated Salamat -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
Baho Utot wrote: > I have finished my LFS-7.0 build and I have successfully booted it aafter > solving some problems. > > > The symlink /bin/sh to /bin/bash was missing. I am looking into why that > happened, but I see in the chapter06 in the bash section that the link is not > created by hand. I believe it should have beeen created by the package > installation but it was not. I have made this link by hand to fix this > particular problem. It's done in Section 6.6 - Creating Essential Files and Symlinks > I have the following two issues to correct: > > When it now boots there is a line that states: > mount: mount point /dev/pts does not exist > This appears in the boot sequence > > What is responseable for /dev/pts and why might it be missing? It is mounted as devpts /dev/pts devpts gid=4,mode=620 0 0 I suspect that /dev/pts should be created by udev, you might want to comment that out of fstab to see if it is created and then try to mount manually. That's not a final solution, but it might give you some clues. The most likely problem is a kernel configuration issue. I don't know what it would be, but it's not CONFIG_DEVPTS_MULTIPLE_INSTANCES. I don't have that set either. What I do have set in that area is: CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y CONFIG_VT_CONSOLE=y CONFIG_HW_CONSOLE=y CONFIG_VT_HW_CONSOLE_BINDING=y CONFIG_UNIX98_PTYS=y > The other issue I have is with grub2. Upon trying to install it to the mbr > using grub-install /dev/sda it puked saying that the core.img file was too > big, hereby trashing the grub-legacy boot loader leaving the system > unbootable. I will need to look into what/why/when the cause of the core.img > file being too big. How big is /boot/core.img? It probably needs to be less than 31K. /usr/sbin/grub-install is a script. It's running "$grub_mkimage" ${config_opt} -d "${pkglibdir}" -O ${mkimage_target} --output="${grubdir}/core.${imgext}" --prefix="${prefix_drive}${relative_grubdir}" $modules Have the script print out what it thinks the variables are. If there are too many $modules, then that needs to be reduced. You might also want to rebuild grub and make sure it finds xz. There have been some issues with that lately. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Fri, 27 Jan 2012 22:57:57 -0600 Bruce Dubbs wrote: > It is mounted as > devpts /dev/pts devpts gid=4,mode=620 0 0 > > I suspect that /dev/pts should be created by udev, you might want to > comment that out of fstab to see if it is created and then try to mount > manually. No, udev doesn't create it. The mountpoint should be created by the mountfs bootscript. Just after where it says "Mounting remaining file systems..." add the line: mkdir /dev/{pts,shm} Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Friday 27 January 2012 11:57:57 pm Bruce Dubbs wrote: > Baho Utot wrote: > > I have finished my LFS-7.0 build and I have successfully booted it aafter > > solving some problems. > > > > > > The symlink /bin/sh to /bin/bash was missing. I am looking into why that > > happened, but I see in the chapter06 in the bash section that the link is > > not created by hand. I believe it should have beeen created by the > > package installation but it was not. I have made this link by hand to > > fix this particular problem. > > It's done in Section 6.6 - Creating Essential Files and Symlinks > > > I have the following two issues to correct: > > > > When it now boots there is a line that states: > > mount: mount point /dev/pts does not exist > > This appears in the boot sequence > > > > What is responseable for /dev/pts and why might it be missing? > > It is mounted as > devpts /dev/pts devpts gid=4,mode=620 0 0 > I checked the fstab and it is correct > I suspect that /dev/pts should be created by udev, you might want to > comment that out of fstab to see if it is created and then try to mount > manually. That's not a final solution, but it might give you some clues. > > The most likely problem is a kernel configuration issue. I don't know > what it would be, but it's not CONFIG_DEVPTS_MULTIPLE_INSTANCES. I > don't have that set either. What I do have set in that area is: > > CONFIG_VT=y > CONFIG_CONSOLE_TRANSLATIONS=y > CONFIG_VT_CONSOLE=y > CONFIG_HW_CONSOLE=y > CONFIG_VT_HW_CONSOLE_BINDING=y > CONFIG_UNIX98_PTYS=y I have this currently in the config file CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y CONFIG_VT_CONSOLE=y CONFIG_HW_CONSOLE=y CONFIG_VT_HW_CONSOLE_BINDING=y CONFIG_UNIX98_PTYS=y # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_NONSTANDARD=y I will rebuild the kernel and then try to find the udev script reponsible for /dev/pts. > > > The other issue I have is with grub2. Upon trying to install it to the > > mbr using grub-install /dev/sda it puked saying that the core.img file > > was too big, hereby trashing the grub-legacy boot loader leaving the > > system unbootable. I will need to look into what/why/when the cause of > > the core.img file being too big. > > How big is /boot/core.img? It probably needs to be less than 31K. > ls reports the size of core.img 31901. I will try rebuilding it > /usr/sbin/grub-install is a script. It's running > > "$grub_mkimage" ${config_opt} -d "${pkglibdir}" -O ${mkimage_target} > --output="${grubdir}/core.${imgext}" > --prefix="${prefix_drive}${relative_grubdir}" $modules > > Have the script print out what it thinks the variables are. If there > are too many $modules, then that needs to be reduced. I will have to look at that to see how to do this. > You might also want to rebuild grub and make sure it finds xz. There > have been some issues with that lately. > > >-- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Sat, 28 Jan 2012 10:06:31 -0500 Baho Utot wrote: > I have this currently in the config file > > CONFIG_VT=y > CONFIG_CONSOLE_TRANSLATIONS=y > CONFIG_VT_CONSOLE=y > CONFIG_HW_CONSOLE=y > CONFIG_VT_HW_CONSOLE_BINDING=y > CONFIG_UNIX98_PTYS=y > # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set > # CONFIG_LEGACY_PTYS is not set > CONFIG_SERIAL_NONSTANDARD=y > > I will rebuild the kernel and then try to find the udev script reponsible > for /dev/pts. /dev/pts used to be copied from /lib/udev/devices/pts by the bootscripts (the book still creates /lib/udev/devices/pts). But it seems that the only thing copied now is /lib/udev/devices/null by the mountvirtfs bootscript. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
Andrew Benton wrote: > On Fri, 27 Jan 2012 22:57:57 -0600 > Bruce Dubbs wrote: > >> It is mounted as >> devpts /dev/pts devpts gid=4,mode=620 0 0 >> >> I suspect that /dev/pts should be created by udev, you might want to >> comment that out of fstab to see if it is created and then try to mount >> manually. > > No, udev doesn't create it. The mountpoint should be created by the > mountfs bootscript. Just after where it says "Mounting remaining file > systems..." add the line: > mkdir /dev/{pts,shm} /dev/shm is a symlink to /run/shm. We create /run/shm in mountvirtfs and link it in udev. The no-error sequence there is: if ! mountpoint /dev > /dev/null; then mount -n -t tmpfs tmpfs /dev -o mode=755 fi ln -s /run/shm /dev/shm I'll do some debugging to see if the mountpoint exists or not. Note that I am still using LFS 7.0 and not using the newer udev/devtmpfs. What different is that I have /dev/pts created implicitly without anything specific in the scripts. I haven't heard of the problem Baho has before. There is no reference to /dev/pts in any of the scripts. There are three places /dev/pts is mentioned in the book: 6.2. Preparing Virtual Kernel File Systems 8.2. Creating the /etc/fstab File 9.3. Rebooting the System -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Sat, 28 Jan 2012 17:06:44 -0600 Bruce Dubbs wrote: > There are three places /dev/pts is mentioned in the book: > > 6.2. Preparing Virtual Kernel File Systems > 8.2. Creating the /etc/fstab File > 9.3. Rebooting the System ...and on the udev page we have: install -dv /lib/{firmware,udev/devices/pts} The bootscripts used to copy everything in /lib/udev/devices to /dev Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
Andrew Benton wrote: > On Sat, 28 Jan 2012 17:06:44 -0600 > Bruce Dubbs wrote: > >> There are three places /dev/pts is mentioned in the book: >> >> 6.2. Preparing Virtual Kernel File Systems >> 8.2. Creating the /etc/fstab File >> 9.3. Rebooting the System > > ...and on the udev page we have: > install -dv /lib/{firmware,udev/devices/pts} Good catch. I forgot about that. > The bootscripts used to copy everything in /lib/udev/devices to /dev IIRC, that was dropped because udev did that for us. AFAIK, it still does, at least on my system it does, but I'm still using udev-173 from LFS-7.0. From the udev man page: "Static device nodes might be provided by kernel modules or copied from /lib/udev/devices. These nodes might not have a corresponding kernel device at the time udevd is started; they can trigger automatic kernel module loading." That quote is buried a bit on the page when discussing rules. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Saturday 28 January 2012 07:22:24 pm Bruce Dubbs wrote: > Andrew Benton wrote: > > On Sat, 28 Jan 2012 17:06:44 -0600 > > > > Bruce Dubbs wrote: > >> There are three places /dev/pts is mentioned in the book: > >> > >> 6.2. Preparing Virtual Kernel File Systems > >> 8.2. Creating the /etc/fstab File > >> 9.3. Rebooting the System > > > > ...and on the udev page we have: > > install -dv /lib/{firmware,udev/devices/pts} > > Good catch. I forgot about that. > > > The bootscripts used to copy everything in /lib/udev/devices to /dev > > IIRC, that was dropped because udev did that for us. AFAIK, it still > does, at least on my system it does, but I'm still using udev-173 from > LFS-7.0. From the udev man page: > > "Static device nodes might be provided by kernel modules or copied > from /lib/udev/devices. These nodes might not have a corresponding > kernel device at the time udevd is started; they can trigger automatic > kernel module loading." > > That quote is buried a bit on the page when discussing rules. > > >-- Bruce I have worked through the problem with /dev/pts, After seeing a post that I should have /lib/{firmware,udev/devices/pts} I checked that and found that the pts directory was missing but the others were indeed there. After creating the pts directory it is now working. Don't know why it didn't get created, I checked my script for udev and install -dv /lib/{firmware,udev/devices/pts was there and correct. I will now check the rest of the system for correctness/working. After which I will then attempt to get LFS-7.0 working from lvm. Thanks for all your support. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page