LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-04-2018, 04:54 PM   #1
spenced
Member
 
Registered: Oct 2017
Posts: 43

Rep: Reputation: Disabled
help proc not mounting, booting read only, other confusing things update in comment


Happy Independence Day everyone.

(This is rather long, I appreciate so much anybody who takes the time to go through it.)

So after much trial and error and finally finding the appropriate google search help I got my new, (first time for me) LFS to boot to a login prompt (whew)

But now... a short description of the problems and errors I'm encountering during boot:

--the root partition is booting into read only mode. I either have to change my grub.cfg to root=/dev/sda5 rw or after login "mount -o remount rw /" to be enable write access when I've been trying to fix these problems.

I realize that LFS instructions explicitly put ro into the grub line (I'm unclear when exactly read only switches to read/write during boot and why it is booted read only in the first place, I assume a file system integrity check or safety concern).

--proc fails to mount during boot. I have to "mount proc proc /proc" after login. Confusing to me that /proc is listed in mtab, but still is not mounted. (also - mtab is listed in /etc/mtab but when trying to access it, it says not found, mtab~ is also there, which I have access to. Is this normal?)

--dev/pts never mounts, regardless of whether I try after login or not.

--during boot it hangs for about 5 minutes after displaying "crng init done" (this I googled extensively and only find vague answers. fsck returns no problems with the partition/disk)

--I get the message "[ 332.768198] kworker/dying (88) used greatest stack depth: 12280 bytes left"

It should be noted Im running an older Macbook booting UEFI through refind, (its own complications I know, kernel had to be rebuilt more than a few times, uugh. I have a debian system that works excellent)

Onto the relevant logs and files:

FSTAB

Code:
# Begin /etc/fstab

# <file system>					<mount-point>	<type>	<options>	<dump>	<pass>		
#

/dev/sda1					/boot/efi	vfat	umask=0077	0	1
/dev/sda5 					/		ext4	defaults	0	1
proc						/proc		proc	nosuid,noexec,nodev	0	1
sysfs						/sys		sysfs	nosuid,noexec,nodev	0	0
devpts						/dev/pts	devpts	gid=5,mode=620		0	0
tmpfs						/run		tmpfs	defaults		0	0
devtmpfs					/dev		devtmpfs	mode=0755,nosuid	0	0	
/dev/sda6					swap		swap	sw,pri=1		0	0

# End /etc/fstab
(also - for anybody that is half dumb like me, having two disks, blkid likes to switch up sda and sdb for some reason so I boot by UUID when using debian but without an initramfs, LFS can't do this, you have to use the device name or the PARTITION UUID. Took me forever to figure this out. As an aside, why does sda and sdb like to switch back and forth? so many questions.)

grub.cfg

Code:
#Begin /boot/grub/grub.cfg
set default=0
set timeout=5

set have_grubenv=true
load_env

insmod all_video
insmod gzio
insmod part_gpt
insmod ext2

terminal_input console
terminal_output console

set root=(hd1,gpt5)

insmod efi_gop
insmod efi_uga
insmod font

if loadfont /grub/unicode.pf2; then 
  loadfont /grub/unicode.pft2
  set gfxmode=auto
  insmod gfxterm
  set gfxpayload=keep
  terminal_output gfxterm
fi

menuentry "GNU/Linux, Linux 4.15.3-lfs" {
        linux    /boot/vmlinuz-4.15.3-lfs root=/dev/sda5 ro nomodeset
}

#menuentry "GNU/Linux, Linux 4.15.3-lfs" {
#        linux    /boot/vmlinuz-4.15.3-lfs root=PARTUUID=8a50d6ce-7e80-4e89-a012-b80d1a9a1741 ro nomodeset
#}

#End /boot/grub/grub.cfg
sys.log (this was recorded after changing to read/write, im not sure how to retain the info when trying to boot normally. I've included only where I think I'm starting to see abnormal messages)

Code:
Jul  4 13:26:33 (none) kernel: [    0.762016] md: Waiting for all devices to be available before autodetect
Jul  4 13:26:33 (none) kernel: [    0.763565] md: If you don't use raid, use raid=noautodetect
Jul  4 13:26:33 (none) kernel: [    0.765144] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
Jul  4 13:26:33 (none) kernel: [    0.766725] cfg80211: failed to load regulatory.db
Jul  4 13:26:33 (none) kernel: [    0.766894] md: Autodetecting RAID arrays.
Jul  4 13:26:33 (none) kernel: [    0.766895] md: autorun ...
Jul  4 13:26:33 (none) kernel: [    0.766895] md: ... autorun DONE.
Jul  4 13:26:33 (none) kernel: [    0.773028] EXT4-fs (sda5): couldn't mount as ext3 due to feature incompatibilities
Jul  4 13:26:33 (none) kernel: [    0.774735] EXT4-fs (sda5): couldn't mount as ext2 due to feature incompatibilities
Jul  4 13:26:33 (none) kernel: [    0.784551] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
Jul  4 13:26:33 (none) kernel: [    0.786057] VFS: Mounted root (ext4 filesystem) on device 8:5.
Jul  4 13:26:33 (none) kernel: [    0.789608] devtmpfs: mounted
Jul  4 13:26:33 (none) kernel: [    0.792610] Freeing unused kernel memory: 1252K
Jul  4 13:26:33 (none) kernel: [    0.794058] Write protecting the kernel read-only data: 20480k
Jul  4 13:26:33 (none) kernel: [    0.796602] Freeing unused kernel memory: 2004K
Jul  4 13:26:33 (none) kernel: [    0.799937] Freeing unused kernel memory: 656K
Jul  4 13:26:33 (none) kernel: [    0.872531] stty (99) used greatest stack depth: 13792 bytes left
Jul  4 13:26:33 (none) kernel: [    0.874193] rc (98) used greatest stack depth: 13144 bytes left
Jul  4 13:26:33 (none) kernel: [    0.882035] usb 3-1: new full-speed USB device number 2 using uhci_hcd
Jul  4 13:26:33 (none) kernel: [    0.902701] usb 2-4: New USB device found, idVendor=05ac, idProduct=8502
Jul  4 13:26:33 (none) kernel: [    0.904177] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul  4 13:26:33 (none) kernel: [    0.905677] usb 2-4: Product: Built-in iSight
Jul  4 13:26:33 (none) kernel: [    0.907137] usb 2-4: Manufacturer: Apple Inc.
Jul  4 13:26:33 (none) kernel: [    0.908586] usb 2-4: SerialNumber: 8J85KW140ZJ63E00
Jul  4 13:26:33 (none) kernel: [    1.062172] usb 3-1: New USB device found, idVendor=0a5c, idProduct=4500
Jul  4 13:26:33 (none) kernel: [    1.063712] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul  4 13:26:33 (none) kernel: [    1.065197] usb 3-1: Product: BRCM2046 Hub
Jul  4 13:26:33 (none) kernel: [    1.066715] usb 3-1: Manufacturer: Apple Inc.
Jul  4 13:26:33 (none) kernel: [    1.069192] hub 3-1:1.0: USB hub found
Jul  4 13:26:33 (none) kernel: [    1.071160] hub 3-1:1.0: 3 ports detected
Jul  4 13:26:33 (none) kernel: [    1.154057] usb 7-1: new low-speed USB device number 2 using uhci_hcd
Jul  4 13:26:33 (none) kernel: [    1.312065] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x22827953cae, max_idle_ns: 440795228868 ns
Jul  4 13:26:33 (none) kernel: [    1.336070] usb 7-1: New USB device found, idVendor=05ac, idProduct=8242
Jul  4 13:26:33 (none) kernel: [    1.337650] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul  4 13:26:33 (none) kernel: [    1.339217] usb 7-1: Product: IR Receiver
Jul  4 13:26:33 (none) kernel: [    1.340785] usb 7-1: Manufacturer: Apple Computer, Inc.
Jul  4 13:26:33 (none) kernel: [    1.365051] usb 3-1.1: new full-speed USB device number 3 using uhci_hcd
Jul  4 13:26:33 (none) kernel: [    1.367427] input: Apple Computer, Inc. IR Receiver as /devices/pci0000:00/0000:00:1d.2/usb7/7-1/7-1:1.0/0003:05AC:8242.0001/input/input5
Jul  4 13:26:33 (none) kernel: [    1.369163] hid-generic 0003:05AC:8242.0001: input,hidraw0: USB HID v1.11 Device [Apple Computer, Inc. IR Receiver] on usb-0000:00:1d.2-1/input0
Jul  4 13:26:33 (none) kernel: [    1.492174] usb 3-1.1: New USB device found, idVendor=05ac, idProduct=820f
Jul  4 13:26:33 (none) kernel: [    1.493851] usb 3-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul  4 13:26:33 (none) kernel: [    1.495482] usb 3-1.1: Product: Bluetooth USB Host Controller
Jul  4 13:26:33 (none) kernel: [    1.497107] usb 3-1.1: Manufacturer: Apple Inc.
Jul  4 13:26:33 (none) kernel: [    1.498733] usb 3-1.1: SerialNumber: 001FF3AB2F03
Jul  4 13:26:34 (none) kernel: [    2.182050] usb 7-2: new full-speed USB device number 3 using uhci_hcd
Jul  4 13:26:34 (none) kernel: [    2.373093] usb 7-2: New USB device found, idVendor=05ac, idProduct=0230
Jul  4 13:26:34 (none) kernel: [    2.374739] usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul  4 13:26:34 (none) kernel: [    2.376373] usb 7-2: Product: Apple Internal Keyboard / Trackpad
Jul  4 13:26:34 (none) kernel: [    2.377975] usb 7-2: Manufacturer: Apple, Inc.
Jul  4 13:26:34 (none) kernel: [    2.389664] input: Apple, Inc. Apple Internal Keyboard / Trackpad as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.0/0003:05AC:0230.0002/input/input6
Jul  4 13:26:34 (none) kernel: [    2.443302] apple 0003:05AC:0230.0002: input,hidraw1: USB HID v1.11 Keyboard [Apple, Inc. Apple Internal Keyboard / Trackpad] on usb-0000:00:1d.2-2/input0
Jul  4 13:26:34 (none) kernel: [    2.449307] apple 0003:05AC:0230.0003: hidraw2: USB HID v1.11 Device [Apple, Inc. Apple Internal Keyboard / Trackpad] on usb-0000:00:1d.2-2/input1
Jul  4 13:26:34 (none) kernel: [    2.453192] input: bcm5974 as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.2/input/input7
Jul  4 13:29:10 (none) kernel: [  158.837935] random: crng init done
Jul  4 13:32:04 (none) kernel: [  332.768198] kworker/dying (88) used greatest stack depth: 12280 bytes left
Jul  4 13:36:05 (none) shutdown[233]: shutting down for system reboot
Jul  4 13:36:05 (none) init: Switching to runlevel: 6
Jul  4 13:36:06 (none) kernel: [  574.969945] umount[241]: segfault at 7f351956a259 ip 00007f3519f0f62d sp 00007ffe43b83488 error 7 in libmount.so.1.1.0[7f3519efb000+50000]
Jul  4 13:36:07 (none) kernel: Kernel logging (ksyslog) stopped.
Jul  4 13:36:07 (none) kernel: Kernel log daemon terminating.
Jul  4 13:36:08 (none) exiting on signal 15
Again I appreciate anybody who took the time to go through all this, everybody on this forum is so helpful. Hopefully one day I might be able to answer a few of my own questions.

Any suggestions greatly welcome! I've been stumped for two days and out of ideas.

best regards,

spencer

Last edited by spenced; 07-04-2018 at 07:44 PM. Reason: formatting
 
Old 07-04-2018, 07:49 PM   #2
spenced
Member
 
Registered: Oct 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
major boner, I forgot to mention that I was installed lfs systemd version 8.2 EXCEPT was poking around wondering why journalctl command did not work, further investigation led me to realize systemd package never got installed, because for some reason I was following an 8.2 book that skipped over this, then found out I did not have the correct book. had downloaded it to my tablet to follow along the filename SAID 8.2 systemd but i guess I was installing the regular? yikes. now I have lots of backtracking. I dont know how this would affect my problems, essentially I just have a non systemd version? or would this affect the way the proc directory is mounted on boot? anyway. got a tangle of a mess here.
 
Old 07-05-2018, 12:37 PM   #3
spenced
Member
 
Registered: Oct 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
switched over to systemd and everything seemed to fix itself. still getting the "crng init done" message but it no longer hangs.

I did have a bit of trouble building systemd as instructed in the LFS book (I chose not to install the dependencies from the blfs install version). I had to disable gcrypt and gnutls as they were throwing errors during configure.

Code:
-Dgcrypt=false
-Dgnutls=false
still wish I knew exactly what switching to systemd did, obviously the error was with sysvinit, curious to know where.

the kworker dying message was coming from memory debugging enabled in the kernel config. the message I found out was rather harmless anyway.

Last edited by spenced; 07-05-2018 at 12:42 PM. Reason: formatting
 
  


Reply

Tags
fail, mount, proc, read only


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mounting things on from samba server, can only get read-only access. Needing r+w Cultist Linux - Server 10 04-25-2013 07:52 AM
[SOLVED] External USB hard drives no longer mounting read/write -- now read only revbish Puppy 2 01-28-2013 05:44 PM
/ LVM mounting read-only, how to mount read-write thllgo Linux - Server 2 11-10-2010 07:39 AM
Modifying /proc/mounts without confusing filesystems Yerp Programming 1 06-03-2008 08:52 PM
Nautilus will not read /proc directory RottenMutt Linux - General 1 07-10-2003 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration