From owner-freebsd-questions@FreeBSD.ORG Fri Aug 12 15:55:54 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D87FB16A41F for ; Fri, 12 Aug 2005 15:55:54 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D2F143D45 for ; Fri, 12 Aug 2005 15:55:54 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by wproxy.gmail.com with SMTP id i5so600887wra for ; Fri, 12 Aug 2005 08:55:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FhzSflbwKQoNdjB2LiKX6WzEgXohLROStBioO3pY3vFxQdob+IQtgjLd09OBTtO4FwFhA7cCME2Az8V0iDcAisevZPtPUZW6iH8wqmc+qj8Um6PobQiXNRFsp50pzeR9a6da762VRJoK0cFLaFKVemdC2TmBT3nI+vS2Df+MXBI= Received: by 10.54.3.8 with SMTP id 8mr1972851wrc; Fri, 12 Aug 2005 08:55:53 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Fri, 12 Aug 2005 08:55:53 -0700 (PDT) Message-ID: Date: Fri, 12 Aug 2005 10:55:53 -0500 From: Nikolas Britton To: Maude User In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050811235916.74808.qmail@web31601.mail.mud.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Installing from a USB Flash Drive (Was: Newbie needs help setting up rackmount server) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 15:55:55 -0000 On 8/11/05, Nikolas Britton wrote: >=20 > I'm personally liking the usb flash drive thingy idea I mentioned > earlier if you have no floppy or cd-rom drives. Not sure if this will > even work btw, never tried it. >=20 > What you would do is download the the 20MB bootonly.iso CD-ROM image > and mound it (this step my not be needed) with mdconfig: > "mdconfig -a -t vnode -f 5.4-RELEASE-i386-bootonly.iso -u 0" > Use "mount_cd9660 /dev/md0 /mnt" and you can change the config files > on the fake cd for console redirection to serial port, 'echo > "/boot/loader -h" > boot.config', etc. >=20 > Next you would dd the image onto the usb flash drive: > "dd if=3D/dev/md0 of=3D/dev/da0 bs=3D1M" >=20 > Now remove the usb flash drive from your laptop and plug it into the > server, tell the server to boot from the usb flash drive, the > filesystem on the flash drive would be cd9660 and hopefully boot like > a normal CD-ROM. If your flash drive was big enough you could load the > entier disc1.iso cd onto it, what happened to the miniinst.iso that > was only 270MB? I guess you could strip all the packages off the > disc1.iso to make a miniinst.iso disk? >=20 > What do you guys think, would this method work? the only hang up's I > can think of is making your usb flash drive think it's a CD-ROM and if > the FreeBSD install discs will work when it thinks its a hard drive, > da0 for usb storage.... I'll have to try it tomarrow.... >=20 Ok I tried it. I can't trick the computer and the USB flash drive into thinking it's a CD-ROM. Going to try a few other methods now. Another stumbling block I thought of is if your hard drive is scsi it will show up as da1 because the flash drive is da0. Might mess up sysinstall's install and /etc/fstab. Maybe we should come up with an official install method and install media for USB flash drives. 99% of the systems sold today can boot from USB and the things are cheap, I can pickup a 128MB version for $15 and a 1GB version for $60. These devices would also be good for automated installs on embedded and thin client devices that don't have floppy or CD-ROM drives, yes?