From owner-freebsd-mobile Fri Sep 28 8:53:39 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from CRWdog.demon.co.uk (t1-22.realtime.net [205.238.131.22]) by hub.freebsd.org (Postfix) with SMTP id 6E10C37B408 for ; Fri, 28 Sep 2001 08:53:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by CRWdog.demon.co.uk (Postfix) with ESMTP id 8B57E3E2A; Fri, 28 Sep 2001 10:53:34 -0500 (CDT) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: kjerste soderberg Cc: Marc Rassbach , freebsd-mobile@FreeBSD.ORG, andy@CRWdog.demon.co.uk Subject: Re: cloning laptop drives In-Reply-To: Message from kjerste soderberg of "Thu, 27 Sep 2001 20:00:09 PDT." <20010928030009.22753.qmail@web9703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 28 Sep 2001 10:53:34 -0500 From: Andy Sparrow Message-Id: <20010928155334.8B57E3E2A@CRWdog.demon.co.uk> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You can happily clone off a disk with mounted filesystems, and write to another drive. However, note that this isn't ideal - you'll at least need to fsck the target filesystem afterward (e.g. on booting from it), and you might just be unlucky (e.g. something might be hosed). Far better to have it unmounted when you clone from the source - then you should get a good copy. As others have noted, you need to use a vastly larger block size for better performance. I was getting good results with bs=1024k (e.g. 1Mb) for cloning 18Gb SCSI root drives. Admittedly completely different hardware, YMMV. The default block size would have taken forever, BTW. Maybe the best scenario would be to remove both drives, place them in another machine (e.g. a desktop with a couple of 2.5"->3.5" adaptors), boot from yet another controller channel/drive and do the transfer that way. Lot of messing about - but possibly worth it if you don't trust the laptop hardware for some reason? Most laptops that support more than one disk already put them as masters on different controllers (least, the ones I've seen do), so why don't you boot from the FreeBSD CD/install floppies, and do the cloning from Rescue mode? You wouldn't need to remove/mess about with the hardware, all the filesystems on your source drive are completely unmounted and thus quiescent. This is the way I'd probably go. I would also note that I've had 2.5" drives that seem to run fine (and so does the OS on them), yet they won't clone satisfactorily. However, these were older drives (300mb!!) and were probably genuinely suspect - modern stuff should behave rather better, I expect. If your stuff is older, try listening to make sure that the drive isn't recalibrating if it is taking too long, and check for driver/disk timeout or error messages. Good luck! Cheers, AS > SO you mean move to yet another machine and say boot > off of say scsi da1 ? then do as root; > dd if=/dev/ad1 of=/dev/ad2 bs=1m > > would work? the bs I'm assuming is 1 meg size block > taken from previous answer to my post? > > Again I thank ALL respondents ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message