From nobody@FreeBSD.org  Fri Jun  2 15:58:11 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EC05E16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <gherrera@cnetco.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Full Restore using Tape Backup - missing mt command
X-Send-Pr-Version: www-2.3

>Number:         98383
>Category:       misc
>Synopsis:       [request] include the mt command in the rescue CD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 02 16:00:28 GMT 2006
>Closed-Date:    Tue Jul 10 03:28:29 UTC 2012
>Last-Modified:  Tue Jul 10 03:28:29 UTC 2012
>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 its 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 drives 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:
State-Changed-From-To: open->suspended 
State-Changed-By: linimon 
State-Changed-When: Sat Jun 3 19:09:02 UTC 2006 
State-Changed-Why:  
Mark suspended awaiting an interested person coming up with a patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98383 
State-Changed-From-To: suspended->analyzed 
State-Changed-By: yar 
State-Changed-When: Tue Sep 4 13:40:06 UTC 2007 
State-Changed-Why:  
I think mt should be added to /rescue as it's small and really 
necessary when one has his backups on a magtape.  As for the 
size: 

-r-xr-xr-x  121 root  wheel  3715096  1  10:22 /rescue.old/rescue 
-r-xr-xr-x  122 root  wheel  3723564  4  17:39 /rescue/rescue 



Responsible-Changed-From-To: freebsd-bugs->yar 
Responsible-Changed-By: yar 
Responsible-Changed-When: Tue Sep 4 13:40:06 UTC 2007 
Responsible-Changed-Why:  
I'm going to add some basic tools to /rescue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98383 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/98383: commit references a PR
Date: Sat, 27 Oct 2007 18:19:04 +0000 (UTC)

 yar         2007-10-27 18:18:58 UTC
 
   FreeBSD src repository
 
   Modified files:
     rescue/rescue        Makefile 
   Log:
   Add some essential tools to rescue(8) in order to make it
   a versatile emergency tool:
   
   o sed(1) as a multi-purpose text filter -- can do grep's job and much more.
   o head(1), tail(1), and tee(1) as idiomatic text filters.
   o mt(1) to control tape drives (PR misc/98383).
   o chown(8) aka chgrp(8) to complement the ch* subset.
   o pkill(1) aka pgrep(1) to control running processes easily and thus to be
     able to recover from a serious problem or a fatal typo in an otherwise live
     system w/o a reboot.  (It also deserves adding to rescue(8) for its having
     triggered a latent bug in crunchgen(1), but we had better add a regression
     test for that. :-)
   
   The resulting change in rescue(8) size has the following order of magnitude
   on i386: 3787656 - 3727872 = 59784, i.e. just a tad.
   
   Discussed on:   -hackers (I seem to have wearied all opponents :-)
   PR:             misc/98383
   
   Revision  Changes    Path
   1.57      +10 -1     src/rescue/rescue/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: analyzed->patched 
State-Changed-By: yar 
State-Changed-When: Sat Oct 27 18:21:03 UTC 2007 
State-Changed-Why:  
mt(1) added to rescue(8) in CURRENT, MFC is due.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98383 
State-Changed-From-To: patched->closed 
State-Changed-By: eadler 
State-Changed-When: Tue Jul 10 03:28:28 UTC 2012 
State-Changed-Why:  
MFCed a long time ago 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98383 
>Unformatted:
