From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Pk02k-0003gw-4a for garchives@archives.gentoo.org; Mon, 31 Jan 2011 20:08:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 162721C03A for ; Mon, 31 Jan 2011 20:08:08 +0000 (UTC) Received: from smtp.cs.nyu.edu (SMTP.CS.NYU.EDU [128.122.49.97]) by pigeon.gentoo.org (Postfix) with ESMTP id A24FFE09A2 for ; Mon, 31 Jan 2011 19:16:48 +0000 (UTC) Received: from ajglap.localdomain (ool-4a59b202.dyn.optonline.net [74.89.178.2]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.14.4) with ESMTP id p0VJGlue023399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 31 Jan 2011 14:16:48 -0500 (EST) Received: by ajglap.localdomain (Postfix, from userid 1502) id 9921F701E4; Mon, 31 Jan 2011 14:16:47 -0500 (EST) From: Allan Gottlieb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] dd'ing small drive to large one References: <201101311834.24854.wonko@wonkology.org> <201101311936.33827.wonko@wonkology.org> Date: Mon, 31 Jan 2011 14:16:47 -0500 In-Reply-To: <201101311936.33827.wonko@wonkology.org> (Alex Schuster's message of "Mon, 31 Jan 2011 19:36:33 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archives-Salt: X-Archives-Hash: cb5fda022ebc5f24d08d689b98978ab8 On Mon, Jan 31 2011, Alex Schuster wrote: > Allan Gottlieb writes: > >> On Mon, Jan 31 2011, Alex Schuster wrote: > >> > There is a PC with a 160 GB SATA drive, and I want to replace it with >> > one of about 1 TB in size. Would this work? >> > >> > - attach 2nd drive via SATA port or USB->SATA convertor >> > - boot from rescue CD >> > - dd if=/dev/sda of=/dev/sdb >> > - remove sda, attach sdb to where sda was >> > - reboot >> > - add other partitions or enlarge the last one >> > >> > I do not expect problems, but I'm not entirely sure. Maybe the >> > different drive geometry would have an effect on file system or at >> > least to the Grub boot loader? >> >> Won't dd'ing the whole disk will make the 1TB disk a 160GB disk. > > Not really. Yes, the current partitioning scheme will not make more than the > 160G available. But this can be changed easily later, all I need to do is > call fdisk and add partitions. Or resize the last one. Sure, but the other partitions will stay the same size. If you are using lvm then that is no problem, if not I would think it is constraining. allan