The past two days I tried to make a file server out of an older pc I had lying around. It had an MSI KT6V-LSR with an Athlon processor on it. Toghether with one 400Gb and one 500Gb harddrive I thought I could crop a machine for storing files. My primary OS of choice was Windows 7. I had also an XP around but I consider it too outdated to use and the Vista would be too slughish on this old hardware.
The problem I encountered was that Win7 was not booting on this pc. This is because on the Win7, Microsoft changed the boot sector (don’t ask me why) and older systems do not recognize this as a valid bootable disk and the only message I was getting was a “cannot boot from cd code 5” error. After scouring the net I finally found a sollution which I want to post here.
1. Get a Windows Vista boot disk. It does not matter it’s from a “friend” or yours. You won’t actually intall Vista, just piggy-back on it’s boot capabilities.
2. Boot from the Vista disk.
3. After selecting the language select repair. Afterwards, depending on the state of your harddrive and other stuff you should be getting the choice of running a command prompt. Do it.
4. Change the disks such that your drive now contains the Windows7 disk.
5. In the command prompt navigate to the drive with the Windows7 disk, go to the sources directory and type setup.exe and press enter.
6. Now the Windows7 will start installing and everything will go on normally.
Happy installing!
2 Comments »
Posted by admin in .NET
I was researching today how one connect to an Oracle database from .Net using Visual Studio 2008 and ODP.Net (Oracle Data Provider for .Net). What I initially tried and what I will talk about is to add a new datasource to a project. I will not go into specific programatic access but into configuration.
First thing you have to do is download ODP.Net from the link above and install it. In the installer two things have to be done. Select the type of install and pass the prerequisites. On the type of install I could not understand the choices mainly because the texts for the two available was 90% identical, but the ideea is that the first one is for instalation on a machine that does not have the oracle installed on it, while the second was for the machines with it.
The second part of the install is also nasty from a usability point of view. I am running Windows 7 RC1 and at this time the installer does not recognize it as a supported OS. Fair enough, but you have to guess that you need to tick the checkboxes of the failed prerequisites in order to be able to continue. Afterwards it was click and continue until, again you are dumbfounded at the end screen. It says everything is done and you have a close button and that asks if if you are sure you want to exit. Are you crazy ?! What else can be done on that screen!
So we now have ODP on our machine. Fire up Visual Studio and open your project and the “Add new data source” wizard. Select New connection and ODP and that should do it. NOPE! This is not an MS driver, you have to work to get things done. You have to go now to the directory where ODP was installed, in the Network\Admin subdirectory and copy from the sample subdirectory into its root the two files “tnsnames.ora” and “sqlnet.ora”. Then modify them according to your oracle configuration (you can find examples on the web).
After modifying the configuration files go to Visual Studio again but make sure (if you’re on Vista or Win7) to run it as administrator. In the add new connection when selecting the ODP.Net driver you are now presented also with an option for your particular connection specified in the tnsnames.ora. Another trick needed here is that when filling in the user name this is automatically transformed to uppercase. If you have a username in lowercase you need to go to advanced and change it to lowercase from there.
Done. Really … done. You have now a data source connection and can create your datasource from an Oracle database. What it’s left is to get your hands on a linq connector for Oracle … but you have to go to other parties like DevArt because Oracle can’t be bothered.
Cheers
No Comments »