Boot problems with new install

The loader actually looks for /etc/fstab and tries to find the root filesystem. Here's the comment from src/sys/boot/common/boot.c

Code:
/*
 * Try to find the /etc/fstab file on the filesystem (rootdev),
 * which should be be the root filesystem, and parse it to find
 * out what the kernel ought to think the root filesystem is.
 *
 * If we're successful, set vfs.root.mountfrom to <vfstype>:<path>
 * so that the kernel can tell both which VFS and which node to use
 * to mount the device.  If this variable's already set, don't
 * overwrite it.
 */

I am sorry, I am kind of confused. I just created a new install and the system boots and immediately hangs wanting to know which is the root - but the system booted, so, um doesn't it know where the root is? I am completely new to FreeBSD but I am wondering why the system installed then sort-of wants to boot but doesn't know where it's own root is?

Thx/Bill
 
loader uses bios/efi/uboot to read from the drive and boot the kernel
kernel needs a driver to access the filesystem
if the driver is not present or fails in some way you get in the situation you are in
mountroot>
 
Issuing
Code:
kenv | egrep "currdev|mountfrom|kernel_path|kernelname"
can reveal some info.

Issuing
Code:
mount -av
If mount succeeds or fails.

To know your partitioning:
Code:
gpart show -p

You better use:
Code:
vfs.root.mountfrom="ufs:/dev/yourbootslice"

Some doc:
Code:
vfs.root.mountfrom
                   Specify the root partition to mount.  For example:

                         vfs.root.mountfrom="ufs:/dev/da0s1a"

                   loader(8) automatically calculates the value of this
                   tunable from /etc/fstab from the partition the kernel was
                   loaded from.  The calculated value might be calculated
                   incorrectly when /etc/fstab is not available during
                   loader(8) startup (as during diskless booting from NFS), or
                   if a different device is desired by the user.  The
                   preferred value can be set in /loader.conf.

                   The value can also be overridden from the loader(8) command
                   line.  This is useful for system recovery when /etc/fstab
                   is damaged, lost, or read from the wrong partition.
 
Thank you all for your help and suggestions but I think I was able to figure out the problem - I am on a laptop with an external Sabrent 4TB drive but the laptop drives efi partition is a little messy, so I backup and installed Freebsd on the laptop drive ... during that process it stopped and asked me if I wanted to clear out those old entries and create a new one, which I did. Now I am just waiting for 706 KDE packages to download and install :P. lol

I will put Linux on the external drive once everything settles.
Thanks again :)
Bill
 
Back
Top