rootfs0 file not found (but clean two rows before), installing 21.11.24

Questions about the installation of FreeBSD
purpleleaf
Posts: 6
Joined: Tue Dec 28, 2021 10:07 am

rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by purpleleaf »

I successfully installed Ghostbd, after a swap problem i will report in another post, on a disk containing others two linux partitions.
I selected Advanced Partitioning on the installer and then i selected "auto" to let the installer automatically partitioning the free spaces on the disk.
I installed the boot bios loader.
I rebooted and then i added the following string to my existent grub configuration in /etc/grub.d/40_custom

menuentry "GhostBSD" {
insmod ufs2
insmod bsd
set root='hd0,msdos3'
kfreebsd /boot/loader
}

i can boot from Ghostbsd partition, but after the Ghostbsd welcome screen i am redirected to a recovery shell.
You can view the rootfs0 error 0 and the fdisk output from single user shell here:

https://justpaste.it/2rfej

Any suggestions?

Many Thanks
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by ericbsd »

Your grub2 setup looks wrong, but it looks like it is trying to boot the ISO from your screenshots.

So with insmod ufs2, I assume you did use UFS, but your grub is wrong.

Did you install GHostBSD on MBR or GPT?

What is your root(/) partition?
purpleleaf
Posts: 6
Joined: Tue Dec 28, 2021 10:07 am

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by purpleleaf »

The partiton table Is MBR
The filesystem use UFS+SUJ (default)
The Ghostbsd root Is on /dev/sda3 (for Linux) and /dev/ada0s03 (for Ghostbsd)
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by ericbsd »

Your grub2 setting should look like this.

Code: Select all

menuentry "GhostBSD" {
set root=(hd0,3)
chainloader +1
}
purpleleaf
Posts: 6
Joined: Tue Dec 28, 2021 10:07 am

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by purpleleaf »

@ericbsd Thanks, I followed your suggestion, but nothing changed. The error reported is the same.

I also tried to mount the bsd partitions from the live iso, with the same results, the swap partition is mounted without problem but the other throw the same error.

Code: Select all

ghostbsd@livecd ~> sudo swapon /dev/ada0s3b
ghostbsd@livecd ~> swapinfo 
Device          1K-blocks     Used    Avail Capacity
/dev/ada0s3b      8387584        0  8387584     0%
ghostbsd@livecd ~> mkdir tmp
ghostbsd@livecd ~> sudo mount /dev/ada0s3a tmp
mount: /dev/ada0s3a: No such file or directory
ghostbsd@livecd ~ [1]> ls /dev/ada0*
/dev/ada0    /dev/ada0s2  /dev/ada0s3a /dev/ada0s4
/dev/ada0s1  /dev/ada0s3  /dev/ada0s3b
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by ericbsd »

You have to use sudo to mount partitions.

Looking at the boot on the screenshot, it looks wrong. I wonder if it has installed correctly.
purpleleaf
Posts: 6
Joined: Tue Dec 28, 2021 10:07 am

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by purpleleaf »

i used sudo, i reported a wrong portion of my commands, but also with sudo the output is the same.
anyway i run fsck on the partition and now i can mount it from the live iso.

Code: Select all

ghostbsd@livecd ~ [1]> sudo fsck /dev/ada0s3a
** /dev/ada0s3a
Journal inode removed.  Use tunefs to re-create.
** Skipping journal, falling through to full fsck

** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
232054 files, 1587405 used, 10614970 free (1242 frags, 1326716 blocks, 0.0% fragmentation)
now i will reboot and i will report if this fix the problem
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by ericbsd »

Let me know how it goes.

If there is still a problem try the latest build https://www.ghostbsd.org/download#latest_builds.
purpleleaf
Posts: 6
Joined: Tue Dec 28, 2021 10:07 am

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by purpleleaf »

Success... I'm wrighting from my brand new Ghostbsd home :)

I'm wondering what type of problem caused this error.

Many thanks ericbsd.

the last question: as i wrote at the beginning of the post i had a problem during installation for a 'out of swap space' error. I must report here on the forum or as github issue?
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: rootfs0 file not found (but clean two rows before), installing 21.11.24

Post by ericbsd »

How much ram your system has?
Post Reply