From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 2 16:00:31 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADFCB16A427 for ; Fri, 2 Jun 2006 16:00:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B51543D5D for ; Fri, 2 Jun 2006 16:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k52G0Saw046074 for ; Fri, 2 Jun 2006 16:00:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k52G0SKK046070; Fri, 2 Jun 2006 16:00:28 GMT (envelope-from gnats) Resent-Date: Fri, 2 Jun 2006 16:00:28 GMT Resent-Message-Id: <200606021600.k52G0SKK046070@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gerry Herrera Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC05E16A41F for ; Fri, 2 Jun 2006 15:58:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B77D243D46 for ; Fri, 2 Jun 2006 15:58:11 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k52FwBHh043583 for ; Fri, 2 Jun 2006 15:58:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k52FwBEc043582; Fri, 2 Jun 2006 15:58:11 GMT (envelope-from nobody) Message-Id: <200606021558.k52FwBEc043582@www.freebsd.org> Date: Fri, 2 Jun 2006 15:58:11 GMT From: Gerry Herrera To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/98383: Full Restore using Tape Backup - missing mt command X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 16:00:31 -0000 >Number: 98383 >Category: misc >Synopsis: Full Restore using Tape Backup - missing mt command >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 02 16:00:28 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gerry Herrera >Release: 6.1; 6.0; 5.4; 5.3 >Organization: CNET Co. >Environment: FreeBSD server3.cnetco.com 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Mon May 1 16:17:46 MDT 2006 admin@server3.cnetco.com:/usr/src/sys/i386/compile/SMP i386 >Description: When trying to do a full system restore using the install CD and mag tape media, the mt command is missing if you have to chroot at the temporary mount point. If you do a standard or custom partition sizes install, and use a tape backup in the event of hard drive failure. The usr folder when installed uses absolute paths during it’s initial install, and the mt command is only in the /usr/bin folder. >How-To-Repeat: Install FreeBSD OS and make a tape backup (using dump; three segments /, /var. /usr) - fdisk the drive. Then restore the Tape Backup using the Label & Fixit Options on the install CD. The root and var partition will restore under the temporary mount points without any problems. But, the usr partition does not because of the absolute paths used, in order to restore you have to chroot to the /mnt folder, but when you do that, the mt command is not available anywhere. Unless you copy the mt command to the /mnt/rescue folder prior to the chroot command, you can not position or manipulate the tape to the correct segment. >Fix: Include the mt command in the rescue folder of the CD, when the initial install occurs the mt command will be copied into the hard drive’s rescue folder, therefore when the root partition is restored prior to the usr partition the mt command would be available in a chroot situation. This would simplify a restore procedure using a mag tape and the install CD. >Release-Note: >Audit-Trail: >Unformatted: