From owner-freebsd-current Thu Apr 27 20:22:27 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA22870 for current-outgoing; Thu, 27 Apr 1995 20:22:27 -0700 Received: from sbstark.cs.sunysb.edu (sbstark.cs.sunysb.edu [130.245.1.47]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA22864 for ; Thu, 27 Apr 1995 20:22:24 -0700 Received: (from root@localhost) by sbstark.cs.sunysb.edu (8.6.12/8.6.9) with UUCP id XAA04974 for current@freebsd.org; Thu, 27 Apr 1995 23:22:00 -0400 Received: (from gene@localhost) by starkhome.cs.sunysb.edu (8.6.11/8.6.9) id UAA16200; Thu, 27 Apr 1995 20:15:29 -0400 Date: Thu, 27 Apr 1995 20:15:29 -0400 From: Gene Stark Message-Id: <199504280015.UAA16200@starkhome.cs.sunysb.edu> To: current@FreeBSD.org Subject: Disk slicing problems Sender: current-owner@FreeBSD.org Precedence: bulk Over the past week or two, I have been trying to get various systems here bootstrapped over to the new disk slicing code. I have to say, I haven't fully understood it yet, and there are some serious problems I have come up against. Perhaps somebody (Bruce?) can tell me what I am missing: (1) Though I can mount, say /dev/wd0s4e, /dev/wd0s4f on /usr and /local, I am not yet able to use /dev/wd0s4a as / and /dev/wd0s4b as swap. Is this supported? Do I have to do something special in the kernel config, like change "root on wd0" to "root on wd0s4"? (2) After having gotten a kernel booted with disk slicing turned on, I find that I am unable to modify the MBR, and I am also unable to perform certain modifications to the disklabel. My understanding was that I am supposed to be able to use /dev/rwd0 as "the whole disk", and thus access and modify the MBR that way. However, when I try, say, "fdisk -u /dev/rwd0" it fails to write the MBR, complaining that the operation is not supported. Also, whereas under older kernels I was able to perform various kinds of "dangerous" modifications to the disklabel while the system is up, I can no longer do this. For example, I had my BSD slice starting at offset 1, with the a partition starting at offset 1008. I wanted to shrink the BSD slice so that it starts at offset 1008 to coincide with the start of the a partition, but there seems to be no way to do this once the initial slice table and disklabel have been written. Any attempt to change the disklabel in this way results in a complaint that the "change would shrink an open partition". This even happened while booted from the SCSI drive and attempting to modify the wd disklabel. I had to revert to an old kernel with no disk slicing, change the MBR and disklabel, then reboot the new kernel. In summary, I would like to be able to make these "dangerous" modifications, as long as I am willing to accept whatever consequences accrue from making them on the fly. Typically, what I would want to do is rewrite the MBR and disklabel, then reboot immediately if I moved the root area or something. The current system of interlocks seems to effectively prevent me from doing anything except reloading my entire disk from scratch. (3) I do not understand what the current wisdom is as far as laying out BSD partitions with respect to cylinder boundaries. With the advent of disk slicing, the disklabel now seems to be "relativized" to the beginning of the slice, with the effect that it gets very confused about what starts at a cylinder boundary and what does not. I am not particularly thrilled about this relativization; I would prefer it if the display were made the old way, but if you weren't supposed to enter values outside the slice the disk drivers simply prevented you from changing the disklabel to that. - Gene