From owner-freebsd-questions@FreeBSD.ORG Mon Oct 3 13:17:37 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 B8EFF16A41F for ; Mon, 3 Oct 2005 13:17:37 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6365543D45 for ; Mon, 3 Oct 2005 13:17:37 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2) with ESMTP id j93DHbBn025013; Mon, 3 Oct 2005 09:17:37 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2/Submit) id j93DHb2q025012; Mon, 3 Oct 2005 09:17:37 -0400 (EDT) From: Jerry McAllister Message-Id: <200510031317.j93DHb2q025012@clunix.cl.msu.edu> To: paul@pclark.me.uk (Paul Clark) Date: Mon, 3 Oct 2005 09:17:37 -0400 (EDT) In-Reply-To: <20051003092237.A444CD4916@mra02.ch.as12513.net> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: fdisk: cannot open disk /dev/ad0: No such file or directory 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: Mon, 03 Oct 2005 13:17:37 -0000 > > Hi all, > > I get this when I type > > /home/paul# fdisk -u > > fdisk: cannot open disk /dev/ad0: No such file or directory > > > > ad0 is there because it's just booted off it. > > I have also tried this from a live CD with no active mounts. > You cannot fdisk the disk you are booted from or a mounted disk other than just to read the information - but no updating. If you need to modify the primary label of your boot disk, then you will need to boot from something else, such as a 'fixit' CD. In 4.xx and before, the fixit was the second CD. In 5.xxx (and I presume after), the fixit is the first CD. > This person had exactly the same problem: > > http://www.linuxquestions.org/questions/showthread.php?s= > > &threadid=357343 > > I too had used dd to transfer from a smaller HD. > Not a good idea. First, build your new (larger) disk properly with fdisk/disklabel/bsdlabel and newfs first (or you can use /stand/sysinstall - see 'man 8 sysinstall). Then use dump(8)/restore(8) to transfer the file systems. ////jerry > > Additional info: > > > > /home/paul# df -h > > Filesystem Size Used Avail Capacity Mounted on > > /dev/ad0s1a 193M 92M 86M 52% / > > devfs 1.0K 1.0K 0B 100% /dev > > /dev/ad0s1d 242M 432K 222M 0% /tmp > > /dev/ad0s1f 4.8G 3.0G 1.4G 68% /usr > > /dev/ad0s1e 242M 163M 59M 73% /var > > devfs 1.0K 1.0K 0B 100% /var/named/dev > > > > > > > > > > Thanks. > > > > Paul > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >