From owner-freebsd-questions@freebsd.org Fri Nov 11 05:49:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77684C3AD74 for ; Fri, 11 Nov 2016 05:49:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4124519F3 for ; Fri, 11 Nov 2016 05:49:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-250-109.dynamic.qsc.de [92.195.250.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 540A1276E3; Fri, 11 Nov 2016 06:43:22 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id uAB5hMS1002022; Fri, 11 Nov 2016 06:43:22 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 11 Nov 2016 06:43:22 +0100 From: Polytropon To: Mick mtn Cc: freebsd-questions@freebsd.org Subject: Re: Newbie Question: is there a rescue mode or shell access from loader? Message-Id: <20161111064322.541a76df.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2016 05:49:17 -0000 On Thu, 10 Nov 2016 22:30:18 -0700, Mick mtn wrote: > FreeBSD 11.0R p2 > on a macbook pro, > > System was working, added some drivers to loader.conf, now system panics > and reboots after 15 seconds. one of the errors I can see relates to > module vesa can not register 17 > vesa.ko already loaded > > I can escape too the loader prompt. > But do not see how to edit files from the loader prompt. > Can anyone help me get to the shell? The classic way is to interrupt the boot by repeatedly pressing the space bar until you reach the "kernel prompt". Here you can perform the "unload" command and then resume booting into single user mode where you can mount r/w your / or /boot partition and undo the change in the loader.conf file. See "12.2.3. Stage Three" in The FreeBSD Handbook: https://www.freebsd.org/doc/handbook/boot-introduction.html In case of more severe errors, booting from external media (USB stick or CD), then mounting the required partition and changing the file should work as well. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...