From owner-freebsd-questions Thu Jan 25 18:40:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 4C94737B400 for ; Thu, 25 Jan 2001 18:40:15 -0800 (PST) Received: (qmail 20781 invoked by uid 100); 26 Jan 2001 02:40:14 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14960.58254.116292.985721@guru.mired.org> Date: Thu, 25 Jan 2001 20:40:14 -0600 (CST) To: gsimonoff@geocities.com Cc: questions@freebsd.org Subject: Re: How to In-Reply-To: <3A70E861.BE932456@geocities.com> References: <14960.44384.339650.266469@guru.mired.org> <3A70E861.BE932456@geocities.com> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG greg simonoff types: > How can block special file - which the way > I understand it is just an inode with the major and minor > numbers in it be read? Is there a utility for doing > that? cat, dd, etc. You might want to try /dev/rda0. > dmesg shows that my external scsi drive is recognized - > it is even correctly identified, but I can't get disklabel to > return anything. If disklabel can't read the disk label > then I can't even get to the point were I can reformat > it and add a new file system. Is that right? You can't read one until you've written one on it. If you're willing to lose the data on the disk - or have no data on it - you can use "disklabel -w -r /dev/da0 auto to put a label on da0. You then need to do "sh MAKEDEV da0h" to create the partitions on the disk (no slices at all). If you want to use MS-style slices, use fdisk first, then use disklabel on /dev/da0s#, for # being 1, 2, 3, or 4. Mike Meyer wrote: > > > greg simonoff types: > > > I',m trying to mount a SunOS/external drive onto a FreeBSD system > > > using a 50 pin cable. The FreeBSD system sees the drive - ids it as > > > Seagate - gets the right size and names it as "da0". This all shows up > > > in the dmesg. The FreeBSD manuals say to mount drives that are foreign > > > like this as /dev/da1s1e where the s means mdos and the e is a slice of > > > a physical partition. > > > > The part about 's' isn't true. Could you please let us know which > > manual says that, so we can do soemthing about fixing it. > > > > > In the /dev directory there are nodes for > > > /dev/da1 but not "/dev/da1s1e". There is a make file for creating > > > nodes, but the make makes guess what? That's right the nodes that are > > > already exist. How do you use mknode to make this inode? What should > > > the major and minor numbers be? > > > > Try doing "sh MAKEDEV da1s1e" in /dev; that should make the device > > entries for you. > > > > > It would be alot of help to know what the fstab entry for this dirve > > > should look like. > > > > That depends on the layout of the drive. Does it use MSDOS slices at > > all? Can you read the disklabel off of it, or do you know what it was > > on SunOS? > > > > It's not at all clear that you can do what you're trying to do. SunOS > > usually refers to the BSD-based versions of Sun's OS, but that doesn't > > mean the file systems will be the same. The file system has changed > > quit a bit since Sun forked the code. > > > > > > > > > > > > > > - --------------F44A06D45BDCCB368CB8B369 > > > Content-Type: text/x-vcard; charset=us-ascii; > > > name="gsimonoff.vcf" > > > Content-Transfer-Encoding: 7bit > > > Content-Description: Card for greg simonoff > > > Content-Disposition: attachment; > > > filename="gsimonoff.vcf" > > > > > > begin:vcard > > > n:Simonoff;Gregory > > > tel;work:(510) 286-4659 > > > x-mozilla-html:FALSE > > > org:Calif State Dept of Transportation;Software Development > > > version:2.1 > > > email;internet:gsimonoff@geocities.com > > > title:PE / Electrical Engineer (CA license) > > > adr;quoted-printable:;;111 Grand Avenue =0D=0A;Oakland ;CA;94623; > > > note;quoted-printable:Java, HTML, C++, C=0D=0AUNIX, OS9=0D=0A > > > fn:Gregory Simonoff > > > end:vcard > > > > > > - --------------F44A06D45BDCCB368CB8B369-- > > > > > > > > > _________________________________________________________ > > > Do You Yahoo!? > > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > -- > > Mike Meyer http://www.mired.org/home/mwm/ > > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. > begin:vcard > n:Simonoff;Gregory > tel;work:(510) 286-4659 > x-mozilla-html:FALSE > org:Calif State Dept of Transportation;Software Development > version:2.1 > email;internet:gsimonoff@geocities.com > title:PE / Electrical Engineer (CA license) > adr;quoted-printable:;;111 Grand Avenue =0D=0A;Oakland ;CA;94623; > note;quoted-printable:Java, HTML, C++, C=0D=0AUNIX, OS9=0D=0A > fn:Gregory Simonoff > end:vcard -- Mike Meyer http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message