[mythtv-users] Relocating a system?
Jan Johansson
j2 at mupp.net
Sat Sep 9 17:04:52 UTC 2006
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
More information about the mythtv-users
mailing list