Archive

Archive for the ‘Windows’ Category

iTunes Update breaks OpenAFS for Windows on 32-bit Windows

June 10th, 2009

Please advise your help desk staff to be on the lookout for a sudden
increase in complaints about OpenAFS for Windows not working.

The symptoms are that \\AFS is inaccessible and an examination of the
%windir%\temp\afsd_init.log file indicates a memory mapping failure when
attempting to load the AFSCache file. This problem is likely to affect
any user of OpenAFS for Windows on 32-bit Windows with iTunes installed
that set their cache size to be larger than 500mb.

The problem:

Apple updated the Bonjour distribution as part of the most recent iTunes
update. Included in the distribution is a file called mdnsNSP.dll which
is inserted into the process memory space of every application on the
system that makes use of the WinSock APIs. This DLL permits Bonjour
discovery services to be used as a DNS replacement automatically. Apple
set an image base of (16080000 to 160A4FFF) which is smack in the middle
of the 32-bit process data range instead of using a value around
60000000 as recommended by Microsoft.

The work around:

The Microsoft SDK provides a tool called rebase.exe which is used by
developers to modify the base address of a DLL. The following
operations can be used to move mdnsNSP.dll to the correct location in
memory.

  1. cd to c:\program files\bonjour
  2. rename mdnsNSP.dll to mdnsNSP.dll.inuse
  3. copy mdnsNSP.dll.inuse to mdnsNSP.dll
  4. rebase -d -b 0x60000000 mdnsNSP.dll

    The next time the OpenAFS for Windows service is started the dll will be
    loaded into the correct range in memory.

    Unfortunately, it is likely that the next iTunes update will break this
    again. End users are also unlikely to have access to the rebase.exe
    command.

    The command “dumpbin /headers mdnsNSP.dll” can be used to determine the
    image base.

    The affected version of mdnsNSP.dll is 1.0.6.2.

[Quelle: Jeff via openafs-info]

VN:F [1.4.6_730]
Rating: 9.0/10 (1 vote cast)

Sebastian AFS, Apple, Windows

Teredo auf Windows aktivieren – IPv6 in 2 Minuten

May 31st, 2009

Linux, MacOS X – bleibt ja eigentlich nur noch Windows.

Teredo ist bei Vista bereits installiert, jedoch abgeschaltet. Bei Windows XP muß der Dienst erst installiert werden, aber das ist auch kein Problem und die zwei Minuten sind weiterhin schaffbar.

Der Weg auf Windows XP:
ipv6 install
netsh interface ipv6
set teredo type=client

win-ipv6

Der Weg auf Vista und Windows 7 (nicht getestet):
netsh interface ipv6
set teredo type=client

Bitte bedenken: Ihr hängt damit ein Windows ungefiltert ans Internet. Anti-Virus, Firewalls – Ihr kennt das ja, bitte nicht vernachlässigen. Wir haben schon mehr als genug Spam-Schleudern im Netz.
VN:F [1.4.6_730]
Rating: 9.0/10 (6 votes cast)

Sebastian IPv6, Software Empfehlungen, Windows

Windows Server 2008 Enterprise zum zocken?

March 10th, 2009

Was ist hier falsch?
w2k8.png

VN:F [1.4.6_730]
Rating: 8.5/10 (2 votes cast)

Sebastian Think!, Windows

Ungültiges Argument?

September 23rd, 2008

Was habe ich falsch gemacht?

Plötzlich bei der Arbeit an einem Diagramm. Der Ausweg ging dann über den Task-Manager. :-(

VN:F [1.4.6_730]
Rating: 3.0/10 (1 vote cast)

Sebastian Windows

AFS, Windows und die Powershell

July 3rd, 2008

Windows Powershell und OpenAFS

Fühlt sich zwar seltsam an, aber man kann durchaus damit arbeiten. :-)

VN:F [1.4.6_730]
Rating: 8.0/10 (2 votes cast)

Sebastian AFS, Shells & Scripting, Windows

Vista/BitLocker und trotzdem GRUB

March 23rd, 2008

Wenn im MBR ein GRUB zu finden ist, weigert sich Vista den TPM-Chip zu aktivieren, folglich ist BitLocker nicht wie gewünscht verfügbar.

Es geht aber doch!

Erstmal Linux installieren – wie gewohnt, jedoch GRUB nicht in den MBR sondern auf die erste Partition installieren. Danach den Boot-Sektor sichern, am besten auf Diskette oder USB-Stick (sollte ein von Windows lesbares Dateisystem sein).
dd if=/dev/sda1 of=/mnt/usbstick/linux.bin bs=512 count=1
Vista anschließend – wie hier beschrieben – für die Verwendung mit BitLocker installieren. Aber Achtung: clean ist hier eine falsche Idee – einfach übergehen.

Jetzt kommt der interessante Teil, nämlich der Vista Boot-Loader. Erstmal ein Terminal (cmd.exe oder PowerShell) als Admin öffnen. Den gesicherten Boot-Sektor linux.bin ins Hauptverzeichnis der Platte kopieren, die den Boot-Loader enthält. (Das ist wahrscheinlich C:, kontrollieren kann man’s mit diskmgmt.msc.)
bcdedit /create /d "GRUB" /application BOOTSECTOR
Wir bekommen eine ID mitgeteilt, die im folgenden einzufüllen ist.
bcdedit /set $ID device boot
bcdedit /set $ID PATH \linux.bin
bcdedit /displayorder $ID /addlast
bcdedit /timeout 10

Vista wird beim nächsten Neustart 10 Sekunden lang ein Boot-Menü anzeigen, dessen letzte Option GRUB ist.

VN:F [1.4.6_730]
Rating: 7.0/10 (1 vote cast)

Sebastian Piratsphäre, Windows, help me booting it up

Vista Installation mit BitLocker

February 28th, 2008

BitLocker benötigt eine 1,5GB große Partition um zu arbeiten. Doch leider bietet das Installations-Menü einer Windows Vista DVD keine Optionen, um eine solche Partition ohne Handarbeit zu erstellen.
Allerdings findet sich im Menü der Punkt System Recovery Options über den ein Command-Prompt geöffnet werden kann.

Das Tool diskpart kann dann die nötige Partition erstellen.

select disk 0
clean (Achtung, hier wird die komplette Festplatte geleert!)
create partition primary size=1500
assign letter=S
active Die BitLocker-Partition ist jetzt fertig, doch irgendwo muß ja auch noch das Betriebssystem hin.
create partition primary
assign letter=C
Und um sich die neue Partitionstabelle nochmals anzusehen: list volume
Zurück zur Kommandozeile mit exit
Beide Partitionen noch mit NTFS formatieren, dann kann über den gewohnten Weg über das Menü Vista auf dem größeren Laufwerk C: installiert werden.
format C: /y /q /fs:NTFS
format S: /y /q /fs:NTFS

Das Prompt per exit beenden und das System Recovery Options-Window schließen.

Warum Laufwerk S:? Willkühr. Wem S: nicht gefällt, der wähle einen anderen Buchstaben.

VN:F [1.4.6_730]
Rating: 9.0/10 (1 vote cast)

Sebastian Piratsphäre, Windows