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.
1 comment

Popular posts from this blog

How to install Cura 2.X on Ubuntu 17.04

How to install Cura 2.X on Ubuntu

Cura is not available on ubuntu Repositories on version 17.10.

The resolution: To fix this issue you will need to install a PPA repository.

How to get this archive working properly is found here https://launchpad.net/~thopiekar/+archive/ubuntu/cura

rm -f ~/.config/cura/*
rm -f ~/.local/cura/*
sudo add-apt-repository ppa:thopiekar/cura
sudo apt-get update
sudo apt install cura cura-plugins-all cura-extra-plugins-all


Ubuntu GNOME 16.04 running on Yoga Pro 2 with HiDPI and touch screen support

Ubuntu GNOME 16.04 running on Yoga Pro 2 with HiDPI and touch screen support






See my previous post on how to install Ubuntu on Yoga Pro 2 for Ubuntu GNOME 15.10.

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

Ubuntu 16.04 is not released yet, the screen shoots are from a daily build, 16.04 it is scheduled to be released in Q2 2016.
Touch support Ubuntu gnome support for touch screen is pretty good on the desktop shell.
Chrome browser supports touch screen very well and much better than Firefox without any plug-ins.
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 the keyboard when the yoga is used as a tablet, but sometimes screen does not rotate, I'm still trying to figure out what is wrong.
Yoga Keys boot key
F12 - Boot menu to select booting from usb drive
F2 - Bios Menu

Power down the co…

Ubuntu GNOME 17.04 running with HiDPI and touch screen support

Ubuntu GNOME 17.04 running with HiDPI and touch screen support








See my previous post on how to install Ubuntu on Yoga Pro 2 for Ubuntu GNOME 16.10.

I think Ubuntu GNOME is the best flavor of Ubuntu if you are running in HiDPI mode 3200x1800. All screen captured images are at HiDPI resolution.
Touch support Ubuntu gnome support for touch screen is pretty good on the desktop shell.
Chrome browser supports touch screen very well and much better than Firefox without any plug-ins.
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 the keyboard when the yoga is used as a tablet, side lock rotation button works to lock the screen in a certain rotation.



 What works Almost everything works great out of the box, there isn't many changes you need to do.
UbuntuGnome ships with gnome 3.24 and will boot with full resolution HiDPI and touch screen support enabled
Screen HiDPI supportBrightness, resolution keys, o…