UFS no /boot/loader

While you have that Live image running, try to mount ada0a. Apparently this disk doesn't have slices on it and the bsdlabels are set on the disk itself.
 
Right, it doesn't matter where you mount it. It's just to verify the existence of the /boot directory and the kernel in it, which should be in that partition if it indeed was once bootable.
 
Right, it doesn't matter where you mount it. It's just to verify the existence of the /boot directory and the kernel in it, which should be in that partition if it indeed was once bootable.
/etc/fstab does not have a line for /boot
 
The bootloader does not mount the filesystem, it just pulls the kernel out of it. You're supposed to be using the installer USB drive to mount ada0 on /mnt and check if /mnt/boot/loader and /mnt/boot/kernel/kernel exists
 
The bootloader does not mount the filesystem, it just pulls the kernel out of it. You're supposed to be using the installer USB drive to mount ada0 on /mnt and check if /mnt/boot/loader and /mnt/boot/kernel/kernel exists
They don't exit because /mnt/boot does not exist. No file or directory exist.
 
I am new to BSD but not so new to open source command line. See pic.

Screenshot 2021-03-17 145834.png
 
I had two drives on this machine both with FreeBSD. I removed one of them to use on another machine.

Well, now that I think of it, you probably removed the one with the bootloader on it, even if this one is the one with the system that was booting, even if the kernel mounted this disk as root. boot(8) got installed to the FreeBSD disklabel, but didn't get hooked up right and you never noticed because you used the loader on the other disk.

Did you already obliterate the other disk?
 
Well, now that I think of it, you probably removed the one with the bootloader on it, even if this one is the one with the system that was booting, even if the kernel mounted this disk as root. boot(8) got installed to the FreeBSD disklabel, but didn't get hooked up right and you never noticed because you used the loader on the other disk.

Did you already obliterate the other disk?
No I can re-install it if need be. Let me know what to do once I place it back into the box.
 
* Boot using the installer USB again
* Mount the one you want to keep in /mnt like you already did (With two ada devices and device ordering, it might be difficult to keep straight, so make sure you're using the right one by poking at them with gpart)
* mkdir a new mountpoint /mnt2
* Mount the other disk on /mnt2
* cp -R /mnt2/boot /mnt
* Reboot and see if that works

Your fstab is probably going to be pointing to the wrong disk, but don't worry about modifying that until the kernel says it's wrong. (Plus you can always just type ada0 instead of ada1, get the system booted and then edit the file)
 
I was able to copy /boot and the computer came on while the SSD drive I want to take out was plugged in. After I removed the SSD drive I am now stuck here. root or my username come back to the same "Login:"


PXL_20210317.jpg
 
Well at least it booted. Some commands in single-user mode might fix this but it's a good idea to reinstall. You could probably fix the issues, but some wires got crossed with having two installs on there and there's no way to know how many of them there are.
 
Back
Top