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

Craig Huff huffcslists at gmail.com
Sat Dec 8 15:43:31 UTC 2007


On Dec 7, 2007 9:45 PM, Sam Varshavchik <mrsam at courier-mta.com> wrote:
>
> Craig Huff writes:
>
> > 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.
> >
Clearly, I didn't think the above through enough...I *will* have to modify the
contents of /etc/fstab since, as Sam points out below, the old drive is
/dev/hda and the new one is /dev/sda.  Sigh...it's hard to stop thinking
windoze-eze!
>
> 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.
>
Thanks, Sam!


More information about the mythtv-users mailing list