From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 14:09:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E178C106564A for ; Mon, 4 Oct 2010 14:09:04 +0000 (UTC) (envelope-from traveling08@cox.net) Received: from fed1rmmtao102.cox.net (fed1rmmtao102.cox.net [68.230.241.44]) by mx1.freebsd.org (Postfix) with ESMTP id B95BC8FC1F for ; Mon, 4 Oct 2010 14:09:03 +0000 (UTC) Received: from fed1rmimpo03.cox.net ([70.169.32.75]) by fed1rmmtao102.cox.net (InterMail vM.8.00.01.00 201-2244-105-20090324) with ESMTP id <20101004140905.UYHM23088.fed1rmmtao102.cox.net@fed1rmimpo03.cox.net>; Mon, 4 Oct 2010 10:09:05 -0400 Received: from asus64 ([72.220.91.10]) by fed1rmimpo03.cox.net with bizsmtp id Ee931f0050DQbeo04e937Q; Mon, 04 Oct 2010 10:09:03 -0400 X-VR-Score: -100.00 X-Authority-Analysis: v=1.1 cv=bpc8uEicDnqxZSslY2USwZnb9rPJRdwMtO2+C0QOm0U= c=1 sm=1 a=kj9zAlcOel0A:10 a=/nTdwXoUaSOHzX6NQnbKNQ==:17 a=kviXuzpPAAAA:8 a=sgH-TN3AmM6-hga6QAIA:9 a=L-2YbMx0InKEQBUeqaIA:7 a=i4ot2sVqeHLsibhcMjIwrJGA0twA:4 a=CjuIK1q_8ugA:10 a=jKRid43F7UoA:10 a=4vB-4DCPJfMA:10 a=q_8KJBpom3tZ85WU:21 a=xZvnPbXxvgIBUWWx:21 a=/nTdwXoUaSOHzX6NQnbKNQ==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Date: Mon, 4 Oct 2010 07:08:58 -0700 From: Robert To: Polytropon Message-ID: <20101004070858.3a101fa3@asus64> In-Reply-To: <20101004123413.8e7cf859.freebsd@edvax.de> References: <201010031319.o93DJaDE005892@mail.r-bonomi.com> <20101003100051.23e2cc77@asus64> <20101003194045.849d6419.freebsd@edvax.de> <20101003142935.3d751862@asus64> <20101004123413.8e7cf859.freebsd@edvax.de> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: OT: fdisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 14:09:05 -0000 On Mon, 4 Oct 2010 12:34:13 +0200 Polytropon wrote: > On Sun, 3 Oct 2010 14:29:35 -0700, Robert wrote: > > Thanks for the info. I successfully did the above and now I have a > > 58.6GB file named disk.img on a UFS disk. > > > > Umm, what should I do now. Sorry for dumb question number 37 this > > weekend but I am a bit confused. Can I do just the opposite to > > another NTFS drive and end up with all the data looking like it > > should? I.E. dd from the file to an NTFS disk. > > You can now use the file as if it were a disk. To "turn it into > a device", simply do > > % mkdir mnt > % sudo mdconfig -a -t vnode -u 10 -f disk.img > % mount -o ro /dev/md10 mnt/ > > This should give you the chance to extract files from it. You > can also use fdisk on the /dev/md10 file (or any other unit > number given by -u you want to use). > I have now a free 1TB drive for use. It is formatted as UFS. Should I remove formatting before I dd the 500GB drive to it? I tried the above process and here is what I have. [root@asus64] ~# mdconfig -a -t vnode -u 10 -f /250extra/disk.img [root@asus64] ~# mount -o ro /dev/md10 /mnt mount: /dev/md10 : Invalid argument [root@asus64] ~# mount_ntfs -o ro /dev/md10 /mnt mount_ntfs: /dev/md10: Input/output error [root@asus64] ~# ls -l /dev/md* crw-r----- 1 root operator 0, 129 Oct 4 06:43 /dev/md10 crw-r----- 1 root operator 0, 130 Oct 4 06:43 /dev/md10s1 crw------- 1 root wheel 0, 66 Oct 1 14:43 /dev/mdctl [root@asus64] ~# mount -o ro /dev/md10s1 /mnt [root@asus64] ~# ls -l /mnt total 0 [root@asus64] ~# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad12s1d 226G 59G 149G 28% /250extra /dev/md10s1 451G 32G 383G 8% /mnt ^^^^ ^^^ [root@asus64] ~# ls -la /mnt total 0 > Warren wrote: > It will give an exact copy of the first 250G, which also means it > will not resize the 500G filesystem into a working 250G version. Same questions as above. Can I dd to a 1TB? And what format on the drive? I apologize again if I am coming off as dense. I have not used "dd" before as I have always used dump for backups. Robert