NTFS Image sichern - Fehler

Antworten
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

NTFS Image sichern - Fehler

Beitrag von tvsucks »

Hallo,

ich möchte Windows per Image verteilen. In der Anleitung heißt es, es gibt dazu serperat eien Anleitung, nur wo ist die?

Beim boot von Opsi 4.0 CD und der Auswahl "Image sichern" tritt gleich zu beginn folgender Fehler auf:
'ascii' codec cant't encode character u'\xf6' in position 155: ordinal not in range(128)

Wenn ich "Image sichern" im Opsi auswähle und dann per PXE boote kommt:
Suche nach Fetplatte.
Festplatte '/dev/sda' gefunden (79999 MB).
Partition 1:Start 0 MB, Ende 49 MB, Dateisystem unknown, Typ de
Partition 2: Start 57 MB, Ende 79982 Mb, Dateisystem ntfs, Typ 7
Erstelle Verzeichnis '/root/.ssh' .

EIN FEHLER IST AUGETRETEN
Failed to write image: 'ascii' codec can't decode byte 0xc3 in position 49: ordinal not in range(128)


was kann ich tun?


Franz
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: NTFS Image sichern - Fehler

Beitrag von d.oertel »

Hi,
was kann ich tun?
Logfile des bootimages posten (siehe opsi-handbuch Kapitel '14.6.1. /var/log/opsi/bootimage')

Ansonsten (ein wenig angestaubt):
http://download.uib.de/doku/image-verteilung.pdf

gruss
d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

Re: NTFS Image sichern - Fehler

Beitrag von tvsucks »

hier der log:

Code: Alles auswählen

Apr 29 18:00:39 [opsiinit] opsi init script started
Apr 29 18:00:39 [opsiinit] opsi linux bootimage version: 20090911
Apr 29 18:00:39 [opsiinit] getBootParam(nodhcp): cmdline: lang=de irqpoll pckey=******************************** service=192.168.116.119 vga=$
Apr 29 18:00:39 [opsiinit] boot param nodhcp=0
Apr 29 18:00:39 [opsiinit] getBootParam(hn): cmdline: lang=de irqpoll pckey=******************************** service=192.168.116.119 vga=791 $
Apr 29 18:00:39 [opsiinit] boot param hn=wsiuser-132c7e5
Apr 29 18:00:39 [opsiinit] getBootParam(lang): cmdline: lang=de irqpoll pckey=******************************** service=192.168.116.119 vga=79$
Apr 29 18:00:39 [opsiinit] boot param lang=de
Apr 29 18:00:39 [opsiinit] loading keymap de
Apr 29 18:00:39 [opsiinit] setting language environment (LANG=de_DE.UTF8, LANGUAGE=de, LC_ALL=de_DE.UTF8)
Apr 29 18:00:39 [opsiinit] getNetworkDevices(): link forced
Apr 29 18:00:39 [opsiinit] getNetworkDevices(): device(s) found:  eth0, device(s) with link:  eth0
Apr 29 18:00:39 [opsiinit] getNetworkDevices(): device(s) with link found, returning  eth0
Apr 29 18:00:39 [opsiinit] device(s) found: eth0
Apr 29 18:00:39 [opsiinit] getNetworkDevices(): device(s) found:  eth0, device(s) with link:  eth0
Apr 29 18:00:39 [opsiinit] getNetworkDevices(): device(s) with link found, returning  eth0
Apr 29 18:00:39 [opsiinit] using dhcp, adding entry for device eth0 to /etc/network/interfaces
[2] [Apr 29 18:00:41] Locale not found: name 'LOCALE_DIR' is not defined (Util.py|61)
[5] [Apr 29 18:00:41] Locale not found: name 'LOCALE_DIR' is not defined (Tools.py|64)
[5] [Apr 29 18:00:41] Locale not found: [Errno 2] No translation file found for domain: 'product' (Product.py|104)
[6] [Apr 29 18:00:41] Executing: echo 0 > /proc/sys/kernel/printk (master.py|151)
[6] [Apr 29 18:00:41] Exit code: 0 (Posix.py|204)
[6] [Apr 29 18:00:41] Command 'tty' found: '/usr/bin/tty' (Posix.py|100)
[6] [Apr 29 18:00:41] Executing: setterm -msg off -blank 0 -powersave off < /dev/tty6 > /dev/tty6 (master.py|155)
[6] [Apr 29 18:00:41] Exit code: 0 (Posix.py|204)
[5] [Apr 29 18:00:41] Waiting for init scripts to finish up (0) (master.py|173)
[5] [Apr 29 18:00:42] Waiting for init scripts to finish up (1) (master.py|173)
[5] [Apr 29 18:00:43] Waiting for init scripts to finish up (2) (master.py|173)
Apr 29 18:00:43 [opsiinit] Setting hostname to wsiuser-132c7e5 as supplied by cmdline
Apr 29 18:00:43 [opsiinit] opsi init script ended
[6] [Apr 29 18:00:44] Executing: dmesg (master.py|184)
[6] [Apr 29 18:00:44]  ->>> Linux version 2.6.31 (root@pcjan) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #1 SMP PREEMPT Mon Sep 14 12:01:28$
[6] [Apr 29 18:00:44]  ->>> KERNEL supported cpus: (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   Intel GenuineIntel (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   AMD AuthenticAMD (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   NSC Geode by NSC (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   Cyrix CyrixInstead (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   Centaur CentaurHauls (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   Transmeta GenuineTMx86 (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   Transmeta TransmetaCPU (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>   UMC UMC UMC UMC (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> BIOS-provided physical RAM map: (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 0000000000000000 - 000000000009e800 (usable) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 0000000000100000 - 000000007ddff800 (usable) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 000000007ddff800 - 000000007de53c00 (ACPI NVS) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 000000007de53c00 - 000000007de55c00 (ACPI data) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 000000007de55c00 - 000000007e000000 (reserved) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 00000000fed20000 - 00000000feda0000 (reserved) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved) (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>>  BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved) (Posix.py|161)
...
[6] [Apr 29 18:00:44]  ->>> libata version 3.00 loaded. (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ahci 0000:00:1f.2: version 3.0 (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ahci 0000:00:1f.2: PCI INT C -> Link[LNKC] -> GSI 9 (level, low) -> IRQ 9 (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x2f impl SATA mode (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ahci 0000:00:1f.2: flags: 64bit ncq sntf pm led clo pmp pio slum part ems  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ahci 0000:00:1f.2: setting latency timer to 64 (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2 (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> e1000e: Copyright (c) 1999-2008 Intel Corporation. (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> scsi0 : ahci (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> scsi1 : ahci (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> scsi2 : ahci (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> scsi3 : ahci (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> scsi4 : ahci (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> scsi5 : ahci (Posix.py|161)
...

[6] [Apr 29 18:00:44] Exit code: 0 (Posix.py|204)
[6] [Apr 29 18:00:44] Executing: lsmod (master.py|185)
[6] [Apr 29 18:00:44]  ->>> Module                  Size  Used by (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> af_packet              20028  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> dm_mod                 61348  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> sg                     26320  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> sr_mod                 15908  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> sd_mod                 26968  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> cdrom                  34656  1 sr_mod (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ata_generic             4576  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> snd_hda_codec_analog    57948  1  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> usbhid                 37728  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> pata_acpi               3900  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> snd_hda_intel          25064  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> snd_hda_codec          57404  2 snd_hda_codec_analog,snd_hda_intel (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> evdev                   9600  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> serio_raw               5440  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> e1000e                122444  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ehci_hcd               35308  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> ahci                   35660  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> uhci_hcd               22316  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> libata                159180  3 ata_generic,pata_acpi,ahci (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> 8250_pci               29788  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> usbcore               143088  4 usbhid,ehci_hcd,uhci_hcd (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> snd_pcm                69216  2 snd_hda_intel,snd_hda_codec (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> snd_timer              19908  1 snd_pcm (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> snd                    46356  5 snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> soundcore               1376  1 snd (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> snd_page_alloc          8228  2 snd_hda_intel,snd_pcm (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> 8250_pnp               14236  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> 8250                   20980  2 8250_pci,8250_pnp (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> serial_core            18300  1 8250 (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> rtc_cmos                9584  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> rtc_core               15096  1 rtc_cmos (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> rtc_lib                 2364  1 rtc_core (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> thermal                12760  0  (Posix.py|161)
[6] [Apr 29 18:00:44]  ->>> button                  5196  0  (Posix.py|161)

...
[6] [Apr 29 18:00:51]  ->>> advice= (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> uninstallscript= (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> setupscript=hwinvent.py (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> priority=0 (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> pxeconfigtemplate= (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> productversion=1.1 (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> updatescript= (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> alwaysscript= (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> creationtimestamp=20100419144041 (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> packageversion=1 (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> description=Fuehrt eine Hardwareinventarisierug auf dem Client durch. (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> askbeforeinst=false (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> depotdrive=P: (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> nextbootserviceurl=https://192.168.116.119:4447 (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> utilsurl=smb://opsidemo/opt_pcbin/utils (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> configurl=smb://opsidemo/opt_pcbin/pcpatch (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> utilsdrive=P: (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> opsiserver=opsidemo.xxx.de (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> nextbootservertype=service (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> depoturl=smb://opsidemo/opt_pcbin/install (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> depotid=opsidemo.xxx.de (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> configdrive=O: (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> windomain=xxx (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> pcptchbitmap1=winst1.bmp (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> pcptchbitmap2=winst2.bmp (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> button_stopnetworking= (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> pcptchlabel1=opsi (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> pcptchlabel2=uib (Posix.py|161)
[6] [Apr 29 18:00:51]  ->>> secsuntilconnectiontimeout=180 (Posix.py|161)
[6] [Apr 29 18:00:51] Exit code: 0 (Posix.py|204)

Ich seh immer nur Exit code: 0, auch zuletzt. Oder ist das das Problem:?
[3] [Nov 04 18:44:38] Locale not found: name 'LOCALE_DIR' is not defined (master.py|78)

Ah, ok, bei boot mit CD steht das im log:
ls: Zugriff auf /var/lib/opsi/ntfs-images nicht möglich: Datei oder Verzeichnis nicht gefunden (Posix.py|684)
[7] [Nov 04 18:45:45] Exit code: 2

Oh, man, das Modul ntfs-write war nicht installiert!
>>opsi-package-manager -i ntfs-write.opsi

Sollte jetzt gehen.

Danke für die Hilfe!

Franz
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

Re: NTFS Image sichern - Fehler

Beitrag von tvsucks »

Komsich, kommt immernoch "Zugriff auf /var/lib/opsi/ntfs-images nicht möglich: Datei oder Verzeichnis nicht gefunden"

Franz
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

Re: NTFS Image sichern - Fehler

Beitrag von tvsucks »

Hab jetzt einfach den Ordner "/var/lib/opsi/ntfs-images" manuell angelegt. Jetzt kommt das:

Code: Alles auswählen

[6] [Nov 05 13:14:02]  -->>> 100.00 percent completed (Posix.py|1988)
[6] [Nov 05 13:14:02]  -->>> Accounting clusters ... (Posix.py|1988)
[6] [Nov 05 13:14:02]  -->>> Space in use       : 626 MB (85.4%)    (Posix.py|1988)
[6] [Nov 05 13:14:02]  -->>> Saving NTFS to image ... (Posix.py|1988)
[6] [Nov 05 13:14:02]  -->>>  (Posix.py|1988)
[6] [Nov 05 13:14:02]  -->>> gzip: stdout: Broken pipe (Posix.py|1988)
[6] [Nov 05 13:14:02]  -->>> ERROR(32): write_all: Broken pipe (Posix.py|1988)
[1] [Nov 05 13:14:03] Traceback: (Logger.py|648)
[1] [Nov 05 13:14:03]      line 655 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|648)
[1] [Nov 05 13:14:03]      line 54 in '<module>' in file '/mnt/opsi/install/ntfs-write-image/ntfs-write-image.py' (Logger.py|648)
[1] [Nov 05 13:14:03]      line 1997 in 'saveImage' in file '/var/lib/python-support/python2.6/OPSI/System/Posix.py' (Logger.py|648)
[1] [Nov 05 13:14:03]      ==>>> Fehlgeschlagen: ERROR(32): write_all: Broken pipe (master.py|671)
Rechte Problem?

Franz
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

Re: NTFS Image sichern - Fehler

Beitrag von tvsucks »

>>chmod 777 ntfs-images

Und rennt!!!

Code: Alles auswählen

[5] [Nov 05 13:37:19] Saving partition '/dev/sda1' to ntfsclone-image '-' (Posix.py|1931)
[6] [Nov 05 13:37:19] Command 'ntfsclone' found: '/usr/sbin/ntfsclone' (Posix.py|100)
[6] [Nov 05 13:37:19] Executing: /usr/sbin/ntfsclone --save-image -f --overwrite - /dev/sda1 | gzip -c | ssh -i /root/.ssh/id_rsa pcpatch@192.168.116.119 'cat > /var/lib/opsi/ntfs-images/new-ntfs-image.img.gz' (Posix.py|1949)
[6] [Nov 05 13:37:19]  -->>> ntfsclone v2.0.0 (libntfs 10:0:0) (Posix.py|1988)
[6] [Nov 05 13:37:19]  -->>> NTFS volume version: 3.1 (Posix.py|1988)
[6] [Nov 05 13:37:19]  -->>> Cluster size       : 1024 bytes (Posix.py|1988)
[6] [Nov 05 13:37:19]  -->>> Current volume size: 731791360 bytes (732 MB) (Posix.py|1988)
[6] [Nov 05 13:37:19]  -->>> Current device size: 731791872 bytes (732 MB) (Posix.py|1988)
[6] [Nov 05 13:37:19]  -->>> Scanning volume ... (Posix.py|1988)
[6] [Nov 05 13:37:19]  -->>>   0.00 percent completed (Posix.py|1984)
[6] [Nov 05 13:37:19]  -->>>   1.31 percent completed (Posix.py|1984)
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

Re: NTFS Image sichern - Fehler

Beitrag von tvsucks »

Wieso geht das immer nur mit CD-Boot? Wenn ich das ganze über 'configed' einleite kommen wieder ein Fehler.

Langsam frage ich mich ob das überhaupt das Richte für unser Unternehmen ist. Der Automatisierungsgrad bei der Imagelösung ist nicht hoch genug.
- So wie es jetzt ist kann ich über 'configed' nicht steuern welches Image er nimmt.
- Die Platte muss vorher manuell Partitioniert werden falls man nicht ein große Partition haben will.
- Wie starte ich zentral individuelle restore Befehle wie 'restorelocalntfsimage.py b r new_partition_table /pfad/zur/imagedatei' ?
- Kann man in OPSI eigene Bootimages einfügen? Stelle mir vor, dass man auch ein eigenes WinPE (bootimage.wim) booten lassen kann.

Grüße
Franz
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: NTFS Image sichern - Fehler

Beitrag von d.oertel »

Hi,

ja - der Schwerpunkt von opsi liegt deutlich auf der unattend installation und nicht auf der Image Lösung,
weil diese im Umfeld heterogener Hardware das Leben nicht viel einfacher macht.

Trotzdem geht das in der Regel.

gruss
d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

Re: NTFS Image sichern - Fehler

Beitrag von tvsucks »

Wie geht die Imageerstellung mit Win7, da hab ich ja noch die Startpatition. Mit 'configed' kann Ich nur von einer Partition ein image machen. Wie kann ich den Befehl ändern? Bzw. individuelle writentfs Befehle auf dem Client ausführen lassen?

Grüße
Franz
tvsucks
Beiträge: 9
Registriert: 16 Apr 2010, 11:03

Re: NTFS Image sichern - Fehler

Beitrag von tvsucks »

In der Doku "ntfs-image-doc.pdf" ist ja eine Anleitung zur Verwendung von write-local-ntfsimage.py und restore-local-ntfsimage.py.

Kann ich diese Befehle vom Server aus absetzen, oder nur direkt an dem jeweiligem PC?

z.B.: restorelocalntfsimage.py b r new_partition_table /pfad/zur/imagedatei

Grüße
Franz
Antworten