Re: [SLE] moving my current installation



Am Donnerstag, 29. Juni 2006 17:41 schrieb Phil Burness:
I have a fully up to date v9.3 system on a 40Gb harddrive. I want to
transfer this installation to a new 160Gb harddrive. I want to remove the
old 40Gb and trash it. (It's several years old an I want to change it
before it fails). Question is how do I transfer the system over including
grub etc.

Phil
--
Phil Burness
Linux User since 1991 - currently using SuSE 9.3
Warrington - United Kingdom

There has been a (german) instruction manual once (2005) on the novell page,
but I can't find it anymore online. However, I have a copy saved, so I try to translate from there:

The given example assumes:
- you have an old disk /dev/hda (1. IDE-HD) and
- a new SCSI-disk /dev/sda (1. HD on SCSI-Bus)
- root partition is /dev/hda5 (1. logical drive in the extended partition)
- the new root partition shall be /dev/sda1
- the new disk is already formated and the file system is installed on it

Boot with the resue system CD, log in and make two Mountpoints:

mkdir /OLD
mkdir /NEW

Mount both partitions:

mount /dev/hda5 /OLD
mount /dev/sda1 /NEW

check, if

* /dev/hda5 really is the correctt root-partition
* /dev/sda1 is empty

change to the /OLD-directory:

cd /OLD

enter the following tar-command:

tar -cSp --numeric-owner --atime-preserve -f - . | ( cd /NEW && tar -xSpv --atime-preserve -f - )

With this command all files should be brought from /OLD to /NEW and links and rights
should stay preserved. Make sure to type the command with all spaces, e.g. before and
after the dot, after the opening parenthesis, before the closing parenthesis.

adjust some important files to the new root partition:

* edit /NEW/etc/fstab according to the new situation, e.g.:

old entry: /dev/hda5 / ext2 defaults 1 1

new entry: /dev/sda1 / ext2 defaults 1 1

* eventually also adjust /NEW/etc/lilo.conf . You can only start LILO
after booting with the new partition.

Change to the root directory and umount both partitions:

cd /
umount /OLD
umount /NEW

Reboot using CD1 or the Suse DVD and start the rescue system,
from there start the "installed system" with entering the new root-partition
(here: /dev/sda1 )

After the boot open Yast -> configure the boot menu, change the "Linux"-entry to the new root
partition. The instruction sais, that Yast wants you to rename the entry (say from "Linux" to "Suse"
or whatever) - but I don't know, if this is still true.

Now you should be able to boot from the new drive.

If you use LILO you have to adjust /etc/lilo.conf and restart LILO

-------

As mentioned, this is old information. But I've used it to move my Suse 10.0 install
from one disk to another and it worked (partition names, files system and fstab entries
adapted, of course).

Eventually better wait if somebody on the list shouts "stop, this doesn't work anymore!"
before you go on with these instructions ;-)

regards

Daniel
--
Daniel Bauer photographer Basel Switzerland
professional photography: http://www.daniel-bauer.com
special interest site: http://www.bauer-nudes.com

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: [opensuse] Upgrade doesnt recognize filesystem
    ... tried telling the install program my file system is: ... When you say "the installation program doesn't recognize the file system ... evaluating root partition ...
    (SuSE)
  • Re: [SLE] moving my current installation
    ... transfer this installation to a new 160Gb harddrive. ... root partition is /dev/hda5 (1. ... Boot with the resue system CD, log in and make two Mountpoints: ...
    (SuSE)
  • Re: NTFS and FAT32 on same drive?
    ... FAT16, FAT32, CDFS (the file system used on most CDs), and NTFS with ... would be to partition your driveroughly as follows: ... disk support (FAT32). ... installation data during the first uninstall action. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: increase filesystem/partition
    ... with barely enough tools to build a file system and install other ... partition would then be populated with enough tools to really run an OS. ... then I did a hand compilation of a gcc variant that wound up in ... then the user who wanted to save CD installation images ...
    (comp.os.linux.setup)
  • Re: Repositioning /var | /tmp to avoid disk full condition
    ... wouldn't be posting here asking how to restore. ... freebsd.org site has a similar live file system somewhere, ... installation, you are creating partitions in your slice. ... a partition is a persistent part of your hard ...
    (freebsd-questions)