Tuesday, December 23, 2014

Windows 7 Installation

Installed Windows 7 on one of three disks in a system.

Told the installation program  which partition Windows should be installed on.

The installation program without warning wrote to a file on another disk.

This behavior is part of the Microsoft Windows Extreme Stupidity project.

I will have to remember to make partitions on other disks invisible to Windows before installing Windows 7.

Windows wrote to the MBR of the other disk too.

Saturday, November 29, 2014

De middelmådiges ord

Ordene anføres i tilfældig rækkefølge. Listen er ikke udtømmende.

Fokusområder.

Vækst.

Læring.

Faglighed.

Kompetencer.

Substantielt løft.


Friday, October 17, 2014

MBR Boot Manager

We want this:

The entire boot manager program is in the MBR.

The program boots active partition with standard error messages if no key is pressed.

If right Alt is pressed during boot a prompt is printed to the screen.

If 1, 2, 3, or 4 is then pressed, that partition entry is set active, and the entry is booted.

If Esc is pressed in stead the active partition is booted.

If a, b, c, or d is pressed in stead entry no. 1, 2, 3, or 4 is set active, and that partition booted, but a mark is set that at next boot the previous active mark should be  restored.

If a number or letter is pressed, but that partition is not present nothing should be done.

The first version is present. It did not become so advanced, but it works.

SHA1 D0C6339BFF70F80A84912DD481016495B58271E9, 408 bytes.

If right Alt is pressed during boot a prompt "#" is printed to the screen.

If 1, 2, 3, or 4 is then pressed that partition entry is set active, and the entry is booted.

If there is no matching entry or another key is pressed nothing happens.

Saturday, October 11, 2014

Intel CPU fan

Will the Intel Core i5-3570 CPU fan run if it is just connected by the yellow and black wires to 12 V?

Yes, the fan will run at full speed.

Will the fan run if the same wires are connected to 7 V? Yes.

To 5 V? Yes.

What about the Intel Core i7-4790 fan? Model Number: E97378-001.

The fan runs at 12 V. At 7 V it moves a little, but does not run. At 5 V it does not move at all.

At about 1000 RPM it makes a clicking noise here. And it makes at pretty loud noise when starting.


Sunday, September 21, 2014

Grub notes

I could only install Grub to the Master Boot Record (MBR), and not to the Linux partition boot sector. Propably due to the Grub loader size.

Solution: Copy the MBR to the Linux partition boot sector, and install an MBR which will boot active partition.

After this, Grub still has boot code in sector 1 (second sector) and forwards.

This is a 512 bytes sector size note.

Wednesday, September 17, 2014

Thinkpad T420 notes

Will Windows 7 boot if the C: partition is made active?

Yes.

A 1,200 MiB  NTFS partition in MBR entry 1 was active.

Will Windows 7 boot if the 1,200 MiB partition is deleted?

Yes.

What will then happen if the ThinkVantage key is pressed during boot?

A blinking cursor in the top left corner of the screen.

Will Ctrl Alt Del work? Yes.

Well, the three last steps were probably with a custom Lenovo MBR.  With a standard MBR, the "Startup Interrupt Menu" will appear if the ThinkVantage key is pressed.

Can we boot from an SDHC card? No, the card is not visible until operating system drivers are loaded.

It seems as the card reader may not work in Windows 7 if a harddisk is inserted in the Thinkpad 12.7 mm Serial ATA Hard Drive Bay Adapter III. P/N: 0A65623. It works in Linux. - No, that was not the explanation. Again the card was not seen in Windows.

The "One Key Recovery" option requires that some Lenovo custom program code or data is present between the MBR and the first partition. This for example will be overwritten if the Grub boot loader is installed. One way to restore the content may be this: Make a copy of the \Boot\BCD file on the first  (SYSTEM_DRV) partition. The partition normally is not visible in Windows, and the files and directories are hidden, but the file can be copied for example from boot to Windows PE.

Then install the Lenovo Rescue and Recovery program on the Thinkpad. That will rewrite the custom MBR and the custom sectors after the MBR. Then copy back the \Boot\BCD file to the first (SYSTEM_DRV) partition. The features of Rescue and Recovery when pressing the ThinkVantage key are then not available, but the original ThinkVantage key behavior may be restored.

Make a backup copy of the current BCD  file before you copy the old BCD file back.

I am not quite certain that this is correct, so only do it if you have backup, and know what you are doing. 

Windows notes

net user administrator /active:yes

When the numeric lock is on, then pressing shift-delete using the delete button of the numerical keypad will send the file or the files to the recycle bin.