• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Solved how to boot with messed up /boot/loader.conf ?

meine

Member

Thanks: 3
Messages: 21

#1
Hi,

I messed up my /boot/loader.conf by adding 'vesa_load="YES"' without installing the VESA files first -- n00b mistake...

The FreeBSD boot menu has an option to choose

6. Configure Boot Options...
...
2. Load System Defaults

I presume this option boots only with /boot/defaults/loader.conf and skips the user-tweaked /boot/loader.conf

However, the option 'System Defaults' also results in a panic message.

Checking with more /boot/defaults/loader.conf through '3. Escape to loader prompt' reveals that the default file in FreeBSD 11.1 has a line where /boot/loader.conf is loaded.

My question is how I can boot my box skipping that VESA line in /boot/loader.conf or the entire file

(I promise, I'll never do this again...)

TIA
 

Snurg

Aspiring Daemon

Thanks: 253
Messages: 706

#2
You probably have to boot from rescue medium, mount the root filesystem and reverse that edit.

I had a similar problem recently, and when investigating this, it turned out that this is not straightforward on FreeBSD, because the developers decided to flag the root filesystem as "unmountable".

Thus there are some additional steps involved to make the computer able to mount the root filesystem manually.
See these threads for more information:
Trying to access root directory of another system's root disk
Is there a way to turn on canmount property for root volumes?

P.S.: The VESA driver is bugged and causes a number of problems, especially for NVIDIA users.
For this reason I always build a custom kernel to get rid of it.
 
Last edited by a moderator:

Datapanic

Active Member

Thanks: 100
Messages: 182

#3
Boot up the system, press any key to get to the OK prompt, then type:

disable-module vesa

Type "boot" to continue, then you can login and fix /boot/loader.conf
 

meine

Member

Thanks: 3
Messages: 21

#4
Boot up the system, press any key to get to the OK prompt, then type:

disable-module vesa

Type "boot" to continue, then you can login and fix /boot/loader.conf
TNX! did the job and I was able to comment the line in /boot/loader.conf

great that there is a way to keep booting when a not-yet-superuser messes up ;-)
 

meine

Member

Thanks: 3
Messages: 21

#5
P.S.: The VESA driver is bugged and causes a number of problems, especially for NVIDIA users.
For this reason I always build a custom kernel to get rid of it.
OK, TNX.

This means that I have to look further to use console with preferably 1600x900 without using NVidia. In Fedora Linux I was lucky to get a very good 'nouveau' driver instead, but otherwise NVidia is a real PITA...

I'll look and perhaps start another tread on a high(er) resolution console without using NVidia -- suggestions welcome!
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 5,508
Messages: 25,692

#7
In Fedora Linux I was lucky to get a very good 'nouveau' driver instead, but otherwise NVidia is a real PITA...
Neither driver has anything to do with the console resolution.