kanotix.com

Installation, Einstellungen, Systempflege - [gelöst] Update KANTOIX-2006-1 auf Thorhammer

christophb - 02.05.2008, 17:44 Uhr
Titel: [gelöst] Update KANTOIX-2006-1 auf Thorhammer
Hallo,

ich nutze seit langer Zeit KANOTIX als VDR-Server und finde es einfach Klasse.

Nun möchte ich das System auf THORHAMMER updaten und bin unsicher, wie ich am sinnvollsten vorgehe.

Aktuell sagt mir KNXCC ich hätte KANOTIX-2006-1 im Einsatz.
Das KDE-Kontrollzentrum zeigt, ich habe KDE 3.5.5 und Linux Version 2.6.18-kanotix-1.

Von der Live-CD von THORHAMMER-RC7 habe ich schon den acritoxinstaller gestartet. Der meckert, dass keine root-id mit Nr 1000 gefunden wird und daher kein Update stattfinden kann. Anschließend kommt die Auswahl der Verzeichnisse. Geht es auf dem Weg doch, oder ist das problematisch?

Bin für jeden Tipp dankbar.

Christoph
Kano - 02.05.2008, 17:52 Uhr
Titel: Update KANTOIX-2006-1 auf Thorhammer
Es ist nicht möglich upzudaten, solange du nicht min:

http://kanotix.com/files/fix-grub.sh
http://kanotix.com/files/fix-fstab.sh

Benützt hast, evtl. löst das dein Problem, wenn nicht musste einen User anlegen mit ID 1000 und Gruppe 1000 (normalerweise per default da). Man darf KEINEN User names vdr anlegen!
christophb - 02.05.2008, 19:29 Uhr
Titel: fix-scripts bringen Warnings und Fehler
Die beiden scripts bringen Warnings und einen Error:
Code:

root@kanotix:/etc# ./fix-grub.sh
Warning: No UUID found for /dev/hda (no-filesystem no-type)
Warning: No UUID found for /dev/hda1 (other swap)
Warning: No UUID found for /dev/hdc (no-filesystem no-type)
Warning: No UUID found for /dev/hdc1 (other swap)
Error: Dup UUID found: 0409a2ec-8c78-408f-9c93-6d5be3725343
root@kanotix:/etc# ./fix-fstab.sh
Warning: No UUID found for /dev/hda (no-filesystem no-type)
Warning: No UUID found for /dev/hda1 (other swap)
Warning: No UUID found for /dev/hdc (no-filesystem no-type)
Warning: No UUID found for /dev/hdc1 (other swap)
Error: Dup UUID found: 0409a2ec-8c78-408f-9c93-6d5be3725343

Die fstab sieht so aus:
Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
usbfs           /proc/bus/usb   usbfs   devmode=0666    0       0
/dev/hda2       /               reiserfs defaults        0       1
/dev/hda1       none            swap    sw              0       0
/dev/hda3       /media/hda3     reiserfs auto,users,exec 0       0
/dev/hdb        /media/cdrom0   udf,iso9660 user,noauto     0       0


Folgende Info noch: Der aktive grub liegt derzeit nicht auf der Kanotix-Partition, sondern auf der anderen (da ist Suse drauf).
Kano - 02.05.2008, 21:16 Uhr
Titel: fix-scripts bringen Warnings und Fehler
Dieses System kannst du niemals updaten ohne die UUIDs zu ändern. Was absolut fatal ist, wenn eine Partition gecloned wurde. 1:1 clones mit UUIDs gibt nur probleme, ändere die UUID. Deaktiviere Swap (warum du 2 Partitionen dafür hast ist eh unklar) und initialisiere Swap ebenfalls neu.
christophb - 03.05.2008, 12:48 Uhr
Titel: fix-scripts bringen Warnings und Fehler
OK, in der Tat hatte ich mal eine neue HD eingebaut und die Partitionen kopiert (mit Acronis oder so).
Nun habe ich alle Partitionen von /dev/hdc gelöscht und die scripte laufen lassen.

Das fix-grub.sh schrieb folgendes:
Code:
Old root: /dev/hda2
New root: UUID=0409a2ec-8c78-408f-9c93-6d5be3725343
update-initramfs: Generating /boot/initrd.img-2.6.18-kanotix-1
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!

Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.18-kanotix-1
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Muss mir das Sorgen machen?

Die fstab sieht jetzt so aus:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda3
UUID=9035942f-50f0-4ec5-81b0-03346aa952fd /media/hda3     reiserfs auto,users,exec 0       0
# /dev/hda1
/dev/hda1       none            swap    sw              0       0
# /dev/hda2
UUID=0409a2ec-8c78-408f-9c93-6d5be3725343 /               reiserfs defaults        0       1
/dev/hdb        /media/cdrom0   udf,iso9660 user,noauto     0       0


Danke für die Hilfe!
Kano - 03.05.2008, 12:50 Uhr
Titel: fix-scripts bringen Warnings und Fehler
Nicht ganz:

swapoff /dev/hda1
mkswap /dev/hda1

und dann das fix-fstab script nochmal.
christophb - 03.05.2008, 13:18 Uhr
Titel: fix-scripts bringen Warnings und Fehler
So langsam verstehe ich, um was es geht. Jetzt sieht es aber gut aus, oder?
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
UUID=9035942f-50f0-4ec5-81b0-03346aa952fd /media/hda3     reiserfs auto,users,exec 0       0
# /dev/hda1
UUID=4f3a7cae-d78f-4a0f-9d70-39fd72a051c5 none            swap    sw              0       0
UUID=0409a2ec-8c78-408f-9c93-6d5be3725343 /               reiserfs defaults        0       1
/dev/hdb        /media/cdrom0   udf,iso9660 user,noauto     0       0

Dann probiere ich demnächst nochmal das Update von der Live-CD.

Danke soweit.
Kano - 03.05.2008, 13:31 Uhr
Titel: fix-scripts bringen Warnings und Fehler
Ja, jetzt sollte ne update install gehen. Wobei ich von reiserfs nicht mehr überzeugt bin, hab alles auf ext3 umgestellt.
christophb - 03.05.2008, 22:44 Uhr
Titel: fix-scripts bringen Warnings und Fehler
Nach Anlegen des users kanotix mit uid 1000 lief das update install durch. Anschließend habe ich problemlos dist-upgrade durchgeführt.
Nun kämpfe ich noch mit den Anpassungen für samba, vdr usw., aber das ist eine andere Geschichte...

Danke für die schnelle Hilfe!
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007