Upgrade LinHES from KnoppMyth

Version 6 (brfransen, 06/07/2010 01:13 pm)

1 2 brfransen
h1. Upgrade to LinHES from KnoppMyth R5
2 1
3 1
h2. Convert /etc/fstab to use UUIDs
4 1
5 1
If you have multiple hard drives before upgrading to LinHES, you will need to modify your /etc/fstab to use the "UUID":http://wiki.archlinux.org/index.php/Persistent_block_device_naming#by-uuid of the hard drives in your system. As in the past, during an upgrade the installer inspects the root partition for this file and uses it to setup mount points. However, because R6 uses the modern SCSI emulation layer drivers for all hard drives, what used to be /dev/hdb1 is now /dev/sdb1, or possibly /dev/sda1, or /dev/sdc1, or ... Well you get the picture...
6 1
7 1
Using the UUID of the hard drive is the best way to solve the problem. For example, this is what the fstab entries for my HD and LVM volumes look like using labels:
8 1
9 1
> */etc/fstab:*
10 1
<pre>
11 1
LABEL=Root    /           ext3  defaults,errors=remount-ro  0  1
12 1
13 1
LABEL=myth    /myth       auto  defaults,auto  0  2
14 1
15 1
LABEL=swap1   none        swap  defaults  0  0
16 1
</pre>
17 1
18 1
This is what they'd look like using UUID:
19 1
20 1
> */etc/fstab:*
21 1
<pre>
22 1
UUID=24f28fc6-717e-4bcd-a5f7-32b959024e26  /           ext3  defaults,errors=remount-ro  0  1
23 1
24 1
UUID=03ec5dd3-45c0-4f95-a363-61ff321a09ff  /myth       auto  defaults,auto  0  2
25 1
26 1
UUID=4209c845-f495-4c43-8a03-5363dd433153  none        swap  defaults  0  0
27 1
</pre>
28 1
Note that the only change is to replace the device names with the appropriate UUID identifiers.
29 1
30 1
31 1
*Hint:* running *blkid* will list the UUIDs for all of your partitions and volumes. E.g.:
32 1
<pre>
33 1
root@black2:~# blkid
34 1
/dev/hda1: LABEL="Root" UUID="24f28fc6-717e-4bcd-a5f7-32b959024e26" SEC_TYPE="ext2" TYPE="ext3"
35 1
36 1
/dev/hda2: LABEL="swap1" UUID="4209c845-f495-4c43-8a03-5363dd433153" TYPE="swap"
37 1
38 1
/dev/mapper/vg-myth: LABEL="myth" UUID="03ec5dd3-45c0-4f95-a363-61ff321a09ff" SEC_TYPE="ext2" TYPE="ext3"
39 1
</pre>
40 1
41 3 brfransen
h2. Hostname
42 3 brfransen
43 3 brfransen
Make a note of your current hostname. This is very important, since changing the hostname can make various DB entries keyed by hostname useless.
44 3 brfransen
This command will print your hostname: 
45 3 brfransen
<pre>
46 3 brfransen
hostname
47 3 brfransen
</pre>
48 3 brfransen
49 1
h2. Backup
50 1
51 4 brfransen
Make a [[Backup and Restore#Backup|backup]] and verify that it worked. The less time between when you make the backup and when you do the upgrade, the better. If the delay is more than a couple hours, you should verify that the backup is still current. *You can't do a successful upgrade without a valid and up to date backup!*
52 1
53 5 brfransen
h2. Install LinHES
54 5 brfransen
55 6 brfransen
It is recommended that you upgrade to "LinHES 6.01.00":ftp://linhes.org/R6/R6.01.00 because both KnoppyMyth R5.5 and LinHES 6.01.00 use the same version of MythTV (.21-fixes).  You can then [[Upgrade_LinHES|upgrade]] to the latest release of LinHES.
56 5 brfransen
57 5 brfransen
[[Install LinHES]]