From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 14:52:28 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 DB6521065673 for ; Mon, 4 Oct 2010 14:52:27 +0000 (UTC) (envelope-from traveling08@cox.net) Received: from fed1rmmtao105.cox.net (fed1rmmtao105.cox.net [68.230.241.41]) by mx1.freebsd.org (Postfix) with ESMTP id B66BE8FC08 for ; Mon, 4 Oct 2010 14:52:27 +0000 (UTC) Received: from fed1rmimpo03.cox.net ([70.169.32.75]) by fed1rmmtao105.cox.net (InterMail vM.8.00.01.00 201-2244-105-20090324) with ESMTP id <20101004145227.XCBG16314.fed1rmmtao105.cox.net@fed1rmimpo03.cox.net>; Mon, 4 Oct 2010 10:52:27 -0400 Received: from asus64 ([72.220.91.10]) by fed1rmimpo03.cox.net with bizsmtp id EesS1f00E0DQbeo04esSZe; Mon, 04 Oct 2010 10:52:26 -0400 X-VR-Score: -120.00 X-Authority-Analysis: v=1.1 cv=bpc8uEicDnqxZSslY2USwZnb9rPJRdwMtO2+C0QOm0U= c=1 sm=1 a=kj9zAlcOel0A:10 a=/nTdwXoUaSOHzX6NQnbKNQ==:17 a=kviXuzpPAAAA:8 a=uElzhxuOOYHT6ZOoUQoA:9 a=UUq94hMw1RjBzfR1b7YA:7 a=sw7FbP-eL1NTtnVe4P2L9oBwVuAA:4 a=CjuIK1q_8ugA:10 a=jKRid43F7UoA:10 a=4vB-4DCPJfMA:10 a=/nTdwXoUaSOHzX6NQnbKNQ==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Date: Mon, 4 Oct 2010 07:52:21 -0700 From: Robert To: Polytropon Message-ID: <20101004075221.7709740c@asus64> In-Reply-To: <20101004163225.34099bb8.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> <20101004070858.3a101fa3@asus64> <20101004163225.34099bb8.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:52:28 -0000 On Mon, 4 Oct 2010 16:32:25 +0200 Polytropon wrote: > On Mon, 4 Oct 2010 07:08:58 -0700, Robert wrote: > > 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? > > Not needed, as you're going to use it under the control of FreeBSD. > After formatting and mounting it, let's say as /mnt, use dd (or > ddrescue) to first get an 1:1 copy of the source disk. > It is being performed even as we "speak". > > > > 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 > > Of course. :-) > > > > > [root@asus64] ~# mount_ntfs -o ro /dev/md10 /mnt > > mount_ntfs: /dev/md10: Input/output error > > This indicates that the NTFS seems to be damaged and prevents > mount_ntfs from mounting it. Start with "baby steps": Is there > a valid partition table? > > # fdisk /dev/md10 [root@asus64] ~# fdisk /dev/md10 ******* Working on device /dev/md10 ******* parameters extracted from in-core disklabel are: cylinders=7648 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=7648 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) start 63, size 976773105 (476939 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: > > You should now get a partition table. > > Did you create disk.img by dd'ing da0 or da0s1? This may matter. da1...but not the entire disk. > > > > > [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 > > Good. At least a bit. Is this the way to mount it, not _ntfs? > > > > > [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 > > Hmmm... you dd'ed the WHOLE disk to disk.img? Does the size look > reasonable? No. I was trying to just get the data to a 250GB drive. Now I am doing the 500GB to a 1TB drive and will follow up when complete. Robert