Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!ihnp4.ucsd.edu!ucsnews!newshub.sdsu.edu!nic-nac.CSU.net!usc!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!panix!not-for-mail From: rpritz@panix.com (richard) Newsgroups: comp.os.386bsd.questions Subject: Re: FreeBSD 2 questions Date: 21 Jul 1994 21:52:47 -0400 Organization: usenet central Lines: 50 Message-ID: <30n8pf$emm@panix2.panix.com> References: <30kgm3$8ap@earth.cs.utexas.edu> <30ki2q$oce@panix2.panix.com> <30n59n$hab@earth.cs.utexas.edu> NNTP-Posting-Host: panix2.panix.com X-Newsreader: TIN [version 1.2 PL2] Goran Devic (goran@cs.utexas.edu) wrote: : Thank you for the answer on (1). It helped. : (2). Drive D: and E: :-) are only two partitions on the second hard drive, : C: is already recognized by BSD and is the primary on the first HDD. BSD is : itself on the first HDD on the 'end' of it. : So, the goal is to recognize second HDD and I can see it during the boot that : it founds it as 'wd1', but I have no idea how to use mount to mount DOS : partitions. Labeled? If I label it (how?) do I loose DOS data? : Can I change fstab manually? If so, what info to put there? you can use disklabel and fdisk -u to read and write data (see the man page) use fdisk to read wd1 (i think you should refer to it as /dev/wd1 or /dev/wd1d) you will see that the dos partition does not begin at the very beginning of the disk, but a bit later use fdisk -u to create a mini bsd partition from 1 to before the start of other partitions create a disktab entry (again, man disktab) for the drive. one of the partitions will be a small bsd partition, the rest will be dos partitions use disklabel to label the drive in the small bsd partition put an entry into fstab reboot sample disktab entry - this is for my second hard drive, which, before the disklabel, only consisted of one large dos partition wd210|Western Digital 210:\ :dt=ST506:ty=winchester:\ #describe heads, cyls, etc :nc#987:ns#35:nt#12:\ :se#512:\ :pa#34:oa#1:ta=4.2BSD:\ # bsd partition from 1-34 :pc#34:oc#1:\ # same :pd#414540:od#0:\ # entire drive :pe#414085:oe#35:te=MSDOS: # dos 35-end fstab for dos part /dev/wd1e /c pcfs rw 0 0 in other words, device wd1, part e mounted on dir /c is pcfs (pc filesystem), ReadWrite disklabel and/or fdisk revealed that dos started at 35, the bsd part is 1 (DO NOT start at 0) to this #. and read the man pages. twice. fdisk and disklabel have the potential for totally frying your drive. you may also want to wait awhile to see if anyone corrects me here.