public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Herbert Laubner <laubner@gmx.net>
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	[thread overview]
Message-ID: <200711111656.00602.laubner@gmx.net> (raw)
In-Reply-To: <d257c3560711110745x42470f70q456faa5a0289f1a0@mail.gmail.com>

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



      reply	other threads:[~2007-11-11 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-10 21:48 [gentoo-amd64] partimage won't run on AMD64 Herbert Laubner
2007-11-11  9:01 ` Beso
2007-11-11 11:47   ` Herbert Laubner
2007-11-11 13:31     ` Beso
2007-11-11 14:45       ` Herbert Laubner
2007-11-11 15:45         ` Beso
2007-11-11 15:56           ` Herbert Laubner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200711111656.00602.laubner@gmx.net \
    --to=laubner@gmx.net \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox