I use partimage for that. It is very simple.<br><br><a href="http://orion.lcg.ufrj.br/roma/LCG_partimage.html">http://orion.lcg.ufrj.br/roma/LCG_partimage.html</a><br><br>/Paulo Roma.<br><br><div><span class="gmail_quote">
On 12/26/06, <b class="gmail_sendername">Jeffrey Ross</b> <<a href="mailto:jeff@bubble.org">jeff@bubble.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="mailto:redhatdude@bellsouth.net">redhatdude@bellsouth.net</a> wrote:<br>> Hi,<br>> My FC6 box has an internal 40 Gig ATA hard drive in it. I'd like to<br>> upgrade it to an 80 Gig SATA drive. Is there a way to copy the whole
<br>> system from one to the other so I don't have to reinstall Fedora and<br>> reconfigure all my services?<br>> Thanks<br>> EJ<br>><br>> --fedora-list mailing list<br>> <a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a><br>> To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>I'd recommend the following, first I'm assuming you are using an
<br>ext2/ext3 filesystem, if not you'll need to change the copy program.<br><br>1) Make note of how your partitions are created now and what you want to<br>increase (don't forget swap!)<br>2) shutdown your system and install the new disk as either the secondary
<br>on the same bus as your current disk or (preferred) the primary disk on<br>the secondary bus.<br>3) reboot your machine, I'd recommend single user mode (add an "s" to<br>the boot line at startup)<br>4) optional - verify all partitions are mounted issue a "/bin/mount -a"
<br>(mount all)<br>5) run /sbin/fdisk /dev/sdc (a = primary controller primary disk, b =<br>primary controller secondary disk, c = secondary controller primary disk)<br>6) configure your partitions and make sure you set the type (83 = linux,
<br>82 = linux swap)<br>7) format your new partitions with "/sbin/mkfs -t ext3 /dev/hdcX"<br>replace X with the partition number (eg /sbin/mkfs -t ext3 /dev/hdc1)<br>8) format your new swap partition with "/sbin/mkswap /dev/hdcX" again
<br>replace X with the partition number for swap<br>9) mount your new partitions, I recommend the following:<br>a) mkdir /mnt/root<br>b) mount /dev/sdcX /mnt/root<br>c) mkdir /mnt/root/boot<br>d) mount /dev/sdcX /mnt/root/boot
<br>e) mkdir /mnt/root/home<br>f) mount /dev/sdcX /mnt/root/home<br>...etc...<br><br>10) copy your partitions - dump/restore works very well - but only on an<br>idle filesystem it will cause you grief on an active filesystem (so will
<br>programs like tar)<br>a) dump -0f - /dev/sdaX | (cd /mnt/root; restore -rf -) - where<br>/dev/sdaX is the location of your root filesystem<br>b) dump -0f - /dev/sdaX | (cd /mnt/root/home; restore -rf - ) - where<br>/dev/sdaX is the location of your home filesystem
<br>...etc...<br><br>11) Next label your new partitions, otherwise things will break (change<br>X to the partition number on the new disk)<br>a) /sbin/e2label /dev/sdcX /<br>b) /sbin/e2label /dev/sdcX /boot<br>c) /sbin/e2label /dev/sdcX /home
<br>...etc...<br><br>12) install the boot loader on the new disk use the following command:<br>/sbin/grub-install --root-directory=/mnt/root --recheck /dev/sdc (if you<br>have a separate boot partition use /mnt/root/boot)
<br>note: grub uses the actual disk name /dev/sdc not a partition! (eg NO<br>/dev/sda1)<br><br>13) shutdown the system<br>14) remove the old disk<br>15) install the new disk as primary on the primary controller<br>16) reboot
<br>17) you can remove file "restoresymtable" which is left behind in the<br>top directory of every filesystem by restore if desired<br><br>I don't think I missed anything.<br><br>*note: after installing the new disk, do not install both the old and
<br>new disks at the same time, when the system goes to mount the disks it<br>checks the label, and finding 2 disks with the same label name may (ok,<br>will always) cause it to mount the wrong disk!!!<br><br>good luck..<br>
<br>Jeff<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list
</a><br></blockquote></div><br><br>