[mythtv-users] Relocating a system?
mark
list at onnow.net
Sat Sep 9 17:34:31 UTC 2006
Jan Johansson wrote:
> Whats the fastest way to migrate a system from one partition to another?
>
> My MythTV-box started out as a FC2-box, because I felt that Jarods guide
> was the best Myth-Howto at the time. I recently migrated this to Debian,
> since all my other boxes are Debian.
>
> When I originally installed the system, I left 3GB for a "future upgrade
> to Debian project", but now I am finding that partition a bit crowded.
>
> So, I would like to move my system from hda5 -> hda2.
>
> So, I figure I could do a 'cp -a' and edit fstab. But what about
> booting? Would it really be so easy as to just edit grub.conf to the new
> path?
>
> So from,
>
> root (hd0,4)
>
> to
>
> root (hd0,1)
>
>
>
> mythbox:/# cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> /dev/hda5 / ext3 defaults,errors=remount-ro 0
> 1
> /dev/hda3 none swap sw 0 0
> #/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
> /dev/hda6 /mnt/hda6 auto defaults
>
>
> mythbox:/# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda5 2.9G 2.2G 589M 79% /
> tmpfs 94M 0 94M 0% /dev/shm
> /dev/hda6 173G 155G 19G 90% /mnt/hda6
> tmpfs 94M 144K 94M 1% /dev
> /dev/hda2 9.9G 5.9G 3.5G 63% /mnt/hda2
>
> mythbox:/# mount
> /dev/hda5 on / type ext3 (rw,errors=remount-ro)
> proc on /proc type proc (rw)
> sysfs on /sys type sysfs (rw)
> usbfs on /proc/bus/usb type usbfs (rw)
> tmpfs on /dev/shm type tmpfs (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> /dev/hda6 on /mnt/hda6 type xfs (rw)
> tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
> /dev/hda2 on /mnt/hda2 type ext3 (rw)
> mythbox:/# fdisk /dev/hda
>
>
> Disk /dev/hda: 200.0 GB, 200049647616 bytes
> 255 heads, 63 sectors/track, 24321 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 13 104391 83 Linux
> /dev/hda2 14 1318 10482412+ 83 Linux
> /dev/hda3 1319 1383 522112+ 82 Linux swap /
> Solaris
> /dev/hda4 1384 24321 184249485 5 Extended
> /dev/hda5 1384 1757 3004123+ 83 Linux
> /dev/hda6 1758 24321 181245298+ 83 Linux
>
> Command (m for help): q
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
Tar really handles this well. Use that but leave out /proc and tmp.
Then untar in your new location, and modify your grub to reflect. Do a
search for this in google ( tar proc system backup etc... ) and there
are several howto's
Good luck. Also it may be a good idea to make another stanza in your
grub to reflect the new partition and leave the original in place for
now. That way you always have your original setup there until you get
it working ok..
Mark
More information about the mythtv-users
mailing list