From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IrFCJ-0006yS-Ba for garchives@archives.gentoo.org; Sun, 11 Nov 2007 15:58:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lABFuAQH019827; Sun, 11 Nov 2007 15:56:10 GMT Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lABFuALb019822 for ; Sun, 11 Nov 2007 15:56:10 GMT Received: (qmail invoked by alias); 11 Nov 2007 15:56:10 -0000 Received: from erft-4db3a8c9.pool.einsundeins.de (EHLO [192.168.0.20]) [77.179.168.201] by mail.gmx.net (mp045) with SMTP; 11 Nov 2007 16:56:10 +0100 X-Authenticated: #15418321 X-Provags-ID: V01U2FsdGVkX1+vazsjQTCvGz1zeKxK/lfaTeYHFtPgt5y0i/i7d7 QO5piYFCmusLsp From: Herbert Laubner To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] partimage won't run on AMD64 Date: Sun, 11 Nov 2007 16:56:00 +0100 User-Agent: KMail/1.9.7 References: <200711102248.45617.laubner@gmx.net> <200711111545.32102.laubner@gmx.net> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711111656.00602.laubner@gmx.net> X-Y-GMX-Trusted: 0 X-Archives-Salt: 07439845-7c4b-416e-8442-92bd1cf41b0e X-Archives-Hash: acd6bbd09dfc64e82249042e0a27e5c6 Am Sonntag, 11. November 2007 16:45:31 schrieb Beso: > this way copies everything that is needed to make a system run. i'll make > an example so that you can understand better: > now you have > /dev/hda1 as / > /dev/hda2 as /boot > /dev/hda3 as swap > /dev/hda4 as /usr > /dev/sda1 as /mnt/disk > > when you make cp -a with the system in run (all the partitions mounted > right) you'll get a single partition in /mnt/disk that contains /, /boot > and /usr. > later on you aren't sattisfied with the partition table and decide to move > to the following: > /dev/hda1 /boot > /dev/hda4 extended > /dev/hda5 / > /dev/hda6 /usr > /dev/hda7 /var > /dev/hda8 /tmp > /dev/hda9 /opt > /dev/hda10 swap > /dev/hda11 /home > > all that you'll have to do is boot into some livecd and mount the drives in > some directories (we'll assume in the /mnt) and then mount the external > disk into /mnt/sda. > now all that you have to do is do: > cp -a /mnt/sda/var/* /mnt/var/ > cp -a /mnt/sda/usr/* /mnt/usr/ > . > . > . > cp -a the dirs in their partitions and /etc /mnt /lib /sbin /bin /root /dev > /include /media /mnt /share /sys on the new root partition (these need to > be on the root partition otherwise you cannot boot). > after recopying you go to /etc/fstab and point the new root and other > partitions to the new location following the fstab example inside. > then you only have to reinstall the bootloader. unmount all the partitions, > remount the new root under /mnt/root, remount the new /boot into > /mnt/root/boot and the others partitions in the /mnt/root/[partition] and > the chroot into the new environment with > chroot /mnt/root /bin/bash > do a env-update && source /etc/profile > then type grub > you'll get the grub command line > write root (hd0,0) > then setup (hd0) > quit > then exit, unmount the partitions and reboot > you'll be able to reboot into the old linux with the new partitioning. > this was an example on how the cp -a helps you do a backup of the things > that you have on disk and on how you can use it if you want to modify your > partitioning. obviously, you can also just do a backup and then copy the > stuff on a partition that doesn't boot anymore. > if you change your partition table but you mantain the same hdd and don't > change /boot partition then you don't need to reinstall grub, but only to > repoint your /etc/fstab. > this type of work is better than partimage's one since partimage can only > backup a partition and recopy in the same way it was and you can only do it > > >from partimage, while the cp -a stuff works independently from the linux > > version you're using and on whatever pc you have, since cp is a base linux > command. > Thanks a lot!! -- gentoo-amd64@gentoo.org mailing list