public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] partimage won't run on AMD64
@ 2007-11-10 21:48 Herbert Laubner
  2007-11-11  9:01 ` Beso
  0 siblings, 1 reply; 7+ messages in thread
From: Herbert Laubner @ 2007-11-10 21:48 UTC (permalink / raw
  To: gentoo-amd64

I tried to run partimage on my amd64 installation. Did not want, tells me, I 
used wrong gcc to compile. 

Booting Knoppix 5.2 Live cd and partimage runs like a champ. 

What do I miss?

Regards
Herb
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-amd64] partimage won't run on AMD64
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Beso @ 2007-11-11  9:01 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

it won't work on amd64. this is one program that cannot be run with amd64
arch. you have to use it on a livecd with 32bit arch. here's one here:
http://www.sysresccd.org/Main_Page
download and burn the cd then boot with it and you can use partimage.

2007/11/10, Herbert Laubner <laubner@gmx.net>:
>
> I tried to run partimage on my amd64 installation. Did not want, tells me,
> I
> used wrong gcc to compile.
>
> Booting Knoppix 5.2 Live cd and partimage runs like a champ.
>
> What do I miss?
>
> Regards
> Herb
> --
> gentoo-amd64@gentoo.org mailing list
>
>


-- 
dott. ing. beso

[-- Attachment #2: Type: text/html, Size: 961 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-amd64] partimage won't run on AMD64
  2007-11-11  9:01 ` Beso
@ 2007-11-11 11:47   ` Herbert Laubner
  2007-11-11 13:31     ` Beso
  0 siblings, 1 reply; 7+ messages in thread
From: Herbert Laubner @ 2007-11-11 11:47 UTC (permalink / raw
  To: gentoo-amd64

Am Sonntag, 11. November 2007 10:01:07 schrieb Beso:
> it won't work on amd64. this is one program that cannot be run with amd64
> arch. you have to use it on a livecd with 32bit arch. here's one here:
> http://www.sysresccd.org/Main_Page
> download and burn the cd then boot with it and you can use partimage.
>

I used the Knoppix 5.2 Live Cd, it is just no very conviniet to do it that 
way. 
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-amd64] partimage won't run on AMD64
  2007-11-11 11:47   ` Herbert Laubner
@ 2007-11-11 13:31     ` Beso
  2007-11-11 14:45       ` Herbert Laubner
  0 siblings, 1 reply; 7+ messages in thread
From: Beso @ 2007-11-11 13:31 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]

there's no other way to do it for what i know since partimage won't run on
64bits.
there's another option:

if you need a / backup take a disk (also an usb one) go to a shell and then
do a cp -a / /mnt/disk (assuming that the disk is mounted into /mnt/disk)
and after some time which depends on the stuff installed you'll have a
mirror version of / on the other disk. if you want it to be compressed, then
do a tar on the mounted disk and you'll have a compressed image of your /
partition.
then when you want to to copy it from the backup disk to the running disk do
again: cp -a and you'll have the / running as it was when you made the
backup. if you experience problems with running x then do
chmod 777 /home -R && chmod 777 /tmp -r && chmod 777 /var/tmp/kdecache-[your
username] and then x would run again. the problem is that sometimes when
doing the cp -a you can experience problems with the permissions on these
directories when not using root.

2007/11/11, Herbert Laubner <laubner@gmx.net>:
>
> Am Sonntag, 11. November 2007 10:01:07 schrieb Beso:
> > it won't work on amd64. this is one program that cannot be run with
> amd64
> > arch. you have to use it on a livecd with 32bit arch. here's one here:
> > http://www.sysresccd.org/Main_Page
> > download and burn the cd then boot with it and you can use partimage.
> >
>
> I used the Knoppix 5.2 Live Cd, it is just no very conviniet to do it that
> way.
> --
> gentoo-amd64@gentoo.org mailing list
>
>


-- 
dott. ing. beso

[-- Attachment #2: Type: text/html, Size: 1933 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-amd64] partimage won't run on AMD64
  2007-11-11 13:31     ` Beso
@ 2007-11-11 14:45       ` Herbert Laubner
  2007-11-11 15:45         ` Beso
  0 siblings, 1 reply; 7+ messages in thread
From: Herbert Laubner @ 2007-11-11 14:45 UTC (permalink / raw
  To: gentoo-amd64

Am Sonntag, 11. November 2007 14:31:46 schrieb Beso:
> there's no other way to do it for what i know since partimage won't run on
> 64bits.
> there's another option:
>
> if you need a / backup take a disk (also an usb one) go to a shell and then
> do a cp -a / /mnt/disk (assuming that the disk is mounted into /mnt/disk)
> and after some time which depends on the stuff installed you'll have a
> mirror version of / on the other disk. if you want it to be compressed,
> then do a tar on the mounted disk and you'll have a compressed image of
> your / partition.
> then when you want to to copy it from the backup disk to the running disk
> do again: cp -a and you'll have the / running as it was when you made the
> backup. if you experience problems with running x then do
> chmod 777 /home -R && chmod 777 /tmp -r && chmod 777
> /var/tmp/kdecache-[your username] and then x would run again. the problem
> is that sometimes when doing the cp -a you can experience problems with the
> permissions on these directories when not using root.
>
Will I get this way also the mbr and the file alloction table correct copied?
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-amd64] partimage won't run on AMD64
  2007-11-11 14:45       ` Herbert Laubner
@ 2007-11-11 15:45         ` Beso
  2007-11-11 15:56           ` Herbert Laubner
  0 siblings, 1 reply; 7+ messages in thread
From: Beso @ 2007-11-11 15:45 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 3800 bytes --]

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.


2007/11/11, Herbert Laubner <laubner@gmx.net>:
>
> Am Sonntag, 11. November 2007 14:31:46 schrieb Beso:
> > there's no other way to do it for what i know since partimage won't run
> on
> > 64bits.
> > there's another option:
> >
> > if you need a / backup take a disk (also an usb one) go to a shell and
> then
> > do a cp -a / /mnt/disk (assuming that the disk is mounted into
> /mnt/disk)
> > and after some time which depends on the stuff installed you'll have a
> > mirror version of / on the other disk. if you want it to be compressed,
> > then do a tar on the mounted disk and you'll have a compressed image of
> > your / partition.
> > then when you want to to copy it from the backup disk to the running
> disk
> > do again: cp -a and you'll have the / running as it was when you made
> the
> > backup. if you experience problems with running x then do
> > chmod 777 /home -R && chmod 777 /tmp -r && chmod 777
> > /var/tmp/kdecache-[your username] and then x would run again. the
> problem
> > is that sometimes when doing the cp -a you can experience problems with
> the
> > permissions on these directories when not using root.
> >
> Will I get this way also the mbr and the file alloction table correct
> copied?
> --
> gentoo-amd64@gentoo.org mailing list
>
>


-- 
dott. ing. beso

[-- Attachment #2: Type: text/html, Size: 4410 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-amd64] partimage won't run on AMD64
  2007-11-11 15:45         ` Beso
@ 2007-11-11 15:56           ` Herbert Laubner
  0 siblings, 0 replies; 7+ messages in thread
From: Herbert Laubner @ 2007-11-11 15:56 UTC (permalink / raw
  To: gentoo-amd64

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-11 15:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox