LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Issues with /dev/pts & /dev/shm, when LFS boots (http://www.linuxquestions.org/questions/linux-from-scratch-13/issues-with-dev-pts-and-dev-shm-when-lfs-boots-847056/)

zer0signal 11-28-2010 12:39 PM

Issues with /dev/pts & /dev/shm, when LFS boots
 
Okay here is what is going on, I created an LFS system and had no issues with the building of the system. Everything seemed to go pretty smooth, I did have one issue with Udev, but was able to resolve the issue by reinstalling udev.

I have searched High and Low for answers on what is going on and how its created and what sets this up;

LFS works great, I got it all setup and ran into this issue when I setup LFS to utilize Dropbear "SSH Server/Client". No terminal available "pty"

I know that any Xterm or SSH session creates a fake terminal "pty" which is a slave to the PTMX file and the "PTS" files are put into the /dev/pts folder or container.

I know the PTMX file is located in the /dev directory, but there is not /dev/pts dir in the /dev dir. also there is no /dev/shm directory in there either. I know that the /dev/shm is the shared memory folder for the TEMPFS so other programs can have direct access to the program either locally or over Network with Interprocess Communication. (IPC)

I dont know what creates those directory's in the /dev dir. Is it the Kernel? or Udev? or am i supposed to create those dir's and then they are mounted? What is actually controlling those directory's is what Im really looking for.

Environment:
VMware vSphere Hosting a Fedora 14 VM "Guest" and fedora is the host operating system that is building the LFS system on a separate hard drive.

LFS v 6.7

When machine boots here is the output error:
INIT:
mounting kernel-based file system /proc to /sys
populating /dev with device nodes
turns swap on
mounting root (RO)
checking root files system "comes out clean"
remounting root (RW)
recording existing mounts in /etc/mtab
Mounting remaining file systems
mount: mount point /dev/pts does not exists
mount: mount point /dev/shm does not exits

and the rest of the boot process is fine;

I have tried to manually create those directory's but on reboot they are no longer there in the /dev directory;

I have run out of ideas, and direction on this. I have been trying to resolve these little issues for 2 days straight now. And any help or suggestions would be much appreciated.

Thanks
Kurt

Here are some of my logs and fstab information;

Quote:

# Begin /etc/fstab

# file system mount-point type options dump fsck
# order

/dev/sdb1 / ext3 defaults 1 1
/dev/sdc1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
# End /etc/fstab

ls -l /
drwxr-xr-x. 2 root root 4096 Nov 18 05:47 bin
drwxr-xr-x. 3 root root 4096 Nov 18 08:12 boot
drwxr-xr-x. 2 root root 4096 Nov 15 20:21 dev
drwxr-xr-x. 13 root root 4096 Nov 28 07:33 etc
drwxr-xr-x. 4 root root 4096 Nov 26 18:51 home
drwxr-xr-x. 7 root root 4096 Nov 18 07:34 lib
drwx------. 2 root root 16384 Nov 14 11:59 lost+found
drwxr-xr-x. 4 root root 4096 Nov 15 20:22 media
drwxr-xr-x. 2 root root 4096 Nov 15 20:22 mnt
drwxr-xr-x. 2 root root 4096 Nov 15 20:22 opt
drwxr-xr-x. 2 root root 4096 Nov 15 20:21 proc
drwxr-x---. 2 root root 4096 Nov 26 19:27 root
drwxr-xr-x. 2 root root 4096 Nov 18 07:10 sbin
drwxrwxrwt. 50 root root 4096 Nov 26 19:45 sources
drwxr-xr-x. 2 root root 4096 Nov 15 20:22 srv
drwxr-xr-x. 2 root root 4096 Nov 15 20:21 sys
drwxrwxrwt. 2 root root 20480 Nov 27 06:23 tmp
drwxr-xr-x. 12 root root 4096 Nov 15 20:20 tools
drwxr-xr-x. 9 root root 4096 Nov 15 20:22 usr
drwxr-xr-x. 12 root root 4096 Nov 15 20:22 var

cat /var/log/sys.log
Nov 28 07:33:54 relay1 kernel: [ 0.941001] Scanning for low memory corruption every 60 seconds
Nov 28 07:33:54 relay1 kernel: [ 0.966844] audit: initializing netlink socket (disabled)
Nov 28 07:33:54 relay1 kernel: [ 0.972158] type=2000 audit(1290947624.792:1): initialized
Nov 28 07:33:54 relay1 kernel: [ 1.004279] HugeTLB registered 2 MB page size, pre-allocated 0 pages
Nov 28 07:33:54 relay1 kernel: [ 1.040151] Registering the dns_resolver key type
Nov 28 07:33:54 relay1 kernel: [ 1.043558] Slow work thread pool: Starting up
Nov 28 07:33:54 relay1 kernel: [ 1.048751] Slow work thread pool: Ready
Nov 28 07:33:54 relay1 kernel: [ 1.050700] msgmni has been set to 1002
Nov 28 07:33:54 relay1 kernel: [ 1.062487] cryptomgr_test used greatest stack depth: 6928 bytes left
Nov 28 07:33:54 relay1 kernel: [ 1.068063] cryptomgr_test used greatest stack depth: 6924 bytes left
Nov 28 07:33:54 relay1 kernel: [ 1.073461] cryptomgr_test used greatest stack depth: 6568 bytes left
Nov 28 07:33:54 relay1 kernel: [ 1.083311] cryptomgr_test used greatest stack depth: 6440 bytes left
Nov 28 07:33:54 relay1 kernel: [ 1.120962] alg: No test for stdrng (krng)
Nov 28 07:33:54 relay1 kernel: [ 1.123337] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
Nov 28 07:33:54 relay1 kernel: [ 1.123909] io scheduler noop registered
Nov 28 07:33:54 relay1 kernel: [ 1.124111] io scheduler deadline registered
Nov 28 07:33:54 relay1 kernel: [ 1.124381] io scheduler cfq registered (default)
Nov 28 07:33:54 relay1 kernel: [ 1.126457] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Nov 28 07:33:54 relay1 kernel: [ 1.136626] Non-volatile memory driver v1.3
Nov 28 07:33:54 relay1 kernel: [ 1.138979] [drm] Initialized drm 1.1.0 20060810
Nov 28 07:33:54 relay1 kernel: [ 1.139884] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
Nov 28 07:33:54 relay1 kernel: [ 1.401571] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Nov 28 07:33:54 relay1 kernel: [ 1.649049] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Nov 28 07:33:54 relay1 kernel: [ 1.664819] brd: module loaded
Nov 28 07:33:54 relay1 kernel: [ 1.669008] loop: module loaded
Nov 28 07:33:54 relay1 kernel: [ 1.685502] pci 0000:00:10.0: PCI->APIC IRQ transform: INT A -> IRQ 17
Nov 28 07:33:54 relay1 kernel: [ 1.693349] scsi: ***** BusLogic SCSI Driver Version 2.1.16 of 18 July 2002 *****
Nov 28 07:33:54 relay1 kernel: [ 1.695381] scsi: Copyright 1995-1998 by Leonard N. Zubkoff <lnz@dandelion.com>
Nov 28 07:33:54 relay1 kernel: [ 1.713748] scsi0: Configuring BusLogic Model BT-958 PCI Wide Ultra SCSI Host Adapter
Nov 28 07:33:54 relay1 kernel: [ 1.714057] scsi0: Firmware Version: 5.07B, I/O Address: 0x1060, IRQ Channel: 17/Level
Nov 28 07:33:54 relay1 kernel: [ 1.714349] scsi0: PCI Bus: 0, Device: 16, Address: 0xF4800000, Host Adapter SCSI ID: 7
Nov 28 07:33:54 relay1 kernel: [ 1.714842] scsi0: Parity Checking: Enabled, Extended Translation: Enabled
Nov 28 07:33:54 relay1 kernel: [ 1.715179] scsi0: Synchronous Negotiation: Ultra, Wide Negotiation: Enabled
Nov 28 07:33:54 relay1 kernel: [ 1.715414] scsi0: Disconnect/Reconnect: Enabled, Tagged Queuing: Enabled
Nov 28 07:33:54 relay1 kernel: [ 1.715582] scsi0: Scatter/Gather Limit: 128 of 128 segments, Mailboxes: 211
Nov 28 07:33:54 relay1 kernel: [ 1.715807] scsi0: Driver Queue Depth: 211, Host Adapter Queue Depth: 192
Nov 28 07:33:54 relay1 kernel: [ 1.715966] scsi0: Tagged Queue Depth: Automatic, Untagged Queue Depth: 3
Nov 28 07:33:54 relay1 kernel: [ 1.721228] scsi0: *** BusLogic BT-958 Initialized Successfully ***
Nov 28 07:33:54 relay1 kernel: [ 3.734030] scsi0 : BusLogic BT-958
Nov 28 07:33:54 relay1 kernel: [ 3.758884] scsi 0:0:0:0: Direct-Access VMware Virtual disk 1.0 PQ: 0 ANSI: 2
Nov 28 07:33:54 relay1 kernel: [ 3.764675] scsi 0:0:1:0: Direct-Access VMware Virtual disk 1.0 PQ: 0 ANSI: 2
Nov 28 07:33:54 relay1 kernel: [ 3.769541] scsi 0:0:2:0: Direct-Access VMware Virtual disk 1.0 PQ: 0 ANSI: 2
Nov 28 07:33:54 relay1 kernel: [ 3.819702] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k6-NAPI
Nov 28 07:33:54 relay1 kernel: [ 3.819911] e1000: Copyright (c) 1999-2006 Intel Corporation.
Nov 28 07:33:54 relay1 kernel: [ 3.820811] VMware vmxnet3 virtual NIC driver - version 1.0.5.0-k-NAPI
Nov 28 07:33:54 relay1 kernel: [ 3.821397] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
Nov 28 07:33:54 relay1 kernel: [ 3.821928] pcnet32 0000:00:11.0: PCI->APIC IRQ transform: INT A -> IRQ 18
Nov 28 07:33:54 relay1 kernel: [ 3.835870] pcnet32: PCnet/PCI II 79C970A at 0x1080, 00:50:56:96:00:06 assigned IRQ 18
Nov 28 07:33:54 relay1 kernel: [ 3.865876] sd 0:0:0:0: [sda] 29360128 512-byte logical blocks: (15.0 GB/14.0 GiB)
Nov 28 07:33:54 relay1 kernel: [ 3.867569] sd 0:0:0:0: [sda] Write Protect is off
Nov 28 07:33:54 relay1 kernel: [ 3.867874] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
Nov 28 07:33:54 relay1 kernel: [ 3.868952] sd 0:0:2:0: [sdc] 4194304 512-byte logical blocks: (2.14 GB/2.00 GiB)
Nov 28 07:33:54 relay1 kernel: [ 3.869265] sd 0:0:0:0: [sda] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 3.869471] sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 3.871109] sd 0:0:2:0: [sdc] Write Protect is off
Nov 28 07:33:54 relay1 kernel: [ 3.871425] sd 0:0:2:0: [sdc] Mode Sense: 03 00 00 00
Nov 28 07:33:54 relay1 kernel: [ 3.883003] sd 0:0:2:0: [sdc] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 3.883279] sd 0:0:2:0: [sdc] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 3.883660] sd 0:0:1:0: [sdb] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB)
Nov 28 07:33:54 relay1 kernel: [ 3.884109] sd 0:0:1:0: [sdb] Write Protect is off
Nov 28 07:33:54 relay1 kernel: [ 3.884236] sd 0:0:1:0: [sdb] Mode Sense: 03 00 00 00
Nov 28 07:33:54 relay1 kernel: [ 3.884324] sd 0:0:1:0: [sdb] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 3.884441] sd 0:0:1:0: [sdb] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 3.884715] sd 0:0:0:0: [sda] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 3.884836] sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 3.885307] sda:
Nov 28 07:33:54 relay1 kernel: [ 3.919896] sd 0:0:1:0: [sdb] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 3.923723] sd 0:0:1:0: [sdb] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 3.924455] sdb:
Nov 28 07:33:54 relay1 kernel: [ 3.943509] pcnet32: eth0: registered as PCnet/PCI II 79C970A
Nov 28 07:33:54 relay1 kernel: [ 3.948029] pcnet32: 1 cards_found
Nov 28 07:33:54 relay1 kernel: [ 3.957470] console [netcon0] enabled
Nov 28 07:33:54 relay1 kernel: [ 3.957816] netconsole: network logging started
Nov 28 07:33:54 relay1 kernel: [ 3.963475] sda1 sda2
Nov 28 07:33:54 relay1 kernel: [ 3.970773] sdb1
Nov 28 07:33:54 relay1 kernel: [ 4.549252] serio: i8042 KBD port at 0x60,0x64 irq 1
Nov 28 07:33:54 relay1 kernel: [ 4.550033] serio: i8042 AUX port at 0x60,0x64 irq 12
Nov 28 07:33:54 relay1 kernel: [ 4.575864] mice: PS/2 mouse device common for all mice
Nov 28 07:33:54 relay1 kernel: [ 4.576815] sd 0:0:2:0: [sdc] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 4.578237] sd 0:0:2:0: [sdc] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 4.578962] sdc:
Nov 28 07:33:54 relay1 kernel: [ 4.593792] sd 0:0:0:0: [sda] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 4.594235] sd 0:0:0:0: [sda] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 4.594475] sd 0:0:0:0: [sda] Attached SCSI disk
Nov 28 07:33:54 relay1 kernel: [ 4.596360] sd 0:0:1:0: [sdb] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 4.596508] sd 0:0:1:0: [sdb] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 4.596755] sd 0:0:1:0: [sdb] Attached SCSI disk
Nov 28 07:33:54 relay1 kernel: [ 4.600539] sdc1
Nov 28 07:33:54 relay1 kernel: [ 4.605862] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
Nov 28 07:33:54 relay1 kernel: [ 4.612437] sd 0:0:2:0: [sdc] Cache data unavailable
Nov 28 07:33:54 relay1 kernel: [ 4.612599] sd 0:0:2:0: [sdc] Assuming drive cache: write through
Nov 28 07:33:54 relay1 kernel: [ 4.612729] sd 0:0:2:0: [sdc] Attached SCSI disk
Nov 28 07:33:54 relay1 kernel: [ 4.613429] rtc0: alarms up to one day, 114 bytes nvram
Nov 28 07:33:54 relay1 kernel: [ 4.616080] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
Nov 28 07:33:54 relay1 kernel: [ 4.620071] Netfilter messages via NETLINK v0.30.
Nov 28 07:33:54 relay1 kernel: [ 4.632619] nf_conntrack version 0.5.0 (8022 buckets, 32088 max)
Nov 28 07:33:54 relay1 kernel: [ 4.638638] ctnetlink v0.93: registering with nfnetlink.
Nov 28 07:33:54 relay1 kernel: [ 4.656517] ip_tables: (C) 2000-2006 Netfilter Core Team
Nov 28 07:33:54 relay1 kernel: [ 4.666756] TCP cubic registered
Nov 28 07:33:54 relay1 kernel: [ 4.667003] Initializing XFRM netlink socket
Nov 28 07:33:54 relay1 kernel: [ 4.677786] NET: Registered protocol family 10
Nov 28 07:33:54 relay1 kernel: [ 4.709115] input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input1
Nov 28 07:33:54 relay1 kernel: [ 4.721163] ip6_tables: (C) 2000-2006 Netfilter Core Team
Nov 28 07:33:54 relay1 kernel: [ 4.724044] IPv6 over IPv4 tunneling driver
Nov 28 07:33:54 relay1 kernel: [ 4.734271] NET: Registered protocol family 17
Nov 28 07:33:54 relay1 kernel: [ 4.736154] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Nov 28 07:33:54 relay1 kernel: [ 4.742501] All bugs added by David S. Miller <davem@redhat.com>
Nov 28 07:33:54 relay1 kernel: [ 4.746207] Using IPI No-Shortcut mode
Nov 28 07:33:54 relay1 kernel: [ 4.756591] registered taskstats version 1
Nov 28 07:33:54 relay1 kernel: [ 4.859777] EXT3-fs: barriers not enabled
Nov 28 07:33:54 relay1 kernel: [ 4.862145] kjournald starting. Commit interval 5 seconds
Nov 28 07:33:54 relay1 kernel: [ 4.864077] EXT3-fs (sdb1): mounted filesystem with writeback data mode
Nov 28 07:33:54 relay1 kernel: [ 4.866733] VFS: Mounted root (ext3 filesystem) readonly on device 8:17.
Nov 28 07:33:54 relay1 kernel: [ 4.878717] Freeing unused kernel memory: 320k freed
Nov 28 07:33:54 relay1 kernel: [ 4.900343] Write protecting the kernel text: 2964k
Nov 28 07:33:54 relay1 kernel: [ 4.901557] Write protecting the kernel read-only data: 1380k
Nov 28 07:33:54 relay1 kernel: [ 5.611726] async/1 used greatest stack depth: 6340 bytes left
Nov 28 07:33:54 relay1 kernel: [ 6.130274] stty used greatest stack depth: 6180 bytes left
Nov 28 07:33:54 relay1 kernel: [ 6.675737] mount used greatest stack depth: 6148 bytes left
Nov 28 07:33:54 relay1 kernel: [ 7.098330] cp used greatest stack depth: 5952 bytes left
Nov 28 07:33:54 relay1 kernel: [ 8.617486] Adding 2096124k swap on /dev/sdc1. Priority:-1 extents:1 across:2096124k
Nov 28 07:33:54 relay1 kernel: [ 8.961386] EXT3-fs (sdb1): using internal journal
Nov 28 07:33:54 relay1 kernel: [ 10.186282] rc used greatest stack depth: 5760 bytes left
Nov 28 07:33:55 relay1 kernel: [ 11.237909] pcnet32 0000:00:11.0: eth0: link up
Nov 28 07:33:55 relay1 kernel: [ 12.156181] ip used greatest stack depth: 5612 bytes left
Nov 28 07:34:06 relay1 kernel: [ 22.719232] eth0: no IPv6 routers present
Nov 28 07:43:10 relay1 init: Switching to runlevel: 0
Nov 28 07:43:17 relay1 kernel: Kernel logging (proc) stopped.
Nov 28 07:43:17 relay1 kernel: Kernel log daemon terminating.
Nov 28 07:43:18 relay1 exiting on signal 15

business_kid 11-29-2010 11:23 AM

I don't like mounting /proc on /sys. Are they doing that?
I would check the logs and see why /dev/pts and /dev/shm are not loading.

zer0signal 12-21-2010 07:14 AM

Solved the issue;
http://www.linuxfromscratch.org/lfs/...er06/udev.html

problem was I deviated away from Udev, because of compile issues I thought were happening. I went and installed Udeve 151 from an older LFS and it did work. But I did not do the quoted commands below, explains why it could not mount those dir's on boot;

Quote:

Create some devices and directories that Udev cannot handle due to them being required very early in the boot process, or by Udev itself:

install -dv /lib/{firmware,udev/devices/{pts,shm}}
mknod -m0666 /lib/udev/devices/null c 1 3

I am going to mark this thread as resolved; and I finally have a fully work LFS build! =) took 5 builds, but I feel sooooooo much more confident in linux!

Thx everyone for their input!


All times are GMT -5. The time now is 10:07 AM.