---
GOAL: Flash Lenovo X61 tablet PC using only Linux and a USB stick following
the Linux-only instructions at:
http://ubuntuforums.org/showthread.php?t=817897
---
Placed a WinXP formatted 4GB SanDisk USB stick (FAT32) in the Lenovo X61 tablet
left-side USB slot and a WinXP formatted 250MB IBM USB stick (FAT16) in the
Lenovo X61 tablet right-side front USB slot.
The USB icon for each automatically showed up on the Ubuntu 10.04 desktop.
---
Confirm the two USB sticks are /dev/sdb1 and /dev/sdc1 respectively:
$ sudo fdisk -l
Reported:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
(blah blah blah)
Disk /dev/sdb: 4022 MB, 4022337024 bytes
255 heads, 63 sectors/track, 489 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0502fe69
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 490 3928032 b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(488, 254, 63) logical=(489, 5, 27)
Disk /dev/sdc: 255 MB, 255852544 bytes
128 heads, 4 sectors/track, 976 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x04d704d6
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 976 249854 6 FAT16
QUESTION: What's /dev/sdb versus /dev/sdb1 & /dev/sdc versus /dev/sdc1?
ANSWER: /dev/sdb is the identifier for the device (the whole drive), while
/dev/sdb1 is the identifier for the partition. We happen to have
one partition on each drive, but we could have had more partitions.
If we did have more partitions, we'd have /dev/sdb2, /dev/sdb3, etc.
---
Obtained win98usb.tar from:
http://ubuntuforums.org/attachment.p...6&d=1243462998
$ tar -xf ./win98usb.tar
$ ls -a win98usb.img
Reported:
-rw-r--r-- 1 x x 621568 2009-05-27 14:14 win98usb.img
---
$ sudo umount -f /dev/sdb1
$ sudo umount -f /dev/sdc1
Note: This removed both USB stick icons from the Ubuntu desktop.
---
$ sudo dd if=win98usb.img of=/dev/sdb conv=notrunc
$ sudo dd if=win98usb.img of=/dev/sdc conv=notrunc
Reported:
1214+0 records in
1214+0 records out
621568 bytes (622 kB) copied, 0.858151 s, 724 kB/s
1214+0 records in
1214+0 records out
621568 bytes (622 kB) copied, 1.86486 s, 333 kB/s
---
$ sudo mkdir /mnt/usb1
$ sudo mkdir /mnt/usb2
---
$ sudo mount -t vfat /dev/sdb1 /mnt/usb1
$ sudo mount -t vfat /dev/sdc1 /mnt/usb2
Both no longer reported:
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
$ dmesg | tail
No longer reported:
[190037.547196] FAT: invalid media value (0xb9)
[190037.547201] VFS: Can't find a valid FAT filesystem on dev sdb1.
[190163.630243] FAT: invalid media value (0xb9)
[190163.630249] VFS: Can't find a valid FAT filesystem on dev sdc1.
---
$ ls -alsF /mnt/usb[1,2]
Now reported for both USB sticks:
total 356
32 drwxr-xr-x 2 root root 16384 1969-12-31 16:00 ./
4 drwxr-xr-x 4 root root 4096 2010-08-20 22:30 ../
96 -r-xr-xr-x 1 root root 93880 1998-05-11 19:01 COMMAND.COM*
224 -r-xr-xr-x 1 root root 222390 1998-05-11 19:01 IO.SYS*
0 -r-xr-xr-x 1 root root 0 1998-05-11 19:01 MSDOS.SYS*
---
$ mount -l | grep sd[b,c]1
No longer reported:
Nothing
It now reported:
/dev/sdb1 on /mnt/usb1 type vfat (rw)
/dev/sdc1 on /mnt/usb2 type vfat (rw)
QUESTION: Why /dev/sdb1 & /dev/sdc1 not show up in the mount list command?
ANSWER: It does now that we fixed the dd command!
---
$ sudo mount -o loop `pwd`/7suj18uc.iso /cdrom/
$ ls /cdrom/
Reports:
$01B6200.FL1 06f5.hsh 06fb.hsh CHKBMP.EXE PHLASH16.EXE USERINT.EXE
$01B6200.FL2 06F5.PAT 06FB.PAT COMMAND.COM PREPARE.EXE UTILINFO.EXE
06f1.hsh 06f9.hsh 06fd.hsh FLASH2.EXE README.TXT
06F1.PAT 06F9.PAT 06FD.PAT lcreflsh.bat TPCHKS.EXE
06f4.hsh 06fa.hsh 10661.hsh LOGO.BAT UPDTFLSH.EXE
06F4.PAT 06FA.PAT 10661.PAT LOGO.SCR UPDTMN.EXE
---
$ sudo cp -af /cdrom/* /mnt/usb1/
$ sudo cp -af /cdrom/* /mnt/usb2/
$ ls -l /mnt/usb[1,2]/COMMAND.COM
Reported:
-r-xr-xr-x 1 root root 7376 2008-01-30 07:00 /mnt/usb1/COMMAND.COM
-r-xr-xr-x 1 root root 7376 2008-01-30 07:00 /mnt/usb2/COMMAND.COM
---
We're now ready to flash that BIOS!
---