LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-19-2020, 01:55 AM   #1
Lomig
LQ Newbie
 
Registered: Dec 2020
Posts: 1

Rep: Reputation: Disabled
Root filesystem is not mounted at boot,


Hi.

LFS Version : 10 SysVInit
Hard disk : Samsung Portable SSD T5

I try to boot on my LFS since 2 days, but I got a problem with the root filesystem mount

When I boot, It was stopping, saying the disk supposed to contain the root filesystem does not exist. I had to do a Ctrl-C to get a prompt. So I made another compilation of the kernel, putting

Code:
Device Drivers
[*] USB Support
____<*> xHCI*HCD (USB 3.0) support 
____<*> USB Mass Storage support
____<*> USB Type-C Support
NVME Support 
____<*> NVM Express block device
____[*] NVMe multipath support
that were before compiled as module
I precise that I tried With USB Type C and USB 2.0 on the mainboard, the result is the same

By doing this the boot doesn't stopped, I got a prompt, but It seem the error message appears quickly, but I am not sure. But when I do

Code:
sh5.0# mount
none / roofs
* For /proc, /sysfs /dev they are mounted
* /usr/bin is a link to /bin
* no /var

Here is my /boot/grub/grub.cfg

Code:
set default=0
set timeout=5

insmod ext2
set root=(hd0,2)

menuentry 'GNU/Linux Gwen Erminig', Linux 5.8.3-gwen-erminig-9  {
	echo	'Chargement : Linux 5.8.3-gwen-erminig-9 ...'
	linux	/vmlinuz-5.8.3-gwen-erminig-9 root=UUID=09005fe5-0f72-4967-8bf9-ec5e13d6ef83 ro  
	echo	'Chargement : initial ramdisk ...'
	initrd	/initrd.img-5.8.3-gwen-erminig-9
}
and my /etc/fstab

Code:
/dev/sda4	/		ext4		defaults		1	1
/dev/sda2	/boot		ext2		defaults		1	1
proc		/proc		proc		nosuid,noexec,nodev	0	0
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
I didn't put UUID in fstab, but when I try a mount /dev/sda4 in a test folder, there is no problems.

Hope you can help me.
Thanks
 
Old 12-21-2020, 06:15 PM   #2
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
Hello,

Did you check that the UUID in grub.conf match /dev/sda4's UUID ?
 
Old 12-23-2020, 11:42 AM   #3
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
Shouldn't mix device names uuid's during boot. Use device names in grub.cfg and fstab.
If you want uuid's you will need an initramfs and use gpt. It's all explained in arch wiki -grub and blfs Sec5. There's more I can say but new builders overcomplicate their setups and get your scenario. I don't unravel issues that happen due to poor research and bad decisions on setups. Noobs just get more confused.

A first time builder should use a spinner hdd on real hardware not a vm, mbr for partitions like sda1 as / and sda2 as swap. Then you build a simple kernel per book install grub to /dev/sda and viola ya get lfs booted easily.
 
  


Reply



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
Is the disk partition mounted or not mounted? Kenarkies Linux - Kernel 3 01-16-2010 02:06 AM
Mounted but not mounted jmoschetti45 Linux - Hardware 8 12-14-2009 08:05 PM
HAL daemon does not reconize a mounted partition as mounted 888m Slackware 4 07-30-2007 12:58 PM
Mounted a filesystem as root.How does one give write-permission to a user? Mr.DeVillie Linux - Software 4 02-08-2006 07:20 AM
I'm getting a "VFS: Mounted root (ext2 filesystem) lockup HGeneAnthony Linux - Hardware 1 04-23-2003 01:09 PM

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

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

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