Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th August 2009, 10:20 AM
Pat McClung Offline
Registered User
 
Join Date: Jan 2007
Posts: 19
linuxfedorafirefox
Cloning Fedora 11 to a new hard disk

I was able to clone F11 to a newly installed hard disk on my system as follows. The Fedora system was on three partitions, /boot, /, and /home.
1. Created clone new disk partitions with fdisk and mkfs. make /boot partition bootable.
2. booted a rescue disk, mounted and moved the old partitions to the new partitions with
rsync -vaXSH --numeric-ids (old partition mount point)/ (new partition mount point)
3. modified /etc/fstab on the new disk to appropriate new disk UUIDs (shown by blkid command)
4. set bios to boot new disk first.
5. On the new disk grub, modified the device table to include the new disk and set appropriate things. Watch out! Changing the bios hard disk boot priority may cause your /dev/sdX settings to change! Changed my new disk from /dev/sdc to /dev/sda!!
6.Used supergrub disk to write grub mbr on new disk.
7. Booted old system with supergrub disk. mounted new disk partitions.
8. copied /etc/modprobe.d/local.conf to /etc/modprobe.conf on the new system. (see https://bugzilla.redhat.com/show_bug.cgi?id=508384)
9. cd to /boot directory on the new disk.
10. rm initrd-2.6.29.6-213.fc11.x86_64.img
11. mkinitrd -v --fstab=/mnt/newroot/etc/fstab initrd-2.6.29.6-213.fc11.x86_64.img 2.6.29.6-213.fc11.x86_64
{--fstab=(is /etc/fstab) as modified in step 3 above}
12. restarted and booted Fedora 11 new disk via grub normally.

Everything works, but SElinux (permissive mode) is giving me a few avc denials from gnome. Maybe I screwed up with that --numeric-ids parameter on the rsync partition moves.

Edit August 12, 2009:Solution to the SElinux denials is to autorelabel the files on the new disk to get rid of the files labeled file_t. see http://www.centos.org/modules/newbb/...15960&forum=38
You can execute the following command as root to relabel your computer system:
"touch /.autorelabel; reboot"

Last edited by Pat McClung; 12th August 2009 at 08:20 AM. Reason: add autorelabel to stop avc denials.
Reply With Quote
Reply

Tags
clone, harddisk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning my hard drive blueboy4 Hardware & Laptops 17 23rd May 2007 09:57 PM
Recommended Disk Cloning Solution for a Specific situation miguelon Using Fedora 0 22nd March 2006 06:40 AM
disk cloning and LVM Lutz Installation and Live Media 0 18th March 2006 06:34 PM


Current GMT-time: 16:00 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat