Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 2006 15:58:11 GMT
From:      Gerry Herrera <gherrera@cnetco.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/98383: Full Restore using Tape Backup - missing mt command
Message-ID:  <200606021558.k52FwBEc043582@www.freebsd.org>
Resent-Message-ID: <200606021600.k52G0SKK046070@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606021558.k52FwBEc043582>