On Mon, 6 Feb 2006 03:59 pm, Bob S wrote:
Added a brand new 40 gig hard drive to the system. Plan to only format it to ext3 using Yast.
Now I want to copy my entire SuSE 9.2 which is all on one partition with the exception of /swap, is presently on hda2, over to the new drive and let it reside there as an operating OS.
Get both disks mounted up, say the new one is mounted onto /target root> rsync -aHWv --delete --exclude '/target' \ --exclude-from exclude-list /source/ /target/ where `cat exclude-list` is: # file to control the rsync copy onto a new machine # Just the top level home directory to NFS mount onto + /home/ - /home/* # just the mount points + /media/ + /media/cdrom/ - /media/cdrom/* + /media/floppy/ - /media/floppy/* - /media/* # just mount points + /mnt/ - /mnt/* + /proc/ - /proc/* + /tmp/ - /tmp/*
The procedure would be to open a console as root, and then issue an rsync ( + unknown options) / /dev/hdb command,
No, mount the disk and copy into the mounted filesystem, copying /dev/hda /dev/hdb is only for cloning disks onto identical or bigger disks. It copies the partition table as well.
cd into /etc/fstab and edit the / partition and the /swap partition. Get /right, comment swap out.
Set the new disk as the boot disk in BIOS, or change the jumbering so it's /dev/hda Boot of a CD and ask for "Boot installed system" point it at your new root partition. You should get it up in the new system. Re-install GRUB adding a generic master boot record.
Then cd into /boot/grub/Menu1st and edit that also to make it bootable.
You'll probably need to re-install GRUB adding a generic master boot record to get the new disk bootable.
Then what about /proc ? Does that get copied over? and should it be? Just the mount point, it's generated during boot. See exclude-list for other clues.
Hope this helps, michaelj -- Michael James michael.james@csiro.au System Administrator voice: 02 6246 5040 CSIRO Bioinformatics Facility fax: 02 6246 5166 No matter how much you pay for software, you always get less than you hoped. Unless you pay nothing, then you get more.