From owner-freebsd-hackers@FreeBSD.ORG Thu May 13 22:11:33 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 BD14C1065676 for ; Thu, 13 May 2010 22:11:33 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 271DA8FC12 for ; Thu, 13 May 2010 22:11:32 +0000 (UTC) Received: from park.js.berklix.net (p549A3F72.dip.t-dialin.net [84.154.63.114]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id o4DMBR2P052612; Thu, 13 May 2010 22:11:29 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id o4DMBKEh081588; Fri, 14 May 2010 00:11:21 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id o4DMB4sG018935; Fri, 14 May 2010 00:11:09 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201005132211.o4DMB4sG018935@fire.js.berklix.net> To: rank1seeker@gmail.com From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Thu, 13 May 2010 22:53:43 +0200." <20100513.205343.421.1@DEV> Date: Fri, 14 May 2010 00:11:04 +0200 Sender: jhs@berklix.com Cc: freebsd-hackers@freebsd.org, Ken Smith Subject: Re: Custom USB layout & sysinstall (Starting FIXIT) 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: Thu, 13 May 2010 22:11:33 -0000 Hi, rank1seeker@gmail.com wrote: > So, I downloaded USB stick .img > Instead of just writing it with dd, I've mounted and dumped it, as I wanted > custom USB stick, layout. > > To cut it short. > Bootable img file appears as ad0s2a instead of ad0a. > Once I boot from BIOS->USB stick->slice 2, I enter sysinstall successfully. > > Now I wana enter into FIXIT, from sysinstall. > And I get "No USB devices found!", as well as, at all other parts, of > sysinstall, that search for USB device. I reported the same thing as you a month back. http://lists.freebsd.org/pipermail/freebsd-hackers/2010-April/031534.html Subject: Bug with fixit live 8.0 memstick.img running on F1 after MBR From: "Julian H. Stacey" Date: Sat, 17 Apr 2010 12:05:46 +0200 To: hackers@freebsd.org Message-id: <201004171005.o3HA5kfo014359@fire.js.berklix.net> I didn't get as far analysing as you did below. Ken Smith (cc'd) posted ideas, but I got distracted on to other things. Ken's post is here: http://lists.freebsd.org/pipermail/freebsd-hackers/2010-April/031620.html > Other parts of sysinstall, DO list ad4 (my HDD) and da0 (my USB stick) > correctly. > > > I think sysinstall has hardcoded command, to mount da0a and doesn't see > da0sxa, at all. > > So how do I do it manually? > Emergency Holo Sh is no go. > > > Maybe this part of code is responsible, from file > /usr/src/usr.sbin/sysinstall/devices.c: > Code: > > /* > * Find all devices that match the criteria, allowing "wildcarding" as well > * by allowing NULL or ANY values to match all. The array returned is > static > * and may be used until the next invocation of deviceFind(). > */ > Device ** > deviceFind(char *name, DeviceType class) > { > static Device *found[DEV_MAX]; > int i, j; > > j = 0; > for (i = 0; i < numDevs; i++) { > if ((!name || !strcmp(Devices[i]->name, name)) > && (class == DEVICE_TYPE_ANY || class == Devices[i]->type)) > found[j++] = Devices[i]; > } > found[j] = NULL; > return j ? found : NULL; > } > > PS: > Options --> Rescan Devices, in sysinstall don't work. > > Could I start fixit, from loader prompt directly, so I wouldn't even have > to eneter sysinstall, as I don't need it at all to install FreeBSD? Cheers, Julian -- Julian Stacey: BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text, Not HTML quoted-printable Base64 http://www.asciiribbon.org