<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Martin80</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Martin80"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Martin80"/>
	<updated>2026-05-06T02:04:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Problem_with_hard_drive_clicking&amp;diff=37550</id>
		<title>Problem with hard drive clicking</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Problem_with_hard_drive_clicking&amp;diff=37550"/>
		<updated>2008-05-03T18:46:46Z</updated>

		<summary type="html">&lt;p&gt;Martin80: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Many users have reported a '''problem with hard drive clicking''', sometimes described as a repeating '''tick tick tick''' type of ticking sound.&lt;br /&gt;
The [[Hitachi Travelstar 5K80]] series which shipped with many T series Thinkpads in particular is reported to suffer from this problem. The clicks occur rapidly, and are quiet but noticeable. While in use in a quiet environment the clicks can be relatively loud and very irritating to some users. The clicks seem to happen when the drive is idle and the power has been on for a significant period of time. The clicking is also reported on other vendor's laptop hard drives too and is therefore almost certainly a hard drive related rather than a laptop chassis related.&lt;br /&gt;
&lt;br /&gt;
The clicking sound appears to only occur when the drive is idle. Forcing the drive to be busy silences the ticking while the drive is busy. Launching programs that access the hard drive such as searching or defragmenting the drive helps for a time.  Cycling the power on the hard drive such as through a full power off reboot of the system stops the ticking for the moment and has been used as a temporary solution.  Also see use of hdparm for another way to reset the drive without a power off reboot.&lt;br /&gt;
&lt;br /&gt;
Others recommend using Hitachi's drive feature tool to increase the acoustic management level, and/or set power management settings.&lt;br /&gt;
&lt;br /&gt;
===Possible Cause and Speculation===&lt;br /&gt;
&lt;br /&gt;
Laptop drives (especially Hitachi [[Hitachi Travelstar 5K80]], [[Hitachi Travelstar 5K100]] and SAMSUNG MP0804H) can unload heads very often, and they can produce a noticeable click when doing that.  Some ThinkPad BIOSes can be very eager to program the HD Advanced Power Management feature (hdparm -B) even when told to always keep the HD in &amp;quot;Maximum Performance mode&amp;quot; and will do so every time AC state changes, and when coming out of suspend (be it S3 or S4).  Unless you reset the HD's APM mode, it will unload its heads eventually thus producing the clicks.&lt;br /&gt;
&lt;br /&gt;
Another proposed possible cause is the drive firmware running a low level surface media check periodically during drive idle time.&lt;br /&gt;
&lt;br /&gt;
It is not known whether the problem is a sign of impending drive failure. The root cause of the problem is not yet known.  It is quite likely to be a normal mode of drive operation. The problem is very prevalent.&lt;br /&gt;
&lt;br /&gt;
Do not confuse this with regular activity. Many daemons poll (config) files every few seconds. Despite files being cached, POSIX-compliant filesystems like ext2 or ext3 must update (=write) the last access time. More details and workaround in [[How to reduce power consumption#Hard_Drives]].&lt;br /&gt;
&lt;br /&gt;
===Tracking down the cause of the clicks===&lt;br /&gt;
&lt;br /&gt;
Using &amp;quot;'''smartctl -A'''&amp;quot;, it is possible to check if any of the drive's attributes related to platter spin-up/down or head unload are increasing when a click is heard.&lt;br /&gt;
That can help pinpointing the cause of the clicks.&lt;br /&gt;
&lt;br /&gt;
A shell script like this may help:&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
lastval=0&lt;br /&gt;
while :&lt;br /&gt;
do&lt;br /&gt;
        newval=`smartctl -A /dev/sda | awk '$2==&amp;quot;Load_Cycle_Count&amp;quot; {print $10}'`&lt;br /&gt;
        if [[ $newval != $lastval ]]    # i.e. anything has changed (here: load cycle count only)&lt;br /&gt;
        then&lt;br /&gt;
                date&lt;br /&gt;
                echo $newval&lt;br /&gt;
        fi&lt;br /&gt;
        lastval=$newval&lt;br /&gt;
        sleep 30    # or some other interval&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Possible solution (Linux)===&lt;br /&gt;
&lt;br /&gt;
Temporary relief has been seen by using '''hdparm''' to reset the drive.  But note the warning in the hdparm man page indicating that it is a dangerous operation. This is very likely due to the possibility of losing data in the write cache not yet stored to the hard drive.  This would be dependent upon the particular hard drive.  When used in the following to stop the clicking I have not seen any data loss.  YMMV.&lt;br /&gt;
&lt;br /&gt;
 # hdparm /dev/hda&lt;br /&gt;
 # sync&lt;br /&gt;
 # sleep 5&lt;br /&gt;
 # sync&lt;br /&gt;
 # hdparm -w /dev/hda&lt;br /&gt;
&lt;br /&gt;
The clicking noise apparently occurs when the drive is parking its heads (and ramping them off the drive surface in the process) after a timeout after the last disk access. Try turning off power management for the drive; that should stop the drive from parking the heads except when turning off:&lt;br /&gt;
&lt;br /&gt;
 # hdparm -B 255 /dev/hda&lt;br /&gt;
&lt;br /&gt;
You can also try&lt;br /&gt;
&lt;br /&gt;
 # hdparm -B 254 /dev/hda&lt;br /&gt;
&lt;br /&gt;
which doesn't turn power management off, but is the least agressive setting: it will still unload heads, but far less often.  The drives '''are''' prepared to withstand a great number of head unloads (200k unloads are typical, Hitachi drives tolerate about 600k unloads).&lt;br /&gt;
&lt;br /&gt;
These commands have immediate effect, and need to be re-issued at every boot, after resuming from disk or RAM, and after hotswapping.  '''You have to reissue the -B commands every time the ThinkPad BIOS might have tried to override them'''.&lt;br /&gt;
&lt;br /&gt;
===Specific models===&lt;br /&gt;
&lt;br /&gt;
====Hitachi C4K60 (HTC426060G9AT00)====&lt;br /&gt;
&lt;br /&gt;
On a Thinkpad X41 with a has a 60GB Hitachi C4K60 (HTC426060G9AT00) hard-disk that had the clicking problem (even in Windows), the hdparm  solution above did not work.  The problem was indeed caused by the hard-disk unloading the heads when idle, and the Load_Cycle_Count SMART statistic could be seen increasing when the clicks occurred.&lt;br /&gt;
&lt;br /&gt;
hdparm -B settings did not seem to help, and a check of the harddrives specs (available in [http://www.hitachigst.com/tech/techlib.nsf/products/Travelstar_C4K60   hitachigst.com]) verified that setting the APM mode off (hdparm -B 255) would set it actually to the lowest APM mode (the same as hdparm -B 254).  In this drive, even the lowest APM mode unloads the heads very aggressively causing the clicking sounds. Another problem is that the drive is rated only for 600000 unload/load cycles, which means that the drive will break in at most a couple of years. &lt;br /&gt;
&lt;br /&gt;
{{NOTE|This observation is only about the specific model (Hitachi C4K60), and is not true for more recent Hitachi drives, which do disable APM with -B 255.}}&lt;br /&gt;
&lt;br /&gt;
====Samsung MP0804H 80GB====&lt;br /&gt;
&lt;br /&gt;
On this drive, the ''clicking noise'' can be immediately stopped just by enabling ''automatic offline tests'' using&lt;br /&gt;
 # smartctl -o on /dev/hda  &lt;br /&gt;
Even more strange is that SMART wasn't enabled by default, although the drive supports it.&lt;br /&gt;
&lt;br /&gt;
The drive had already performed 15.539 load cycles (out of 600.000) within only one week.&lt;br /&gt;
&lt;br /&gt;
Note that enabling SMART (-s on) without enabling ''offline tests'' -- which is what I did immediately after observing the ''clicks'' -- did not solve the problem, but made it quite clear that the drive was ''badly in need of some care''.&lt;br /&gt;
&lt;br /&gt;
==== Seagate Momentus 7200.1 ====&lt;br /&gt;
(I got this drive in my x61 tablet)&lt;br /&gt;
&lt;br /&gt;
On this drive, each click does indeed correspond to an increase in SMART attribute 193, &amp;quot;193 Load_Cycle_Count&amp;quot;, as you can see by doing a &lt;br /&gt;
 # smartctl -A /dev/sda&lt;br /&gt;
&lt;br /&gt;
before and after a click.&lt;br /&gt;
&lt;br /&gt;
It seems like the problem is that the default powersaving mode for the drive is one which causes clicking. In fact, executing &lt;br /&gt;
 # hdparm -B 255 /dev/sda&lt;br /&gt;
(which is supposed to turn off power management) actually leaves power management on, and is equivalent to &lt;br /&gt;
 # hdparm -B 128 /dev/sda&lt;br /&gt;
&lt;br /&gt;
as you can see by comparing the results of&lt;br /&gt;
 # hdparm -B 1 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
 # hdparm -B 128 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
 # hdparm -B 254 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
 # hdparm -B 255 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
&lt;br /&gt;
This may or may not be related to something else strange; the drive reports that the Advanced power management level is 0x8000 more than what you set it to, presumably leading hdparm to report that it is always set to &amp;quot;unknown setting&amp;quot; (since the number should be between 1 and 255). FYI the results of the above sequence of commands is:&lt;br /&gt;
&lt;br /&gt;
 # hdparm -B 1 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
&lt;br /&gt;
 /dev/sda:&lt;br /&gt;
 setting Advanced Power Management level to 0x01 (1)&lt;br /&gt;
        Advanced power management level: unknown setting (0x8001)&lt;br /&gt;
           *    Advanced Power Management feature set&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # hdparm -B 128 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
&lt;br /&gt;
 /dev/sda:&lt;br /&gt;
 setting Advanced Power Management level to 0x80 (128)&lt;br /&gt;
        Advanced power management level: unknown setting (0x8080)&lt;br /&gt;
           *    Advanced Power Management feature set&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # hdparm -B 254 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
&lt;br /&gt;
 /dev/sda:&lt;br /&gt;
 setting Advanced Power Management level to 0xfe (254)&lt;br /&gt;
        Advanced power management level: unknown setting (0x80fe)&lt;br /&gt;
           *    Advanced Power Management feature set&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # hdparm -B 255 /dev/sda; hdparm -I /dev/sda | grep Advanced&lt;br /&gt;
&lt;br /&gt;
 /dev/sda:&lt;br /&gt;
 setting Advanced Power Management level to disabled&lt;br /&gt;
        Advanced power management level: unknown setting (0x8080)&lt;br /&gt;
                Advanced Power Management feature set&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The workaround seems to be to execute &lt;br /&gt;
 # hdparm -B 254 /dev/sda&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So it seems like the drive is interpreting &amp;quot;hdparm -B 255 /dev/sda&amp;quot;, which I'm guessing is the default (and which is supposed to be NOT powersaving mode) as a request to go into powersaving mode, which causes it to spin down alot and to and click. And I'm guessing that &amp;quot;hdparm -B 254 /dev/sda&amp;quot; actually takes it out of powersaving mode.&lt;br /&gt;
&lt;br /&gt;
Somewhat annoying because &lt;br /&gt;
 # smartctl -A /dev/sda&lt;br /&gt;
shows that I have already accumulated a Load_Cycle_Count 106680 after owning the laptop for just a few weeks! I'm not sure that I understand this stuff, but if this corresponds to &amp;quot;Load/Unload Cycles&amp;quot; in http://www.seagate.com/docs/pdf/datasheet/disc/ds_momentus7200.pdf, then that's more than 1/6 of the drive's lifetime!&lt;br /&gt;
&lt;br /&gt;
==== [http://sdd.toshiba.com/main.aspx?Path=HardDrivesOpticalDrives/2.5-inchHardDiskDrives/MK2035GSS/MK2035GSSSpecifications Toshiba MK2035GSS] ====&lt;br /&gt;
&lt;br /&gt;
Issue happens with &amp;quot;laptop mode&amp;quot; disabled. BIOS is an &amp;quot;AMIBIOS 8.00.14&amp;quot;, and the chipset is &amp;quot;Mobile Intel GM965 Express&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
I can solve the problem with the hdparm workaround, the lowest value that makes the trick for me is:&lt;br /&gt;
 # sudo hdparm -B 192 /dev/sda&lt;br /&gt;
&lt;br /&gt;
===Firmware upgrades===&lt;br /&gt;
&lt;br /&gt;
There are two HD firmware upgrades on Lenovo's support website. One is specific to X41's, and will upgrade Hitachi's to Release A0L0  (document [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-67238 MIGR-67238], 2007/01/24). The upgrade comes in three forms: diskette, windows executable or ISO CD-ROM image.&lt;br /&gt;
IBM's latest posted firmware, A5DA, does not appear to solve the problem. &lt;br /&gt;
&lt;br /&gt;
A newer upgrade set ([http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-62282 MIGR-62282], 2007/05/02) updates  HD firmwares of several brands, including Hitachi. The patch upgrades firmware for HTC4260xxG9AT00 to  A0L2 (according to program output, from 00P3A0B5 to 00P3A0L2). The upgrade comes in a large  (20 MB) ISO format, or as several diskettes. There is seemingly no windows executable; therefore upgrading a diskless machine can be problematic (it involves making a DOS-based USB bootable drive).&lt;br /&gt;
&lt;br /&gt;
The upgrade caused one X41 Tablet HTC426060G9AT00 drive to stop clicking.&lt;br /&gt;
&lt;br /&gt;
===Another Possible Solution===&lt;br /&gt;
&lt;br /&gt;
IBM, when notified about this occurance, may replace the drive with a Fujitsu 5k 80GB hard drive, as to them the sound is indicative of a potential hard drive failure.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*Ubuntu reported bugs: [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 59695] [https://bugs.launchpad.net/ubuntu/+bug/104535 104535]&lt;br /&gt;
*[http://www.hitachigst.com/hdd/support/download.htm Hitachi Global Storage Technologies Downloads] - The drive feature tool may help with this problem.&lt;br /&gt;
*[http://forum.thinkpads.com/viewtopic.php?t=7462 Thread on thinkpads.com]&lt;br /&gt;
*[http://notebookforums.com/showthread.php?t=46058 Thread on notebookforums.com]&lt;br /&gt;
*[http://forums.silentpcreview.com/viewtopic.php?p=143203 Thread on silentpcreview.com]&lt;br /&gt;
*[http://forum.thinkpads.com/viewtopic.php?t=15769 Another Thread on thinkpads.com]&lt;br /&gt;
*[http://www.tabletpcbuzz.com/forum/topic.asp?TOPIC_ID=28538&amp;amp;whichpage=1 Thread on tabletpcbuzz.com]&lt;br /&gt;
*[http://thinkpad-forum.de/forum/viewtopic.php?t=2255 German Thread on thinkpad-forum.de (Containing an interesting remark about a possible problem with the Cache)]&lt;br /&gt;
&lt;br /&gt;
[[Category:T40]] [[Category:T41]] [[Category:T42]] [[Category:T43]] [[Category:X41]] [[Category:G41]]&lt;/div&gt;</summary>
		<author><name>Martin80</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37524</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37524"/>
		<updated>2008-05-01T00:36:16Z</updated>

		<summary type="html">&lt;p&gt;Martin80: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Freecom FS-50 USB DVD recorder, upgraded BIOS from version 1.10 to 2.07&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to a new directory HPUSBF\ (using WinRAR, 7zip or similar).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW.EXE utility, selecting the location of system files as C:\DriveKey\HPUSBF, and let it format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 4 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I (Martin Aulbach) followed these clear instructions and updated my X61t (from BIOS v1.08 to v1.10) without any problems and with a nice graphic splash screen. It is not necessary to let Windows format the USB stick as a MS-DOS startup disk, as outlined in Approach 3. The HP format tool will take care of this (in Step 5) and the USB stick will boot sucessfully at startup (correct boot order provided).&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;/div&gt;</summary>
		<author><name>Martin80</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37523</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37523"/>
		<updated>2008-05-01T00:16:31Z</updated>

		<summary type="html">&lt;p&gt;Martin80: /* Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Freecom FS-50 USB DVD recorder, upgraded BIOS from version 1.10 to 2.07&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to a new directory HPUSBF\ (using WinRAR, 7zip or similar).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW.EXE utility, selecting the location of system files as C:\DriveKey\HPUSBF, and let it format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;/div&gt;</summary>
		<author><name>Martin80</name></author>
		
	</entry>
</feed>