From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 23:10:42 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A45C16A41F for ; Thu, 28 Jul 2005 23:10:42 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00DD543D45 for ; Thu, 28 Jul 2005 23:10:40 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 23740 invoked by uid 207); 28 Jul 2005 23:10:39 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.3):. Processed in 0.966486 secs); 28 Jul 2005 23:10:39 -0000 Received: from dialup3.ach.sch.gr (HELO gothmog.gr) ([81.186.70.3]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 28 Jul 2005 23:10:37 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j6SNAZlY062385; Fri, 29 Jul 2005 02:10:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j6SNAZmr062384; Fri, 29 Jul 2005 02:10:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 29 Jul 2005 02:10:35 +0300 From: Giorgos Keramidas To: dpk Message-ID: <20050728231035.GA60181@gothmog.gr> References: <20050719145822.W23753@shared10.hosting.flyingcroc.net> <441x5tk3e9.fsf@be-well.ilk.org> <20050720064637.Q23753@shared10.hosting.flyingcroc.net> <20050721100327.GA16179@beatrix.daedalusnetworks.priv> <20050728154356.A79761@shared10.hosting.flyingcroc.net> <20050728225701.GB46755@gothmog.gr> <20050728155804.T79761@shared10.hosting.flyingcroc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050728155804.T79761@shared10.hosting.flyingcroc.net> Cc: freebsd-questions@freebsd.org Subject: Re: Large filesystem woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2005 23:10:42 -0000 On 2005-07-28 16:04, dpk wrote: > # df -k > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/da0s1a 35082074 1147642 31127868 4% / > devfs 1 1 0 100% /dev > procfs 4 4 0 100% /proc > # fdisk -u > fdisk: cannot open disk /dev/da0: No such file or directory > # ls -ald /dev/da0* > crw-r----- 1 root operator 4, 12 Jul 28 15:56 /dev/da0 > crw-r----- 1 root operator 4, 13 Jul 28 15:56 /dev/da0s1 > crw-r----- 1 root operator 4, 18 Jul 28 08:56 /dev/da0s1a > crw-r----- 1 root operator 4, 19 Jul 28 15:56 /dev/da0s1b > crw-r----- 1 root operator 4, 20 Jul 28 15:56 /dev/da0s1c > > truss indicates that fdisk may be getting the error from somewhere else: > > stat("/dev/da0",0xbfbfeb30) = 0 (0x0) > open("/dev/da0",0x2,00) ERR#1 'Operation not permitted' > open("/dev/da0",0x0,027757765630) = 6 (0x6) > open("/dev/da0s1",0x2,01001210100) ERR#1 'Operation not permitted' > open("/dev/da0s2",0x2,01001210100) ERR#2 'No such file or directory' > open("/dev/da0s3",0x2,01001210100) ERR#2 'No such file or directory' > open("/dev/da0s4",0x2,01001210100) ERR#2 'No such file or directory' > > Because it is using devfs, I'm not able to create these missing slices in > /dev. Most unfortunately, it appears it uses devfs in single user mode as > well, so I can't test the theory. Hmmm, in multiuser mode, your root filesystem is mounted as read-write and it resides in da0, so GEOM will forbid opening the disk device in read-write mode for editing the partition table. In single user mode, devfs is still used, but your root filesystem should be mounted read-only (unless you manually mount it as read-write), so fdisk -u should work.