From owner-freebsd-hardware Fri Dec 20 09:41:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA29375 for hardware-outgoing; Fri, 20 Dec 1996 09:41:16 -0800 (PST) Received: from palrel1.hp.com (palrel1.hp.com [15.253.72.10]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA29369 for ; Fri, 20 Dec 1996 09:41:14 -0800 (PST) Received: from srmail.sr.hp.com (srmail.sr.hp.com [15.4.45.14]) by palrel1.hp.com with ESMTP (8.7.5/8.7.3) id JAA10924; Fri, 20 Dec 1996 09:40:50 -0800 (PST) Received: from hpnmhjw.sr.hp.com by srmail.sr.hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA225183649; Fri, 20 Dec 1996 09:40:50 -0800 Received: from mina.sr.hp.com by hpnmhjw.sr.hp.com with SMTP (1.37.109.16/15.5+ECS 3.3) id AA298243647; Fri, 20 Dec 1996 09:40:47 -0800 Message-Id: <199612201740.AA298243647@hpnmhjw.sr.hp.com> To: rhh@ct.picker.com (Randall Hopper) Cc: babbleon@mercury.interpath.com (Brian T. Schellenberger - Personal Account), freebsd-hardware@FreeBSD.ORG (FreeBSD Hardware) Subject: Re: Zip II: the disktab entry Reply-To: darrylo@sr.hp.com In-Reply-To: Your message of "Thu, 19 Dec 1996 18:00:46 EST." Date: Fri, 20 Dec 1996 09:40:47 -0800 From: Darryl Okahata Sender: owner-hardware@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > To create a "real" (i.e. UFS) file system on a ZIP, here's a script I use > that might help get you started. make-ufs-zip.sh uses Darryl Okahata's > (darrylo@hpnmhjw.sr.hp.com) enhanced fdisk that allows the partition info > to be specified via stdin. Unfortunately, not all of my fdisk changes made it into 2.2. I took out the "-f" option, as it duplicates functionality that's in disklabel (in particular, if "-f" was left in, the nasty magic that creates "dangerously dedicated disks" would be in two places, which could cause maintenance problems). Fortunately, there's an easier way to create dedicated disks. Instructions (old) have been appended to this message. Note that the following works for 2.2-current and later; I don't think it works for 2.1.5 or 2.1.6 or earlier. -- Darryl Okahata Internet: darrylo@sr.hp.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Hewlett-Packard, or of the little green men that have been following him all day. =============================================================================== If and only if all of the following are true: * You're an intermediate- to expert-level user. (DON'T EVEN THINK ABOUT DOING THE FOLLOWING IF YOU'RE A NOVICE USER!) * You have a SCSI disk (IDE drives may work in the following, but I don't know). * You want to dedicate the *ENTIRE* disk to FreeBSD. This is *IMPORTANT*, as the following assumes that you really do want to dedicate the entire disk to FreeBSD (yes, *all* of it). If you want to use even a teensy, tiny part of the disk for something else like MSDOS or Windows, you CANNOT use the following instructions. Period. * You have no data on the disk that you want to keep. * You don't mind losing ALL DATA that is currently on the disk. * You don't mind destroying any and all MSDOS or Windows 3.1/95/NT or any other information that is on the disk. * You don't plan on using or sharing the disk with other operating systems (e.g., MSDOS or Windows). * You want to partition the *ENTIRE* FreeBSD slice into a single FreeBSD filesystem. (If this isn't true, you have to change the "newfs" command below.) Then, the easiest way to add a dedicated disk is the following: * First, determine the base disk name of the disk you want to add/dedicate (e.g., "sd1"). * Assuming that "sd1" really is correct, do the following (assuming Bourne shell /bin/sh syntax): # This won't work if you're using /bin/csh: d=sd1 dd if=/dev/zero of=/dev/r$d count=2 disklabel /dev/r$d | disklabel -B -R -r $d /dev/stdin # We only want one partition, so using slice 'c' should be fine: newfs /dev/r${d}c (Thanks to Bruce Evans for the procedure.) You can then mount the drive via a command like: mount /dev/${d}c /mnt