From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 01:06:16 2003 Return-Path: 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 6E5DD16A4B3 for ; Thu, 2 Oct 2003 01:06:16 -0700 (PDT) Received: from mail.cybertinker.com (mail.cybertinker.com [69.9.134.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C92B43FBD for ; Thu, 2 Oct 2003 01:06:15 -0700 (PDT) (envelope-from jjf@mail.cybertinker.com) Received: from mail.cybertinker.com (localhost.localdomain [127.0.0.1]) by mail.cybertinker.com (8.12.10/8.12.10) with ESMTP id h9286HZQ030569 for ; Thu, 2 Oct 2003 01:06:17 -0700 Received: (from jjf@localhost) by mail.cybertinker.com (8.12.10/8.12.9/Submit) id h9286HQp030568 for freebsd-questions@freebsd.org; Thu, 2 Oct 2003 01:06:17 -0700 Date: Thu, 2 Oct 2003 01:06:17 -0700 From: jjf@mail.cybertinker.com To: freebsd-questions@freebsd.org Message-ID: <20031002080617.GA30446@mail.cybertinker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Mount error: "Specified device does not match mounted device" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 08:06:16 -0000 Hello to all. Sorry if this is a little terse, but a production machine is down and I'm very tired. Our mailserver (running 4.5-STABLE) died today, due to massive read errros from /dev/sd0s1a -- the root partition. I figured we'd just replace the primary drive and all would be well. I put the spare drive into a 4.9 box -- all I had available -- and created my slice and partitions. I did not match the parition sizes exactly with previous drive, but in each case they were larger, so I knew I'd have plenty of space. So having made my slice and partitioned it, I pulled my backups off of tape, transferred them to the 4.9 machine, and used 'tar xpzf' to write them to the shiny new partitions. All seemed well. We put the new drive into the dead server, and fire it up. Boot was halted due to inability to load mount a vinum device. But set that vinum issue aside for now. '/' was mounted read-only, and I attempted to force it into read-write with 'mount -f /', which has always worked for me. But not this time. I got: mount; /dev/ad0s1a on /: specified device does not match mounted device. First thing I did was to verify that I had the proper entry for '/' in /etc/fstab, and indeed I did. I was however, able to successfully mount the other partitions I'd created on the replacement disk. Note: this drive was ad0 on the mail server, but was ad1 on the 4.9 machine. Could this be the cause of the problem? Do the drives somehow cache their most recent system designation? I was also wondering if maybe the problem is related to disk partitioning on a 4.9 machine and sticking the disk into a 4.5 machine. Additionally, I should note that 'dmesg' is behaving wierdly on the machine -- it emits rows of backslashes, a different number each time. I have seen in the archives other people with this general problem, but it seems that in those cases the problem was incorrect entires in /etc/fstab, so we're very confused here. Any advice appreciated -John -- +---------------------------------------------------------------------------+ | John Fox | System Administrator | InfoStructure | +---------------------------------------------------------------------------+ | Gideon: I thought you said don't hold a grudge. | | Galen: I don't. I have no surviving enemies...at all. | | -- "Crusdade", _Racing the Night_ | +---------------------------------------------------------------------------+