From owner-freebsd-stable@FreeBSD.ORG Wed Oct 29 13:44:03 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5B0CC696 for ; Wed, 29 Oct 2014 13:44:03 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D8B04B58 for ; Wed, 29 Oct 2014 13:44:02 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id f15so2753578lbj.27 for ; Wed, 29 Oct 2014 06:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=okJSeTLyudcTbveOiZwGU8L/bEDUmYVSf93NsUngnIE=; b=qYaO/XoxsQiut7FBuW80VogkoJ7F+w58/1mO/xngX/EkZckXWTjFtKeI1K297iJoFu O+Nrnu2PV8Xd6/lJT4BHlJzvyE+THno9iowkX967A9k8zbaxhQEpXLZVLyakiRUviOGH hOH3sn1aSAqfCdOQ+SMG+HF/mqb9si81YZfuWMImQ4IvW9QIXg5d39hx4HVNKfFnCxbm ML4mhhlACRhj6WQXKqv+aeq127BIAv7bVRBOKouA2FuR5GBZq11sXtEVm3UEDV/bck53 eQ8esjmUjS/aGW+03i43EOfUAXyNKhPYW1HMshLqT1/uEUT9ub6miaStR6VXp/0w8Ez5 Lbpw== MIME-Version: 1.0 X-Received: by 10.152.27.134 with SMTP id t6mr11433301lag.17.1414590240850; Wed, 29 Oct 2014 06:44:00 -0700 (PDT) Received: by 10.152.210.197 with HTTP; Wed, 29 Oct 2014 06:44:00 -0700 (PDT) In-Reply-To: <20141029130906.GI66862@home.opsec.eu> References: <20141029130906.GI66862@home.opsec.eu> Date: Wed, 29 Oct 2014 14:44:00 +0100 Message-ID: Subject: Re: 10.1RC1 armv6 RPI-B stuck in single user mode From: Alban Hertroys To: Kurt Jaeger Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2014 13:44:03 -0000 On 29 October 2014 14:09, Kurt Jaeger wrote: > Hi! > >> We have a Raspberry Pi here that was working fine, but because my >> colleagues tend to reboot the thing by unplugging the power, the root >> file-system got dirty. >> To fsck the root file-system, I attempted to boot it into single-user >> mode using nextboot -o "-s" -k kernel. >> >> Unfortunately, it never shows the single user mode prompt. The system >> gets stuck trying to mount root from ufs:/dev/mmcsd0s2a >> >> And it does that every time I attempt to boot it, because that >> nextboot flag never gets cleared! >> There doesn't appear to be any method of interrupting the boot loader >> on the Pi either. >> >> How do I get out of this pickle? > > Put the SD card into some other device, e.g. some laptop with FreeBSD, > run the fsck there ? I was afraid that would be the answer; card readers are a bit hard to find here at the office. For example; to create the current SD card I had to "borrow" a laptop that someone had brought in to our helpdesk. Obviously, I'll need an SD cardreader at some point anyway, but I was hoping for a quick workaround. -- If you can't see the forest for the trees, Cut the trees and you'll see there is no forest.