Discussion:
[lfs-support] Help: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0, 0)
Jimmy Zhang
2018-11-28 18:57:30 UTC
Permalink
Hi,I followed the instruction on LFS-BOOK-8.3.pdf step by step to the end.During the reboot, I got the error message "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)".I was building LFS with my VMware machine.Need help to see which part I may mess up?Thanks,Jimmy Zhang
thomas
2018-11-28 20:56:19 UTC
Permalink
Post by Jimmy Zhang
Hi,
I followed the instruction on LFS-BOOK-8.3.pdf step by step to the
end.
During the reboot, I got the error message "Kernel panic - not
syncing: VFS: Unable to mount root fs on unknown-block(0,0)".
I was building LFS with my VMware machine.
Need help to see which part I may mess up?
Thanks,
Jimmy Zhang
Usually this is caused by missing device drivers in the kernel so that
the kernel isn't able to read the root file system. This can be caused
by missing filesystem drivers like ext4 or by missing drivers for the
disk devices itself like PATA or SATA.
Check the kernel configuration for that.

--
Thomas
--
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-
renodr
2018-11-29 01:15:14 UTC
Permalink
Post by thomas
Post by Jimmy Zhang
Hi,
I followed the instruction on LFS-BOOK-8.3.pdf step by step to the
end.
During the reboot, I got the error message "Kernel panic - not
syncing: VFS: Unable to mount root fs on unknown-block(0,0)".
I was building LFS with my VMware machine.
Need help to see which part I may mess up?
Thanks,
Jimmy Zhang
Usually this is caused by missing device drivers in the kernel so that
the kernel isn't able to read the root file system. This can be caused
by missing filesystem drivers like ext4 or by missing drivers for the
disk devices itself like PATA or SATA.
Check the kernel configuration for that.
--
Thomas
Jimmy,

Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support,
and PVSCSI support. You might need the VMXNET3 driver as well.
--
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?
Ken Moffat
2018-11-29 03:11:52 UTC
Permalink
Post by renodr
Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support, and
PVSCSI support. You might need the VMXNET3 driver as well.
since so many people seem to build in VMs, and have problems, maybe
we ought to document this somewhere ? Alternatively, perhaps using
lsmod like on a distro does actually work on VMs ?

ĸen
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
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
Baho Utot
2018-11-29 23:23:36 UTC
Permalink
Post by Ken Moffat
Post by renodr
Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support, and
PVSCSI support. You might need the VMXNET3 driver as well.
since so many people seem to build in VMs, and have problems, maybe
we ought to document this somewhere ? Alternatively, perhaps using
lsmod like on a distro does actually work on VMs ?
ĸen
I build using OverlayFs.  It is much better than to try to build it in a
VM. I make a container that will have the host build system:

    msg_line "Creating root filesystem container - this may take awhile
--> "
    dd if=/dev/zero of=host.img bs=4096 count=512000 > /dev/null 2>&1
    mkfs -t ext4 host.img > /dev/null 2>&1

then populate it with a host system ie PClinuxOS or LFS-8.2.

This gives me a host system called host.img

It gets mounted as read only:

OVERLAY=OVERLAY

msg_line "Mounting file systems --> "
mountpoint -q ${OVERLAY}/lower        || mount --read-only host.img
${OVERLAY}/lower
mountpoint -q ${OVERLAY}/overlay        || mount -t overlay overlay -o
lowerdir=${OVERLAY}/lower,upperdir=${OVERLAY}/upper,workdir=${OVERLAY}/workdir
${OVERLAY}/overlay
mountpoint -q ${OVERLAY}/overlay/dev    || mount --bind /dev
${OVERLAY}/overlay/dev
mountpoint -q ${OVERLAY}/overlay/dev/pts    || mount -t devpts devpts
${OVERLAY}/overlay/dev/pts -o gid=5,mode=620
mountpoint -q ${OVERLAY}/overlay/proc    || mount -t proc proc
${OVERLAY}/overlay/proc
mountpoint -q ${OVERLAY}/overlay/sys    || mount -t sysfs sysfs
${OVERLAY}/overlay/sys
mountpoint -q ${OVERLAY}/overlay/run    || mount -t tmpfs tmpfs
${OVERLAY}/overlay/run
msg_success

Then:

msg "Chrooting overlay file system --> "
chroot "${OVERLAY}/overlay" \
    env -i \
    HOME=/root \
    TERM="$TERM" \
    PS1='(blfs chroot) \u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /bin/bash --login +h

I then build the new system.

The "lower" filesystem never gets changed

the "upper" contains all the newer files and changes to the lower ro
filesystem

the overlay is the merge filesystem (lower merged with upper) and it is
where you do your work
--
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_sty
Jimmy Zhang
2018-11-29 15:17:25 UTC
Permalink
Hi,One thing I am confused that the LFS kernel (/boot/vmlinuz-4.18.5-lfs-8.3 from my partition(one partition for both /boot and /) was loaded and run, which indicated that the system can access my partition /dev/sda3 which was going to be mounted as root, right? why the kernel will give the error messages that unable to mount root fs?ThanksJimmy 
Post by thomas
Post by Jimmy Zhang
Hi,
I followed the instruction on LFS-BOOK-8.3.pdf step by step to the
end.
During the reboot, I got the error message "Kernel panic - not
syncing: VFS: Unable to mount root fs on unknown-block(0,0)".
I was building LFS with my VMware machine.
Need help to see which part I may mess up?
Thanks,
Jimmy Zhang
Usually this is caused by missing device drivers in the kernel so that
the kernel isn't able to read the root file system. This can be caused
by missing filesystem drivers like ext4 or by missing drivers for the
disk devices itself like PATA or SATA.
Check the kernel configuration for that.
--
Thomas
Jimmy,

Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support,
and PVSCSI support. You might need the VMXNET3 driver as well.
--
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
Xi Ruoyao
2018-11-29 18:00:46 UTC
Permalink
Post by Jimmy Zhang
Hi,
One thing I am confused that the LFS kernel (/boot/vmlinuz-4.18.5-lfs-8.3 from my partition(one partition for both
/boot and /) was loaded and run, which indicated that the system can access my partition /dev/sda3 which was going
to be mounted as root, right? why the kernel will give the error messages that unable to mount root fs?
Grub can access your partition and copy the kernel into your RAM. But then
the kernel can not access your partition because it doesn't have proper driver.
--
Xi Ruoyao <***@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University
--
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.wi
JD
2018-11-29 18:27:11 UTC
Permalink
Post by Xi Ruoyao
Post by Jimmy Zhang
Hi,
One thing I am confused that the LFS kernel (/boot/vmlinuz-4.18.5-lfs-8.3 from my partition(one partition for both
/boot and /) was loaded and run, which indicated that the system can access my partition /dev/sda3 which was going
to be mounted as root, right? why the kernel will give the error messages that unable to mount root fs?
Grub can access your partition and copy the kernel into your RAM. But then
the kernel can not access your partition because it doesn't have proper driver.
Jimmy,
Might also be that the FS is corrupted?
Boot from a live DVD, and
fsck -y /dev/sda3
andthe remove the live dvd
and boot normally.
Might work!!
If it does not work,
you will have to re-install the OS.
--
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/
Ken Moffat
2018-11-29 19:26:25 UTC
Permalink
Post by renodr
Post by Xi Ruoyao
Post by Jimmy Zhang
Hi,
One thing I am confused that the LFS kernel (/boot/vmlinuz-4.18.5-lfs-8.3 from my partition(one partition for both
/boot and /) was loaded and run, which indicated that the system can access my partition /dev/sda3 which was going
to be mounted as root, right? why the kernel will give the error messages that unable to mount root fs?
Grub can access your partition and copy the kernel into your RAM. But then
the kernel can not access your partition because it doesn't have proper driver.
Jimmy,
Might also be that the FS is corrupted?
Boot from a live DVD, and
fsck -y /dev/sda3
andthe remove the live dvd
and boot normally.
Might work!!
If it does not work,
you will have to re-install the OS.
Now that is *very* strange advice to offer on LFS, rather like the
sort of "drive by" responses sometimes seen on forums by people who
don't understand how LFS is built.

In particular "re-install the OS" is an odd thing to say here. The
error message clearly implies that the kernel does not have a
required driver. For that, going back to chroot and fixing the
kernel config is the normal process.

ĸen
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
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 thin
JD
2018-11-29 20:49:49 UTC
Permalink
1. If the kernel does not have the required driver,
how did LFS end up on the drive?
2. Just exactly what driver are you referring to?
"Driver" is a generic term which is used to to refer to different
interfaces in the kernel.
YOU claim that to say "re-install" is a strange piece of advice.
I, actually, everyone, would love to hear from you just exactly which
driver the OP is missing.
Post by Ken Moffat
Post by renodr
Post by Xi Ruoyao
Post by Jimmy Zhang
Hi,
One thing I am confused that the LFS kernel
(/boot/vmlinuz-4.18.5-lfs-8.3 from my partition(one partition for both
/boot and /) was loaded and run, which indicated that the system can
access my partition /dev/sda3 which was going
to be mounted as root, right? why the kernel will give the error
messages that unable to mount root fs?
Grub can access your partition and copy the kernel into your RAM. But then
the kernel can not access your partition because it doesn't have proper driver.
Jimmy,
Might also be that the FS is corrupted?
Boot from a live DVD, and
fsck -y /dev/sda3
andthe remove the live dvd
and boot normally.
Might work!!
If it does not work,
you will have to re-install the OS.
Now that is *very* strange advice to offer on LFS, rather like the
sort of "drive by" responses sometimes seen on forums by people who
don't understand how LFS is built.
In particular "re-install the OS" is an odd thing to say here. The
error message clearly implies that the kernel does not have a
required driver. For that, going back to chroot and fixing the
kernel config is the normal process.
ĸen
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
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
--
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?

h
Bruce Dubbs
2018-11-29 21:18:24 UTC
Permalink
Post by JD
1. If the kernel does not have the required driver,
how did LFS end up on the drive?
2. Just exactly what driver are you referring to?
"Driver" is a generic term which is used to to refer to different
interfaces in the kernel.
YOU claim that to say "re-install" is a strange piece of advice.
I, actually, everyone, would love to hear from you just exactly which
driver the OP is missing.
1. LFS got on to the hard drive using the host's drivers.

2. The specific driver needed depends on the HW. Try rebuilding the
kernel with make defconfig; make

-- Bruce
--
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 i
JD
2018-11-29 21:37:36 UTC
Permalink
Post by Bruce Dubbs
Post by JD
1. If the kernel does not have the required driver,
how did LFS end up on the drive?
2. Just exactly what driver are you referring to?
"Driver" is a generic term which is used to to refer to different
interfaces in the kernel.
YOU claim that to say "re-install" is a strange piece of advice.
I, actually, everyone, would love to hear from you just exactly which
driver the OP is missing.
1. LFS got on to the hard drive using the host's drivers.
2. The specific driver needed depends on the HW. Try rebuilding the
kernel with make defconfig; make
-- Bruce
Hey Bruce,
you are saying that LFS varies and depends on the hardware??
Exactly which hardware?
The disk IO layer drivers are dependent on type of disk HW interface at
the lowest level.
Above that an abstraction layer is used, and it is possible (if
necessary) to build yet
another abstraction layer above that.
The FS's LFS layer is built on top of the "block io" layer, as the file
system works
with BLOCKS.
So, please explain what type of hardware is LFS dependent on?
--
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.wikipe
Douglas R. Reno
2018-11-29 21:41:16 UTC
Permalink
Post by JD
Post by Bruce Dubbs
Post by JD
1. If the kernel does not have the required driver,
how did LFS end up on the drive?
2. Just exactly what driver are you referring to?
     "Driver" is a generic term which is used to to refer to different
interfaces in the kernel.
YOU claim that  to say "re-install" is a strange piece of advice.
I, actually, everyone, would love to hear from you just exactly which
driver the OP is missing.
1. LFS got on to the hard drive using the host's drivers.
2. The specific driver needed depends on the HW.  Try rebuilding the
kernel with make defconfig; make
  -- Bruce
Hey Bruce,
you are saying that LFS varies and depends on the hardware??
Exactly which hardware?
The disk IO layer drivers are dependent on type of disk HW interface
at the lowest level.
Above that an abstraction layer is used, and it is possible (if
necessary) to build yet
another abstraction layer above that.
The FS's LFS layer is built on top of the "block io" layer, as the
file system works
with BLOCKS.
So, please explain what type of hardware is  LFS dependent on?
Would you happen to be here for inquiries on Large File Support (LFS),
not Linux From Scratch? The two things are entirely separate, and "Large
File Support" was coined many years after the Linux From Scratch
distribution was started.
--
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/Pos
JD
2018-11-29 21:47:38 UTC
Permalink
Post by Douglas R. Reno
Post by JD
Post by Bruce Dubbs
Post by JD
1. If the kernel does not have the required driver,
how did LFS end up on the drive?
2. Just exactly what driver are you referring to?
"Driver" is a generic term which is used to to refer to different
interfaces in the kernel.
YOU claim that to say "re-install" is a strange piece of advice.
I, actually, everyone, would love to hear from you just exactly which
driver the OP is missing.
1. LFS got on to the hard drive using the host's drivers.
2. The specific driver needed depends on the HW. Try rebuilding the
kernel with make defconfig; make
-- Bruce
Hey Bruce,
you are saying that LFS varies and depends on the hardware??
Exactly which hardware?
The disk IO layer drivers are dependent on type of disk HW interface
at the lowest level.
Above that an abstraction layer is used, and it is possible (if
necessary) to build yet
another abstraction layer above that.
The FS's LFS layer is built on top of the "block io" layer, as the
file system works
with BLOCKS.
So, please explain what type of hardware is LFS dependent on?
Would you happen to be here for inquiries on Large File Support (LFS),
not Linux From Scratch? The two things are entirely separate, and
"Large File Support" was coined many years after the Linux From
Scratch distribution was started.
NO
--
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?
Ken Moffat
2018-11-29 22:02:00 UTC
Permalink
Post by Douglas R. Reno
Post by JD
Post by Bruce Dubbs
1. LFS got on to the hard drive using the host's drivers.
2. The specific driver needed depends on the HW. Try rebuilding
the kernel with make defconfig; make
Hey Bruce,
you are saying that LFS varies and depends on the hardware??
Exactly which hardware?
The disk IO layer drivers are dependent on type of disk HW interface
at the lowest level.
Above that an abstraction layer is used, and it is possible (if
necessary) to build yet
another abstraction layer above that.
The FS's LFS layer is built on top of the "block io" layer, as the
file system works
with BLOCKS.
So, please explain what type of hardware is LFS dependent on?
Would you happen to be here for inquiries on Large File Support (LFS),
not Linux From Scratch? The two things are entirely separate, and "Large
File Support" was coined many years after the Linux From Scratch
distribution was started.
NO
So, maybe you are here to troll ?

On the off-chance that you are not trolling: linuxfromscratch (LFS)
is installed in a chroot by building from a pre-existing linux
system running on the same machine.

As part of that, some parts of the build may be specific to the
machine (or what a VM presents as, if building in a VM), e.g. gmp
goes out of its way to optimise for what is expected to be present
on that machine (see past issues where a low-end pentium of what was
then the latest intel family lacked an instruction which whoever had
updated gmp's configure script thought was present on all of that
family).

And the kernel configuration, because we expect the builder to build
for the machine he or she is using, will vary from one machine to
the next.

ĸen
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
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
JD
2018-11-29 22:16:41 UTC
Permalink
I have run fbsd kernels that support Large File System on multiple PC
platforms with
cpus from Intel and AMD, without any problems with missing Hardware
dependencies.

So, my response was to BRUCE who brought up missing driver
issue to the OP.
I have never run into any missing driver issues on any of the PC I installed
the Large File System on them.

So, Bruce has NOT come up with any answer about just exactly which driver
he assumes is missing.
Post by Ken Moffat
Post by Douglas R. Reno
Post by JD
Post by Bruce Dubbs
1. LFS got on to the hard drive using the host's drivers.
2. The specific driver needed depends on the HW. Try rebuilding
the kernel with make defconfig; make
Hey Bruce,
you are saying that LFS varies and depends on the hardware??
Exactly which hardware?
The disk IO layer drivers are dependent on type of disk HW interface
at the lowest level.
Above that an abstraction layer is used, and it is possible (if
necessary) to build yet
another abstraction layer above that.
The FS's LFS layer is built on top of the "block io" layer, as the
file system works
with BLOCKS.
So, please explain what type of hardware is LFS dependent on?
Would you happen to be here for inquiries on Large File Support (LFS),
not Linux From Scratch? The two things are entirely separate, and "Large
File Support" was coined many years after the Linux From Scratch
distribution was started.
NO
So, maybe you are here to troll ?
On the off-chance that you are not trolling: linuxfromscratch (LFS)
is installed in a chroot by building from a pre-existing linux
system running on the same machine.
As part of that, some parts of the build may be specific to the
machine (or what a VM presents as, if building in a VM), e.g. gmp
goes out of its way to optimise for what is expected to be present
on that machine (see past issues where a low-end pentium of what was
then the latest intel family lacked an instruction which whoever had
updated gmp's configure script thought was present on all of that
family).
And the kernel configuration, because we expect the builder to build
for the machine he or she is using, will vary from one machine to
the next.
ĸen
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
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
--
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
Ken Moffat
2018-11-29 22:30:38 UTC
Permalink
Post by JD
I have run fbsd kernels that support Large File System on multiple PC
platforms with
cpus from Intel and AMD, without any problems with missing Hardware
dependencies.
So, my response was to BRUCE who brought up missing driver
issue to the OP.
I have never run into any missing driver issues on any of the PC I installed
the Large File System on them.
So, Bruce has NOT come up with any answer about just exactly which driver
he assumes is missing.
So, you are now claiming to be talking about the Large File System.
And yet you earlier said 'NO' to the suggestion that is what you
were talkign about.

We have no interest in that (strictly, we expect it to be installed
on the linux machine we use to build linuxfromscratch, and it will
be used in linuxfromscratch as in all other sane modern linuxes -
limiting files to 4GB on modern disks is not a good idea.

We expect people here to build a LINUX kernel (indeed, our methods
are clearly not going to work on FreeBSD), and as part of that you
get the choice, in 'make menuconfig', of which drivers to include.

I'll file your posts under 'troll'.
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
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?

h
Ken Moffat
2018-11-29 21:50:27 UTC
Permalink
On Thu, Nov 29, 2018 at 01:49:49PM -0700, JD wrote:

Please do not top-post.
Post by JD
1. If the kernel does not have the required driver,
how did LFS end up on the drive?
As Bruce has already answered.
Post by JD
2. Just exactly what driver are you referring to?
"Driver" is a generic term which is used to to refer to different
interfaces in the kernel.
YOU claim that to say "re-install" is a strange piece of advice.
I, actually, everyone, would love to hear from you just exactly which
driver the OP is missing.
People have already made suggestions - I do not use vmware, but
there were suggestions about that.

From a normal distro system which has been used to build LFS, in
chroot 'lsmod' will show which modules are currently loaded. I
assume that a distro running on vmware will do the same.

So as a first step, all of those need to be available in the kernel.
For things like network devices, modules should be fine in LFS. But
for the disk drivers, and the filesystem used on the LFS partition,
they need to be built-in, not modules, because we do not use an
initrd.

Later, it is often possible to slim-down a kernel config by removing
items which seem unnecessary (but obviously, keep the existing
working kernel when trying to do that, and use a different version
for the experiments).

So, for the filesystem - ext4 (unless the builder used something
else).

For the disk drives - it depends very much on the motherboard and
(on some motherboards) which port is used for the disk. On the
machine where I'm writing this I have

CONFIG_ATA=y
CONFIG_ATA_VERBOSE_ERROR=y
CONFIG_ATA_ACPI=y

CONFIG_SATA_AHCI=y

On some other machines I have added, variously,

CONFIG_SATA_PMP=y
CONFIG_SATA_INIC162X=y
CONFIG_SATA_ACARD_AHCI=y
CONFIG_ATA_SFF=y
CONFIG_ATA_BMDMA=y
CONFIG_ATA_PIIX=y
CONFIG_PATA_AMD=y
CONFIG_PATA_ATIIXP=y

But for a virtual machine I assume that the disk driver is
determined by the VM not by the underlying hardware.

ĸen
--
I'm saving up 22 shillings and 10 pence (almost a pound!) per week to
buy an ARM-13.
http://www.antipope.org/charlie/blog-static/2018/11/brexit-means-brexit.html
--
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/wik
Jimmy Zhang
2018-12-01 03:20:53 UTC
Permalink
Post by thomas
Post by Jimmy Zhang
Hi,
I followed the instruction on LFS-BOOK-8.3.pdf step by step to the
end.
During the reboot, I got the error message "Kernel panic - not
syncing: VFS: Unable to mount root fs on unknown-block(0,0)".
I was building LFS with my VMware machine.
Need help to see which part I may mess up?
Thanks,
Jimmy Zhang
Usually this is caused by missing device drivers in the kernel so that
the kernel isn't able to read the root file system. This can be caused
by missing filesystem drivers like ext4 or by missing drivers for the
disk devices itself like PATA or SATA.
Check the kernel configuration for that.
--
Thomas
Jimmy,

Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support,
and PVSCSI support. You might need the VMXNET3 driver as well.


Hi guys,I added PATA, SATA, VMWaer VMCI Driver, SCSI drivers and my kernel continued and passed the panic spot I reported.But still stopped at 
Looks still missing some drivers. Any suggestions will be appreciated.Thanks for all your support.Jimmy
Thomas Trepl
2018-12-01 13:49:26 UTC
Permalink
Post by renodr
Post by thomas
Post by Jimmy Zhang
Hi,
I followed the instruction on LFS-BOOK-8.3.pdf step by step to the
end.
During the reboot, I got the error message "Kernel panic - not
syncing: VFS: Unable to mount root fs on unknown-block(0,0)".
I was building LFS with my VMware machine.
Need help to see which part I may mess up?
Thanks,
Jimmy Zhang
Usually this is caused by missing device drivers in the kernel so that
the kernel isn't able to read the root file system. This can be caused
by missing filesystem drivers like ext4 or by missing drivers for the
disk devices itself like PATA or SATA.
Check the kernel configuration for that.
--
Thomas
Jimmy,
Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support,
and PVSCSI support. You might need the VMXNET3 driver as well.
Hi guys,
I added PATA, SATA, VMWaer VMCI Driver, SCSI drivers and my kernel continued and passed the panic spot I reported.
But still stopped at
Looks still missing some drivers. Any suggestions will be appreciated.
Thanks for all your support.
Jimmy
Ah, some progress made.

Maybe you zip the kernel config (.config) and post it here together
with the grub.cfg?

--
Thomas
--
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://e
Jimmy Zhang
2018-12-01 15:52:45 UTC
Permalink
Post by renodr
Post by thomas
Post by Jimmy Zhang
Hi,
I followed the instruction on LFS-BOOK-8.3.pdf step by step to the
end.
During the reboot, I got the error message "Kernel panic - not
syncing: VFS: Unable to mount root fs on unknown-block(0,0)".
I was building LFS with my VMware machine.
Need help to see which part I may mess up?
Thanks,
Jimmy Zhang
Usually this is caused by missing device drivers in the kernel so that
the kernel isn't able to read the root file system. This can be caused
by missing filesystem drivers like ext4 or by missing drivers for the
disk devices itself like PATA or SATA.
Check the kernel configuration for that.
--
Thomas
Jimmy,
Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support,
and PVSCSI support. You might need the VMXNET3 driver as well.
Hi guys,
I added PATA, SATA, VMWaer VMCI Driver, SCSI drivers and my kernel continued and passed the panic spot I reported.
But still stopped at
Looks still missing some drivers. Any suggestions will be appreciated.
Thanks for all your support.
Jimmy
Ah, some progress made.

Maybe you zip the kernel config (.config) and post it here together
with the grub.cfg?

--
Thomas

Hi Thomas,
see my attached file for details.Thanks,Jimmy





|
|
| |
lfs-support Info Page


|

|

|





|
|
| |
BLFS FAQ


|

|

|

Continue reading on narkive:
Search results for '[lfs-support] Help: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0, 0)' (Questions and Answers)
6
replies
when installing linux ubuntu 13.04?
started 2013-05-30 15:06:18 UTC
software
Loading...