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 1NCizz-0005s2-Rv for garchives@archives.gentoo.org; Tue, 24 Nov 2009 00:11:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79E04E0806 for ; Tue, 24 Nov 2009 00:11:15 +0000 (UTC) Received: from mail-gx0-f228.google.com (mail-gx0-f228.google.com [209.85.217.228]) by pigeon.gentoo.org (Postfix) with ESMTP id 1EFF3E072D for ; Mon, 23 Nov 2009 22:51:34 +0000 (UTC) Received: by gxk28 with SMTP id 28so5393789gxk.9 for ; Mon, 23 Nov 2009 14:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=SiFl5JEAwefeOeRMGNquY+mzzn/V03nRVJ4DQAR6JHE=; b=BwsVVU7PSfWdgRcs3UwRLiOFdfsy/l79CvngT/LDxwH213kPTx7yvwLg7qNSO0Z6pT KNU6gupscTSTaYdL5dUI0g9hsenclzrTXeZHDh2yrFYFb19jYlE1vIAwXm7b+6zCjD0n fgKiZk9iI9FsZE+ole/3Ti67vepaDTtSoH75I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=PtR/lxlPa0fyFEoxz6zgfX3m7eLQ2Bi5LSkbxohjmaonww12gUgs2kqmQrU7Tuj4SZ aYDXC48+O3AlxgI05qLf9nsn+fex7OrG1SGkylLczvp7hSNyGyM99lZ+5hDZCTHlqn9J /jc/qihLZgQIxr9EWRIT3UcIUOm78IUb8Svwk= Received: by 10.150.101.5 with SMTP id y5mr9764481ybb.85.1259016689192; Mon, 23 Nov 2009 14:51:29 -0800 (PST) Received: from ?192.168.1.1? (adsl-0-119-104.jan.bellsouth.net [65.0.119.104]) by mx.google.com with ESMTPS id 4sm1640454ywi.27.2009.11.23.14.51.27 (version=SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 14:51:28 -0800 (PST) Message-ID: <4B0B11EE.6030907@gmail.com> Date: Mon, 23 Nov 2009 16:51:26 -0600 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20091110 SeaMonkey/1.1.18 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Moving root filesystem to a new partition References: <7bef1f890911231235q4bae0adfgcb6c881cf97e1aef@mail.gmail.com> In-Reply-To: <7bef1f890911231235q4bae0adfgcb6c881cf97e1aef@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 14062211-6416-4cbf-a829-62af2bb94ca6 X-Archives-Hash: fa6e14467c1ffbb84e27ce5af64e754a Alan E. Davis wrote: > Can someone tell me what steps are necessary to move the / filesystem > to a new partition? I recall someone helping me with this before, but > cannot find the email. The oldest of three drives on my system had my > / partition, /dev/sdc1. One day recently, that partition became > inaccessable. After quickly installing Ubuntu on a different drive, > that root partition eventually showed up again. > > So I've been able to boot Gentoo again off the separate /boot > partition on /dev/sda1. I need to move that / partition. I have > several other partitions mounted off this one, mainly as /usr and > maybe /usr/local/, and some storage partitions mounted to my home > directory. > > I copied the root (/) partition with the new partition at /dev/sdb5 > mounted as /newroot, using > # cp -ax / /newroot > > I checked that /proc, /dev, and /sys are there, and empty. I recall > there are some other steps necessary. I changed /etc/fstab, and the > grub2 grub.cfg from ubuntu, the entry for this kernel. The boot > stalls at a certain point. > > May I ask what steps are necessary to do this? > > Thank you, > > Alan Davis I have done this in the past. I usually boot the CD, make mount points for old and new, then mount the old and new that I want to copy. Then I do a cp -av /path/to/old /path/to/new/ and let it copy. This can take quite a bit of time tho. It seems those little bitty files take the longest. Maybe omitting the -v option would help on that? Once you get it copied over, edit your fstab file as needed on the new side and install the bootloader as well. After that, it usually just works. Dale :-) :-) P. S. Sorry for not including some fancy tarball stuff. ;-)