Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!news.ci.com.au!metro!metro!munnari.OZ.AU!news.hawaii.edu!ames!venus.sun.com!cs.utexas.edu!howland.reston.ans.net!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul From: wpaul@ctr.columbia.edu (Bill Paul) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: SCSI problems performing writes to FAST SCSI-2 drives Date: 21 Feb 1996 15:12:25 GMT Organization: Columbia University Center for Telecommunications Research Lines: 94 Message-ID: <4gfcoq$k4j@sol.ctr.columbia.edu> References: <4fqnbb$f7v@viking.ucsalf.ac.uk> <4fr9rr$t4i@atlas.uniserve.com> <DMu12y.ApB@flatlin.ka.sub.org> <4gd0qq$586@plato.ucsalf.ac.uk> NNTP-Posting-Host: startide.ctr.columbia.edu X-Newsreader: TIN [version 1.2 PL2] Daring to challenge the will of the almighty Leviam00se, Mark Powell (mark@plato.ucsalf.ac.uk) had the courage to say: : In article <DMu12y.ApB@flatlin.ka.sub.org>, : Christoph Badura <bad@flatlin.ka.sub.org> wrote: : >I the ahc driver thinks it needs more then 256 segments for a single : >request is beyond me, though. That would mean you are handling it a > : >1MB (256 * 4KB per page) request, which is a bit to large for a partition : >table. : Is this a bug then? I've been playing with this drive again today. I want to : partition it as: (using /stand/sysinstall) : 128M / ; 2048M /usr ; 64M swap ; ~1800M /home : Disk name: sd1 FDISK Partition Editor : DISK Geometry: 4096 cyls/64 heads/32 sectors : Offset Size End Name PType Desc Subtype Flags : 0 32 31 - 6 unused 0 : 32 262112 262143 sd1s1 3 freebsd 165 C : 262144 4194304 4456447 sd1s2 3 freebsd 165 : 4456448 131072 4587519 sd1s3 3 freebsd 165 : 4587520 3801088 8388607 sd1s4 3 freebsd 165 : However, this fails (with the error message outlined in my original post) : If I delete the last two partitions and try: : 0 32 31 - 6 unused 0 : 32 262112 262143 sd1s1 3 freebsd 165 C : 262144 4194304 4456447 sd1s2 3 freebsd 165 > : 4456448 3932160 8388607 - 6 unused 0 > : It will write the partition. If I try to add the 3rd 64m partition in it will : refuse to partition again. Why is this? Partition too far into the disk? I can't : think of anything here. Uhm, wait, hold on. I think there may be some misunderstanding here. You aren't supposed to use the _partition_ editor to allocate space for individual filesystems. Hokay, how can I explain this without confusing the issue even more. This partition editor creates what you could think of as 'DOS-style' partitions. In other words, it lets you manipulate the partition table at the start of the disk. What you're supposed to do is allocate a big fat chunk of space on the disk and say: "Okay: this is the space I'm going to use for my entire FreeBSD installation." Note that we haven't talked about filesystems yet. That comes later. So, assuming you want to use the entire disk for FreeBSD (and why wouldn't you), you would create just _one_ partition, in this case sd1s1, and leave it at that. (sd1s1 in this case stands for Scsi Disk 1 Slice 1.) sds1 should take up all of the drive. You can do this automagically by asking the partition to 'Use entire disk.' If you didn't want to use the entire disk, the space you leave unallocated can be used by another OS (MS-DOG, OS/half, whatever). This is how you install two operating systems on one disk. Now; once you've created a FreeBSD partition, _then_ you go to the _label_ editor and begin creating filesystems. It is in the label editor where you decide how to divide up the FreeBSD partition you just created into FFS filesystems, or swap. Notice that in the partition editor you created sd1s1. In the label editor, you can create sd1s1a (partition a on Scsi Drive 1 Slice 1), which is usually the root fs (/). And then you create sd1s1b, which is usually for swap. Note that if you only have one FreeBSD 'slice' (partition), you can leave out the 's1' part and think of the filesystems as sd1a, sd1b, sd1e and so on. (The install program will leave the 's1' designation in for you. I always change it back in /etc/fstab when the install is finished.) : Why can't I partition it the way I want to? : -- Like I just said: it don't work that way. Linux kinda sorta works that way (it can use DOS-style partitions for individual filesystems), but this ain't Linux. This should also be somewhere in TFM, which you should have R'ed. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= License error: The license for this .sig file has expired. You must obtain a new license key before any more witty phrases will appear in this space. =============================================================================