Differences between revisions 10 and 11
Revision 10 as of 2005-01-02 14:21:16
Size: 1143
Editor: anonymous
Comment:
Revision 11 as of 2007-08-21 07:25:02
Size: 1208
Editor: FranklinPiat
Comment: using alien is not recommended. removed.
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Alien is a really cool tool for converting packages between different formats. It can create fairly a good DebianPackage out of an rpm. There are options you will need to use to ensure the (pre||post)inst scripts are included in the Debian package, because it defaults to turning them off for security. Off the top of my head, use 'alien -c -N <rpm-package>', but check the man page.
Line 5: Line 3:
= Miscellaneous Installation Tips =
===== Transfer one partition to another system =====
 * unmount the filesystem (on both side).
 * check the source filesystem (see {{{man fsck}}}).
Line 20: Line 21:

 * You can check that the partition are identical using {{{md5sum /dev/hda1}}}.
 * You if the destination partition is larger, you can resize the ext2/3 filesystem inside the target partition (see package DebPkg:e2fsprogs 's {{{resize2fs}}}).


Miscellaneous Installation Tips

Transfer one partition to another system
  • unmount the filesystem (on both side).
  • check the source filesystem (see man fsck).

You can transfer one partition to another over the network roughly like this:

 on source: 
 cat /dev/hda1 || gzip || netcat -p 1234 destinationhost.somewhere.com

 on destination:
 netcat -l -p 1234 || gunzip > /dev/hda1

(set the destination to listen before executing the command on the source machine)

Obviously the destination partition needs to exist and be the correct size. You can also transfer a root partition this way if you boot the machine with a bootable Linux such as Knoppix or tomsrtbt. This is a great way to clone a machine if you need to do so. Obviously you might have problems if you need very different modules/kernel/whatever on the target compared to the source.

  • You can check that the partition are identical using md5sum /dev/hda1.

  • You if the destination partition is larger, you can resize the ext2/3 filesystem inside the target partition (see package e2fsprogs 's resize2fs).