Skip to main content

How to flash the Bios using a DOS USB Flash drive

This tutorial might delete your hard-drive or usb-drive data, in case you do not understand how partitions work, avoid this tutorial


Install gparted and run:
sudo apt-get install gparted
sudo gparted

- Select the the USB drive, delete all partitions and click apply.

- Create a new FAT16 partition, apply


- Format FAT16 partition, apply



- Set boot flag, set label to DOS




After all this is done, you should have a pen with a DOS partition. The drive I'm using is assigned to sdf1 partition.

sudo apt-get install dosemu

# some usb drives mount on the same drive as the cdrom, so we are changing it to be safe
sudo gedit /etc/dosemu/freedos/autoexec.bat



Create this file /home/youruser/dosemurc
Put the correct partition used in gparted section:

$_hdimage = "drives/* /dev/sdf1"

Save the file and execute

sudo dosemu -f /home/youruser/dosemurc

# as you can see the flash drive was assign to drive E under DOS

Type
> Z:
to change to the drive that contains the OS binaries and then type
> sys E:
to copy all needed files to make DOS boot.


You can close dosemu, and remove the USB drive.
Plug it again to see a DOS drive on the desktop.
Now copy all the needed files to flash your bios.

NOTE: I'm not sure, but I think FAT16 should only work for USB drives with 4GB partitions or lower, so if you have a USB drive bigger than 4GB just create a partition with less than 4GB, and leave the rest as free space.

Popular posts from this blog

Ubuntu 17.10 running on Lenovo Yoga 920 with HiDPI and touch screen support

I resized the windows partiton to the minimun necessary (100G), disabled secure boot and I also remove bitlocker key encryption on windows drive, this allows Ubuntu to see that partition and allow windows to boot with secure boot disabled, without complaning.

This makes everything go easier if you want to keep windows arround on the same disk and dual boot with Ubuntu, you should do this it helps a lot. Even after you disable this, you can re-enable it back, both secure boot and bitlocker key encryption.

Before installing on windows updates resize your windows partition, installing all windows updates will not alow you to gain as much space as possible. After resizing the windows partition to the minimium size you want, install all windows updates, bios and driver updates.

I upgraded all windows updates to the latest version and all drivers to the latest version and upgraded the bios on windows to the latest version before installing Ubuntu, I don't think this makes much differenc…

Ubuntu 17.10 review. Running with hidpi, touch screen and wayland support

Ubuntu GNOME 17.10

I think Ubuntu GNOME is the best flavor of Ubuntu if you are running in HiDPI mode 3200x1800 with a touchscreen. All screen captured images are at HiDPI resolution.

Since I prefer the standard gnome-session experience, I installed the "gnome-session" package and rebooted the system. And on the cog icon next to the sign in button, select the "GNOME" instead of ''Ubuntu" option before clicking the sign in button.

sudo apt install gnome-session

Touchpad
I increased the speed, enabled "tap to click", "two finger scrooling". and on gnome-tweak enabled click method to "fingers".
Touch support Ubuntu gnome support for touchscreen is pretty good on the desktop.
Chromium browser supports touch screen very well and much better than Firefox without any plug-ins.
In my Yoga pro 2, the windows key on the screen panel works as the windows key on the keyboard.
Screen rotation is supported on the new gnome and disables …

Using a socks proxy

#ssh to a machine on the network you need access and start # a local socks server ssh -D 9999 httpserver.blah.com
# setweb browser proxy to proxy: localhost:9999
# To use other apps with socks install sudo apt-get install tsocks
# Change config file to (remove everything else) /etc/tsocks.conf server = 127.0.0.1 server_port = 9999
# ssh to a machine tsocks ssh -X httpserver.blah.com
# eclipse to a machine tsocks eclipse
reference: using tsocks for tunneling cmds lines and everything else http://www.plenz.com/tunnel-everything