[mythtv-users] Gotchas replacing FC6 disk with new one?

Sam Varshavchik mrsam at courier-mta.com
Sat Dec 8 03:45:21 UTC 2007


Craig Huff writes:

> I plan to move /, /var, /boot, and swap partitions on my Fedora Core 6
> MythTV backend from the current hard drive to another before I deal
> with upgrading.  Are there any gotchas I need to deal with in the
> process (e.g., disk uuids, disk labels)?
> 
> Note that I plan to replace the old disk with the new one, so I've
> already considered and eliminated the need to modify the entries
> in /etc/fstab, etc.
> 
> Anything else I need to do, or will such things be taken care of
> automatically if I use parted to move/copy the old partition contents
> to their replacements on the new disk drive?

Presuming that you've diligently recreated your partitions, and copied them 
over, the only thing you'll probably need to do is run

/sbin/grub-install /dev/sdb

This presumes that your new disk is attached as /dev/sdb, and your boot 
configuration remains unchanged.

My recommended approach to copying one partition to another is using tar:

tar cf - . | (cd /new/mountpoint; tar xf -)

Although, I must admit that I have not done this since Fedora acquired 
selinux, and extended attributes. Perusing through the man pages, I'd 
suggest using "star -xattr-linux" instead of plain tar, in order to get 
everything copied over.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20071207/9295502c/attachment.pgp 


More information about the mythtv-users mailing list