From owner-freebsd-questions Wed Feb 21 14:53:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gateway.aht.com (gateway.aht.com [12.9.165.5]) by hub.freebsd.org (Postfix) with ESMTP id BB89C37B491 for ; Wed, 21 Feb 2001 14:53:06 -0800 (PST) (envelope-from randy.lim@aht.com) Received: from aht.com (IDENT:rblim@[100.0.120.99]) by gateway.aht.com (8.9.3/8.8.7) with ESMTP id OAA22491; Wed, 21 Feb 2001 14:51:51 -0800 Message-ID: <3A93D5AD.5BA6AE19@aht.com> Date: Wed, 21 Feb 2001 14:50:21 +0000 From: "Randy B. Lim" Organization: FW X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: "Scott B. Gale" , questions@FreeBSD.ORG Cc: randy.lim@aht.com Subject: Re: How to change the tape size in the dump command References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The following is what I got with the dump command, It seemed dump detect the end of tape(But I just use # mt -f /dev/ht0 rewind to set the tape in the beginning position. [root@fwdoc rblim]# /sbin/dump -0u -B 30000000 -f /dev/ht0 /dev/da0s1a1 DUMP: Date of this level 0 dump: Wed Feb 21 15:07:45 2001 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/hda1 (/) to /dev/ht0 DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 4384518 tape blocks on 0.15 tape(s). DUMP: End of tape detected DUMP: Closing /dev/ht0 DUMP: Change Volumes: Mount volume #2 DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") The information about the tape is [root@fwdoc rblim]# dmesg | grep ht0 ide-tape: hdd <-> ht0: OnStream DI-30 rev 1.05 ide-tape: hdd <-> ht0: 990KBps, 64*32kB buffer, 10208kB pipeline, 60ms tDSC Any ideas? "Scott B. Gale" wrote: > On Tue, 20 Feb 2001, Randy B. Lim wrote: > > > Hi, > > > > I got a 30 GB IDE tape (/dev/nht0) and I want to dump 4GB /root partition to > > the tape. How to use the dump command to let the 4GB dumped to one single > > tape? > > If the -a "auto-size" option isn't working to get dump to size the tape > properly you can use the -B option to specify how many 1k blocks the tape > will hold. For instance, to do a level zero backup of my root partition > (with device name /dev/da0s1a) onto a 30 GB tape in device /dev/nht0 I > would use the following command: > > dump -0u -B 30000000 -f /dev/nht0 /dev/da0s1a > > > I've been told it is generally better practice to use the device name to > specify the root partition rather than "/". You can get the device name > by using the df command. > > > > > Best Regards, > > > > -Randy > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > Hope this helps! > > Scott B. Gale > Dana Point Communications To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message