The infamous windows 7 repair console!

Recently I wiped the Linux distribution I had installed in my tablet PC (Archos 9) and decided to transfer it in a USB stick. The transfer process is outside of the scope of this article, but what’s inside is this:

How on earth can I recover the original Windows 7 bootloader, or do some other repair tasks? What happens if your machine doesnt have a CD drive? Several netbooks and tablet PCs dont… Or… you just dont like to use the DVD. Can you do it from a USB stick? Yes, you can… and  I ‘ll explain bellow.

[——]

Case #1 : When your computer has a DVD/CD drive, and you have the retail-like Windows 7 Installation Media):

By saying retail-like, I mean, you may have in fact a retail Windows 7 DVD, which gets you through the original installation process, or you may have an OEM DVD which has all the computer’s drivers to post-install them.

a. Just boot the DVD first (you may have to reconfigure your BIOS and fix the boot order in order to load the DVD instead of the hard disk)

b. When you see the screen bellow select Repair your computer

c. When Windows has finished loading (be patient a little bit) and detected any possible installations on your hard disk you can proceed by hitting Next

d. You may be prompted by the Windows Recovery Console that an error was found in the installation. Ignore it and hit Cancel or Abort, whatever option it has (we dont like to do things automatically, do we? And I am sorry, I dont remember what the actual option was)

e. In the System Recovery Options click on Command Prompt:

f. It gets a bit tougher now… type the following commands in this exact order:

bootrec /fixmbr

bootrec /fixboot

bootrec /rebuildbcd

To see all available options type the following:

bootrec /?

g. That’s it! Now type exit, remove the DVD from the drive and hit Restart.

[——]

Case #2:  When you don’t have a retail-like installation DVD and you are stuck with the OEM restore disk)

Many of the OEM restore disks or some hidden partitions on your hard drive may actually restore your windows installation and lose all your settings and programs installed, sometimes it cannot restore the bootloader successfully. What if you dont, like me, wish to lose all the settings and programs installed. I ‘ve even trained very well the speach recognition software, I dont wanna lose it! In this case you have the following options:

  • Borrow a retail installation disk from a friend. You can even buy a new one or *cough* download it. And yet I think the download option is not desirable, because some warez downloads are stripped more or less in order to remove some “unnecessary” junk from the DVD to make it lighter, but in our case the Windows Recovery Console is definitively not junk. If you are lucky enough you may find one that has the Console intact.
  • Use the System Repair Disk. When you had your Windows working you had the option to create a system repair disk. Now that you didn’t, its time to download it from somewhere. And this somewhere is here.

I was quite lucky to find this one on the net, now it lies safely in my Public Dropbox folder. This is a rar archive containing both x86-32 & x86-64 (for 32-bit & 64-bit processors respectivelly). Uncompress it and burn the appropriate image. If you dont know which one of the two you have, chances are you have the 64-bit version. If its a netbook with an Atom Processor, you have to choose the 32-bit image.

When successfully burnt into a CD (can even use an 8cm small cd) boot it and repeat the steps from case #1, c to g.

[——]

Case #3: That absense of a DVD/CD drive I was talking about? Oh yeah, USB tricks come into play.

Your computer has to have the capability to boot from USB drives and hard disks. All modern computer have it, from as far as 2000, perhaps earlier. So if your computer doesnt have a DVD drive, it is definitelly able to boot from USB. In fact it may already been pre-configured by the BIOS manufacturer to boot from USB, so all you have to do is plug your bootable USB in! How can you create such a bootable usb? Follow the instructions bellow:

a. First we have to prepare the USB stick and make it bootable. You can use a great partitioning tool which is free of charge for personal use. Download it from here. When you run this program, select your USB drive and format it as FAT32 or NTFS. Better use FAT32 for cross platform compatibility. Label your stick as you see fit or… leave it blank if you like, but as for FAT32 use only capitals and only as many as 12 characters (I think). When you finish formating it right click again, select modify and then set active. Your USB now is ready for use.

b. Download the zip archive from here. Extract the zip somewhere. Lets say C:\image\ for reference purposes you can extract wherever you like.

c. Open up a command prompt (type cmd in the windows search box and hit enter, or navigate to All Programs -> Accessories -> Command Prompt)

d.  Now in the command prompt window type the following (use TAB for autocompletion):

CD \

CD image

CD boot

bootrec.exe /nt60 D: (or whichever drive letter your USB is currently mounted on)

e. Copy all the contents in the C:\image folder to your USB stick.

Your stick is complete, now repeat all the steps from case #1, c to g.

[——]

Case #3 can actually serve for something other as well, that is, creating a bootable USB contaning all the contents from the DVD installation media! Just insert your retail DVD disk and again in command prompt type the following:

D: (or wherever your drive is mounted on)

CD boot

bootrec.exe /nt60 E: (or whichever drive letter your USB is currently mounted on)

And last but not least copy all the DVD contents directly to your USB stick. Dont forget to grab one of at least 4 GB. As a matter of fact I think one with 8GBs capacity is better.

Good Luck!

Watch television with VLC and Archos 9

I think Archos 9 tends to be a little slow when it comes to decoding a DVB video while at the same time handling audio streaming from usb. It could be the processor…

I recently purchased a stick from Afatech, well to be honest an unbranded version of it, for watching television in Greece. Its cheap, compact and works in both Linux and Windows 7 flawlessly.

But in order to have a smooth video you have to make it work with VLC, because the bundled proprietary software BlazeVideo is heavy, bloated and you just cant select the appropriate output module and deinterlace method. Some of the following apply to Linux as well, DVB settings are for Greece (for your own country settings may vary) and finally it is not too much CPU intensive:

1) Install VLC if you havent done it already… look here: http://www.videolan.org/vlc/download-windows.html

2) Run it…

3) Tools – Preferences

4) Show settings – All

5) Advanced – Allow one running instance, Enqueue items to playlist when in one instance mode, Increase the priority of the process (Check all these)

6) Click Audio (parent setting) – Uncheck High quality audio resampling, Force detection of Dolby Surround Off, Replay gain mode None

7) Now expand Input / Codecs, Access Modules and go to DVB – Caching value in ms 1200 (milliseconds of cached video for fast access I think this setting is ok, but it was almost random)

8) Transpoder/multiplexer frequency 674000 (this is Athens/Greece specific)

9) Network Name, Network Name to Create – Anything you like (in Greece makes no difference whatever name you choose).

10) Adapter card to tune -1 (This is for those who have more than one DVB stick connected, -1 is automatic)

11) Inversion Mode – Undefined (I dont know yet whats this, but for me it didnt make any difference, better leave it as is)

12) Satellity settings are to be left unchanged

13) Modulation type – QAM64 (Greece specific)

14) ATSC settings are for different chips, therefore leave unchanged

15) FEC rate – 3/4 (Greece specific)

16) Terrestrial low priority stream code rate (FEC) – Undefined

17) Terrestrial bandwidth – 8 MHz (Greece specific)

18) Terrestrial transmision mode – 8k (Greece specific)

19) Now expand Video Codecs and select FFmpeg

20) Check if not already: (For Decoding) Direct rendering, Hurry up, Hardware decoding

21) Skip the loop filter for H.264 decoding – All

22) Now go to Video (parent settings) – Check these if not already: Enable Video, Embedded video, Drop late frames, Skip frames, Overlay video output, finally go to bottom of page – Deinterlace On – Deinterlace Method Mean

23) Expand Video now, go to Output modules and select DirectX (DirectDraw) video output. Here you can select Direct3D with its better quality video, but it is more CPU intensive and your video may become choppy and have frames lost eventually. Try either of these.

24) Εxpand Output modules go to DirectX deselect Use hardware YUV – RGB conversions and select Use triple buffering for overlays

25) Click save now.

26) At this point you can create a playlist with all the frequences for your country. In Greece for example we have four networks/channels for each frequency in standard definition, when you tune to a frequency go to Playback – Program to select the network/channel. VLC even supports teletext!. You can take this playlist for example:

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
	<title>Playlist</title>
	<trackList>
		<track>
			<location>dvb://frequency=682000000</location>
			<duration>3600000</duration>
			<extension application="http://www.videolan.org/vlc/playlist/0">
				<vlc:id>0</vlc:id>
				<vlc:option>dvb-adapter=0</vlc:option>
				<vlc:option>dvb-bandwidth=8:dvb-caching=900</vlc:option>
				<vlc:option>dvb-adapter=0</vlc:option>
				<vlc:option>dvb-device=0</vlc:option>
				<vlc:option>dvb-frequency=682000000</vlc:option>
				<vlc:option>dvb-inversion=2</vlc:option>
				<vlc:option>dvb-modulation=64</vlc:option>
				<vlc:option>dvb-code-rate-hp=3</vlc:option>
				<vlc:option>dvb-code-rate-lp=0</vlc:option>
				<vlc:option>dvb-bandwidth=8</vlc:option>
				<vlc:option>dvb-guard=8</vlc:option>
				<vlc:option>dvb-transmission=8</vlc:option>
				<vlc:option>dvb-hierarchy=-1</vlc:option>
				<vlc:option>file-caching=2400</vlc:option>
			</extension>
		</track>
		<track>
			<location>dvb://frequency=674000000</location>
			<duration>3600000</duration>
			<extension application="http://www.videolan.org/vlc/playlist/0">
				<vlc:id>1</vlc:id>
				<vlc:option>dvb-adapter=0</vlc:option>
				<vlc:option>dvb-bandwidth=8:dvb-caching=900</vlc:option>
				<vlc:option>dvb-adapter=0</vlc:option>
				<vlc:option>dvb-device=0</vlc:option>
				<vlc:option>dvb-frequency=674000000</vlc:option>
				<vlc:option>dvb-inversion=2</vlc:option>
				<vlc:option>dvb-modulation=64</vlc:option>
				<vlc:option>dvb-code-rate-hp=3</vlc:option>
				<vlc:option>dvb-code-rate-lp=0</vlc:option>
				<vlc:option>dvb-bandwidth=8</vlc:option>
				<vlc:option>dvb-guard=8</vlc:option>
				<vlc:option>dvb-transmission=8</vlc:option>
				<vlc:option>dvb-hierarchy=-1</vlc:option>
				<vlc:option>file-caching=2400</vlc:option>
			</extension>
		</track>
		<track>
			<location>dvb://frequency=690000000</location>
			<duration>3600000</duration>
			<extension application="http://www.videolan.org/vlc/playlist/0">
				<vlc:id>2</vlc:id>
				<vlc:option>dvb-adapter=0</vlc:option>
				<vlc:option>dvb-bandwidth=8:dvb-caching=900</vlc:option>
				<vlc:option>dvb-adapter=0</vlc:option>
				<vlc:option>dvb-device=0</vlc:option>
				<vlc:option>dvb-frequency=690000000</vlc:option>
				<vlc:option>dvb-inversion=2</vlc:option>
				<vlc:option>dvb-modulation=64</vlc:option>
				<vlc:option>dvb-code-rate-hp=3</vlc:option>
				<vlc:option>dvb-code-rate-lp=0</vlc:option>
				<vlc:option>dvb-bandwidth=8</vlc:option>
				<vlc:option>dvb-guard=8</vlc:option>
				<vlc:option>dvb-transmission=8</vlc:option>
				<vlc:option>dvb-hierarchy=-1</vlc:option>
				<vlc:option>file-caching=2400</vlc:option>
			</extension>
		</track>
	</trackList>
	<extension application="http://www.videolan.org/vlc/playlist/0">
			<vlc:item tid="0" />
	</extension>
</playlist>

Copy to a new text file and save as *.xspf. VLC should open it nativelly. Change program/channel by choosing playback – program. Original post here by me:

http://forum.archosfans.com/viewtopic.php?f=50&t=50885