From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 23 17:16:34 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 673411065749 for ; Wed, 23 Jun 2010 17:16:34 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id C61AA8FC18 for ; Wed, 23 Jun 2010 17:16:33 +0000 (UTC) Received: by wwb24 with SMTP id 24so886181wwb.13 for ; Wed, 23 Jun 2010 10:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jizf13mBzb0Qk2RL4DX0ZYDAe7528kMTH6+NfVJEigc=; b=LFTnW5KyuDrl3zi7DPhcf+5nUOvGccf2ziLg0FKNBxO8S7R7WoILKuTfBRLmpVlWli aAYpfc0XAFCEaYPXWWE1uptiTtahqZsovJjvoLIh49I1lgsXr33K7wYjg/UIuJK5Mr41 lYmYZbnPOUS30fpeTUGujvPwoogHNA3GYmF4s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=QWol/3IEvWEpIvIwveayfOJG5d+qghb+w1PsM48N5WSMWIDuOzPxagKEgW3VWnHh00 5x8U05X8he6LloA2bxg2hMP8sShQWYDQYQzinOUtAF1S55tkCQUkxiyOx3UYc+mxnllU orYdZmdtumbUoPQvWiNuuW2FPBZq3OGj5/n5Q= MIME-Version: 1.0 Received: by 10.216.93.73 with SMTP id k51mr189663wef.97.1277313392583; Wed, 23 Jun 2010 10:16:32 -0700 (PDT) Received: by 10.216.230.160 with HTTP; Wed, 23 Jun 2010 10:16:32 -0700 (PDT) In-Reply-To: <4C22336A.9040205@grosbein.pp.ru> References: <20100623.160330.281.1@DEV> <4C22336A.9040205@grosbein.pp.ru> Date: Wed, 23 Jun 2010 19:16:32 +0200 Message-ID: From: "Domagoj S." To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: mdf@freebsd.org, Eugene Grosbein Subject: Re: loader prompt: list / on other device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2010 17:16:34 -0000 2010/6/23 Eugene Grosbein : > On 23.06.2010 23:03, rank1seeker@gmail.com wrote: >> I've escaped to loader prompt: >> Current device is disk0s3a, from which this loader is running. >> >> My USB stick is device1 and device1s2a is UFS /, on which I would like t= o >> reach some file or simply list directory. >> >> Syntax? > > I guess, you have to change 'currdev' variable to point to right diskX > > Eugene Grosbein Thanks Eugene! It worked. ;) I've booted ad4s3a and escaped to loader prompt. currdev was disk0s3a USB stick was disk1s2a, which mounted, appears as da0s2a I used "more /etc/fstab" in order to get hostname HDD_hostanme Then at loader prompt: "set currdev=3Ddisk1s2a" Then again, I used "more /etc/fstab" in order to get hostname: USB_hostanme On Wed, Jun 23, 2010 at 6:45 PM, wrote: > On Wed, Jun 23, 2010 at 9:03 AM, wrote: >> I've escaped to loader prompt: >> Current device is disk0s3a, from which this loader is running. >> >> My USB stick is device1 and device1s2a is UFS /, on which I would like t= o >> reach some file or simply list directory. > > IIRC, there is no way to do this (but my memory is based on stable/7). > I extended some Isilon stuff to add a 'bootdev' command to the loader > that would allow for selecting alternate boot disks. I can see about > dusting that off and making a patch against CURRENT, if there is no > current way to do what you ask. > > Cheers, > matthew Well, looks like it is working on 8.0 RELEASE. On Wed, Jun 23, 2010 at 7:03 PM, Andrew Duane wrote: > You *should* be able to use device1s2a:/ as a syntax, but I noticed a bu= g in our old loader code that parses devicenames like that where it wouldn'= t work correctly with unit numbers. I don't know if that bug is still aroun= d, but setting currdev did work around it. > > /Andrew Thx! I'll try it...