How do I make a bootable Ubuntu USB?
How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?
For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?
live-usb
add a comment |
How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?
For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?
live-usb
add a comment |
How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?
For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?
live-usb
How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?
For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?
live-usb
live-usb
edited Dec 3 '16 at 19:45
Zanna
50.2k13133241
50.2k13133241
asked Apr 28 '13 at 4:11
MathCubes
3,07583358
3,07583358
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
This flowchart shows how to make a bootable USB for installing Ubuntu and troubleshoot problems booting Ubuntu from it.
In Windows 10 the dd
command can be run from Bash on Windows. Bash on Windows is a full, Ubuntu-based Bash shell that can run Linux software directly.
Links
How to create a bootable USB stick on Windows
Ubuntu on 32-bit UEFI-based tablet PC
How to make an Ubuntu USB on Ubuntu using Startup Disk Creator
Ubuntu has a built-in application for creating a bootable Ubuntu live USB for installing Ubuntu called Startup Disk Creator. Search the Dash for Startup Disk Creator and click the Startup Disk Creator icon to open the Make Startup Disk window.
The USB flash drive that you use with Startup Disk Creator should be 2GB or larger, and for Ubuntu 18.04 and later it should be 4GB or larger. Startup Disk Creator will automatically format your USB flash drive to FAT32 and make it bootable. If you have only one USB flash drive plugged in to your computer, Startup Disk Creator will select it automatically. Be very careful to select the USB flash drive in the Make Startup Disk window in order to avoid overwriting the partition which Ubuntu is installed on, which may make Ubuntu unbootable. In the screenshot below you can see how the USB flash drive Device is identified by its model name, the same model name that appears under the Drive heading after Model: in the Disks (disk utility) application.
Startup Disk Creator in Ubuntu 16.04
You can also move the Stored in reserved extra space slider back and forth to create some reserved extra space for persistent file storage across reboots. In Ubuntu 16.04 and later Startup Disk Creator no longer has the persistent file storage option.
How to make an Ubuntu Minimal USB using dd
Download the Ubuntu Mini CD iso file from the link on the Ubuntu Documentation Installation Minimal CD webpage. Download the file called mini.iso to your Downloads folder. You can download the mini.iso file to wherever on your computer that you want, but download it to your Downloads folder so that you can easily run the commands in the following steps without changing anything.
Verify the md5 checksum of the Ubuntu mini CD iso file that you downloaded by running these commands:
cd ~/Downloads/
md5sum 'mini.iso'
If you are using Windows Subsystem for Linux download the Microsoft File Checksum Integrity Verifier tool from the official Microsoft Download Center. The Microsoft File Checksum Integrity Verifier tool is a command line utility that computes MD5 or SHA1 cryptographic hashes for files.
Check that the results of the command match the MD5 checksum of the mini.iso file on the Ubuntu Documentation Installation Minimal CD webpage.
Get a USB flash drive, 1GB or larger. Delete all the files from the USB flash drive. Mount the flash drive using the Disks disk utility.
Check in the Disks disk utility to find out the device name of your USB flash drive. This is very important because if you use the wrong device name in step 6, you will overwrite your whole operating system instead of writing to the USB flash drive. So check the USB flash drive device name twice. It should be something like
/dev/sd*
where instead of the * character there is a lower case letter like a, b, c, etc. In the following step I am assuming that the device name is/dev/sdc
, but the device name of your USB drive could be something else like/dev/sda
or/dev/sdb
so check the device name of your USB drive twice and make sure that you get it right in step 6!
Open the terminal or Windows Subsystem for Linux and run the following commands:
cd ~/Downloads/
sudo -i
dd if='mini.iso' of=/dev/sdc bs=4096 ## make sure that the device name of your USB drive is correct!
The
dd if='mini.iso' of=/dev/sdc bs=4096
command should take only a few seconds to complete on most computers because the mini.iso is a small file, less than 60MB. The result of running this command will be a bootable Ubuntu mini USB.
Boot the computer from the Ubuntu mini live USB. The Ubuntu mini live USB should boot successfully and show a menu screen.
If you select the Install option (the complete install, not the cli install) from the menu screen in Step 7, then you can select other options during the Ubuntu installation process to download all the packages that you need to perform a complete Ubuntu installation. Select the Ubuntu desktop package collection from the list of predefined collections of software in the Software selection screen in the Ubuntu mini CD installer. When you restart the system at the end of the installation, you will have a working Ubuntu desktop with the default desktop environment.
How to create a bootable USB stick on OS X/macOS
- How do I get my Mac to boot from an Ubuntu USB key?
But it only works on Ubuntu Base Distro/ Ubuntu itshelf.
– MathCubes
Apr 21 '14 at 6:48
2
That's right, whereas UNetbootin is cross-platform, but the Startup Disk Creator has one nice feature that UNetbootin doesn't have. Startup Disk Creator identifies the USB drive by its model name rather than by a cryptic looking device name like/dev/sdb1
. This gives the user added protection against overwriting the operating system because of accidentally formatting the wrong drive.
– karel
Apr 21 '14 at 6:55
I had problems with Unetbootin before like not installing the bootloader... ect.
– MathCubes
Apr 21 '14 at 6:58
dd for windows Usage:dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress]
whereFILE
inif=FILE of=FILE
has the same syntax as file locations do in the Windows commandline (cmd.exe).
– karel
Sep 17 '15 at 14:00
Running thiswmic
command in the Windows cmd.exe window shows all removable drives as follows:wmic logicaldisk where drivetype=2 get deviceid, volumename, description
Examples of source path (input file) and target path (output file) syntax in Windows cmd.exe: source path: C:aaabbb whereC:
is hard drive. target path: F:xxxyyy whereF:
is USB flash drive which was identified by runningwmic
command. Examples of dd for windows commands: Visit this link and the examples are under the heading called Examples.
– karel
Sep 17 '15 at 14:04
|
show 1 more comment
You need: a flash drive, a PC/Mac, the ISO file for Ubuntu, which can be obtained here: http://www.ubuntu.com/download/desktop. Here are the instructions for...
Windows: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows
Mac: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Ubuntu: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu
3
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Braiam
Sep 26 '13 at 12:42
add a comment |
Recent distributions of Ubuntu include the boot info to boot directly from both optical disk and hard media (flash drive, etc.)
You can simply duplicate the content of the iso to the USB device using a linux system you would use the command sudo dd if=my.ubuntu.release.iso of=/dev/sdX
where sdX is your flash drive which you can identify with the command sudo fdisk -l
Remember to check the hash before spending the time to copy to insure that your iso file is valid.
add a comment |
Full Install to USB
Full installs are more stable and secure than persistent installs, but not as quick to make. They are better at utilizing disk space as no fixed size casper-rw file or partition is required. They are not very good for use of installing Ubuntu.
Following is a step by step how to install 18.04 on a 16GB flash drive with options for separate Home partition and Windows compatible data partition:
- Create a live USB or DVD using SDC, UNetbootin, mkusb, etc.
- Turn off and unplug the computer. (See note at bottom)
- Remove the cover.
- Unplug the power cable from the hard drive or unplug the hard drive from the laptop.
- Plug the computer back in.
- Insert the flash drive.
- Insert the Live USB or Live DVD.
- Start the computer, the USB/DVD should boot.
- Select language.
- Select install Ubuntu.
- Select Keyboard layout
- Select "Continue".
- Select installation type and "Download updates while installing Ubuntu" and Select "Install third-party software ...", (optional).
- Select "Continue".
- At "Installation type" select "Something else". (Full disk encryption is not working with flash drives).
- Select "Continue".
- Confirm target device is correct.
- Select "New Partition Table".
- Click Continue on the drop down.
(Optional FAT32 data partition for use on Windows machine)
- Click "Free space" and "+".
- Make "Size..." about 2000 MB.
- Select "Primary".
- Location = "Beginning of this space".
- "Use as:" = "FAT32 file system".
- "Mount point" = "/windows".
- Select "OK"
(Non Optional Root Partition)
- Click "free space" and then "+".
- Select "Primary", "Size ..." = 4500 to 6000 MB, "Beginning of this space", Ext4, and Mount point = "/" then OK.
(Optional home partition)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = 1000 to 6000 MB, Beginning of this space, Ext2, and Mount point = "/home" then OK.
(Optional swap space, allows hibernation)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = remaining space, (1000 to 2000 megabytes, or same size as RAM), Beginning of this space and "Use as" = "swap area" then OK.
(Important)
- Confirm "Device for boot loader installation" points to the root of the USB drive. Default should be OK if HDD was unplugged.
Click "Install Now".
Select your location.
- Select "Continue".
- Insert your name, computer name, username, password and select if you want to log in automatically or require a password.cscameron
- Select "Continue".
- Wait until install is complete.
- Turn off computer and plug in the HDD.
- Replace the computer's cover.
Note:
You may omit disabling the hard drive if after partitioning you choose to install grub to the root of the USB drive you are installing Ubuntu to, (ie sdb not sdb1). Be cautious, many people have overwritten the HDD MBR as default location for boot loader is sda, any items in the internal drive's grub will be added to the USB's grub.
You may do an update-grub later.
add a comment |
Use Unetbootin.It works in Ubuntu(from Software Center) and Windows(from Unetbootin site) also.Download the iso of Ubuntu you want, download Unetbootin, make it, enjoy it.
add a comment |
Full Install to USB - BIOS/UEFI
Mkusb makes a great base for a Full Install USB drive able to boot from both BIOS and UEFI:
Use mkusb to make a Live system on the Installer USB (2GB or larger).
Use mkusb to make a Persistent system on the Target 128GB USB using default settings with ~25GB persistence, (remaining NTFS partition is used as Windows accessible data partition).
As soon as mkusb finishes, open GParted and delete sdx4, the ISO9660 partition and expand sdx5 into the recovered space, sdx being the device name of the Target drive.
Create a extra ext4 partition sdx6 for /home if desired.
Unplug or remove HDD before proceeding further, (optional but recommended, highly recommended in UEFI mode).
Boot Installer drive, select Try.
Insert Target drive
Start Install Ubuntu...
Select "Something else".
Select sdx5, (on the target drive), and click Change.
- Select Use as: ext4, Format and Mount point: /.
Don't touch any other partitions (unless adding a /home partition to sdx6).
Select sdx5 as Device for boot loader installation.
Complete installation.
Cut grub.cfg from sdx5/boot/grub and paste to sdx3/boot/grub, overwriting the existing grub.cfg file.
Boot the target drive and run sudo update-grub to add all drives to boot menu.
Do not install any propriety drivers, (ie Nvidia), on pre-18.04 installs.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f287064%2fhow-do-i-make-a-bootable-ubuntu-usb%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
This flowchart shows how to make a bootable USB for installing Ubuntu and troubleshoot problems booting Ubuntu from it.
In Windows 10 the dd
command can be run from Bash on Windows. Bash on Windows is a full, Ubuntu-based Bash shell that can run Linux software directly.
Links
How to create a bootable USB stick on Windows
Ubuntu on 32-bit UEFI-based tablet PC
How to make an Ubuntu USB on Ubuntu using Startup Disk Creator
Ubuntu has a built-in application for creating a bootable Ubuntu live USB for installing Ubuntu called Startup Disk Creator. Search the Dash for Startup Disk Creator and click the Startup Disk Creator icon to open the Make Startup Disk window.
The USB flash drive that you use with Startup Disk Creator should be 2GB or larger, and for Ubuntu 18.04 and later it should be 4GB or larger. Startup Disk Creator will automatically format your USB flash drive to FAT32 and make it bootable. If you have only one USB flash drive plugged in to your computer, Startup Disk Creator will select it automatically. Be very careful to select the USB flash drive in the Make Startup Disk window in order to avoid overwriting the partition which Ubuntu is installed on, which may make Ubuntu unbootable. In the screenshot below you can see how the USB flash drive Device is identified by its model name, the same model name that appears under the Drive heading after Model: in the Disks (disk utility) application.
Startup Disk Creator in Ubuntu 16.04
You can also move the Stored in reserved extra space slider back and forth to create some reserved extra space for persistent file storage across reboots. In Ubuntu 16.04 and later Startup Disk Creator no longer has the persistent file storage option.
How to make an Ubuntu Minimal USB using dd
Download the Ubuntu Mini CD iso file from the link on the Ubuntu Documentation Installation Minimal CD webpage. Download the file called mini.iso to your Downloads folder. You can download the mini.iso file to wherever on your computer that you want, but download it to your Downloads folder so that you can easily run the commands in the following steps without changing anything.
Verify the md5 checksum of the Ubuntu mini CD iso file that you downloaded by running these commands:
cd ~/Downloads/
md5sum 'mini.iso'
If you are using Windows Subsystem for Linux download the Microsoft File Checksum Integrity Verifier tool from the official Microsoft Download Center. The Microsoft File Checksum Integrity Verifier tool is a command line utility that computes MD5 or SHA1 cryptographic hashes for files.
Check that the results of the command match the MD5 checksum of the mini.iso file on the Ubuntu Documentation Installation Minimal CD webpage.
Get a USB flash drive, 1GB or larger. Delete all the files from the USB flash drive. Mount the flash drive using the Disks disk utility.
Check in the Disks disk utility to find out the device name of your USB flash drive. This is very important because if you use the wrong device name in step 6, you will overwrite your whole operating system instead of writing to the USB flash drive. So check the USB flash drive device name twice. It should be something like
/dev/sd*
where instead of the * character there is a lower case letter like a, b, c, etc. In the following step I am assuming that the device name is/dev/sdc
, but the device name of your USB drive could be something else like/dev/sda
or/dev/sdb
so check the device name of your USB drive twice and make sure that you get it right in step 6!
Open the terminal or Windows Subsystem for Linux and run the following commands:
cd ~/Downloads/
sudo -i
dd if='mini.iso' of=/dev/sdc bs=4096 ## make sure that the device name of your USB drive is correct!
The
dd if='mini.iso' of=/dev/sdc bs=4096
command should take only a few seconds to complete on most computers because the mini.iso is a small file, less than 60MB. The result of running this command will be a bootable Ubuntu mini USB.
Boot the computer from the Ubuntu mini live USB. The Ubuntu mini live USB should boot successfully and show a menu screen.
If you select the Install option (the complete install, not the cli install) from the menu screen in Step 7, then you can select other options during the Ubuntu installation process to download all the packages that you need to perform a complete Ubuntu installation. Select the Ubuntu desktop package collection from the list of predefined collections of software in the Software selection screen in the Ubuntu mini CD installer. When you restart the system at the end of the installation, you will have a working Ubuntu desktop with the default desktop environment.
How to create a bootable USB stick on OS X/macOS
- How do I get my Mac to boot from an Ubuntu USB key?
But it only works on Ubuntu Base Distro/ Ubuntu itshelf.
– MathCubes
Apr 21 '14 at 6:48
2
That's right, whereas UNetbootin is cross-platform, but the Startup Disk Creator has one nice feature that UNetbootin doesn't have. Startup Disk Creator identifies the USB drive by its model name rather than by a cryptic looking device name like/dev/sdb1
. This gives the user added protection against overwriting the operating system because of accidentally formatting the wrong drive.
– karel
Apr 21 '14 at 6:55
I had problems with Unetbootin before like not installing the bootloader... ect.
– MathCubes
Apr 21 '14 at 6:58
dd for windows Usage:dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress]
whereFILE
inif=FILE of=FILE
has the same syntax as file locations do in the Windows commandline (cmd.exe).
– karel
Sep 17 '15 at 14:00
Running thiswmic
command in the Windows cmd.exe window shows all removable drives as follows:wmic logicaldisk where drivetype=2 get deviceid, volumename, description
Examples of source path (input file) and target path (output file) syntax in Windows cmd.exe: source path: C:aaabbb whereC:
is hard drive. target path: F:xxxyyy whereF:
is USB flash drive which was identified by runningwmic
command. Examples of dd for windows commands: Visit this link and the examples are under the heading called Examples.
– karel
Sep 17 '15 at 14:04
|
show 1 more comment
This flowchart shows how to make a bootable USB for installing Ubuntu and troubleshoot problems booting Ubuntu from it.
In Windows 10 the dd
command can be run from Bash on Windows. Bash on Windows is a full, Ubuntu-based Bash shell that can run Linux software directly.
Links
How to create a bootable USB stick on Windows
Ubuntu on 32-bit UEFI-based tablet PC
How to make an Ubuntu USB on Ubuntu using Startup Disk Creator
Ubuntu has a built-in application for creating a bootable Ubuntu live USB for installing Ubuntu called Startup Disk Creator. Search the Dash for Startup Disk Creator and click the Startup Disk Creator icon to open the Make Startup Disk window.
The USB flash drive that you use with Startup Disk Creator should be 2GB or larger, and for Ubuntu 18.04 and later it should be 4GB or larger. Startup Disk Creator will automatically format your USB flash drive to FAT32 and make it bootable. If you have only one USB flash drive plugged in to your computer, Startup Disk Creator will select it automatically. Be very careful to select the USB flash drive in the Make Startup Disk window in order to avoid overwriting the partition which Ubuntu is installed on, which may make Ubuntu unbootable. In the screenshot below you can see how the USB flash drive Device is identified by its model name, the same model name that appears under the Drive heading after Model: in the Disks (disk utility) application.
Startup Disk Creator in Ubuntu 16.04
You can also move the Stored in reserved extra space slider back and forth to create some reserved extra space for persistent file storage across reboots. In Ubuntu 16.04 and later Startup Disk Creator no longer has the persistent file storage option.
How to make an Ubuntu Minimal USB using dd
Download the Ubuntu Mini CD iso file from the link on the Ubuntu Documentation Installation Minimal CD webpage. Download the file called mini.iso to your Downloads folder. You can download the mini.iso file to wherever on your computer that you want, but download it to your Downloads folder so that you can easily run the commands in the following steps without changing anything.
Verify the md5 checksum of the Ubuntu mini CD iso file that you downloaded by running these commands:
cd ~/Downloads/
md5sum 'mini.iso'
If you are using Windows Subsystem for Linux download the Microsoft File Checksum Integrity Verifier tool from the official Microsoft Download Center. The Microsoft File Checksum Integrity Verifier tool is a command line utility that computes MD5 or SHA1 cryptographic hashes for files.
Check that the results of the command match the MD5 checksum of the mini.iso file on the Ubuntu Documentation Installation Minimal CD webpage.
Get a USB flash drive, 1GB or larger. Delete all the files from the USB flash drive. Mount the flash drive using the Disks disk utility.
Check in the Disks disk utility to find out the device name of your USB flash drive. This is very important because if you use the wrong device name in step 6, you will overwrite your whole operating system instead of writing to the USB flash drive. So check the USB flash drive device name twice. It should be something like
/dev/sd*
where instead of the * character there is a lower case letter like a, b, c, etc. In the following step I am assuming that the device name is/dev/sdc
, but the device name of your USB drive could be something else like/dev/sda
or/dev/sdb
so check the device name of your USB drive twice and make sure that you get it right in step 6!
Open the terminal or Windows Subsystem for Linux and run the following commands:
cd ~/Downloads/
sudo -i
dd if='mini.iso' of=/dev/sdc bs=4096 ## make sure that the device name of your USB drive is correct!
The
dd if='mini.iso' of=/dev/sdc bs=4096
command should take only a few seconds to complete on most computers because the mini.iso is a small file, less than 60MB. The result of running this command will be a bootable Ubuntu mini USB.
Boot the computer from the Ubuntu mini live USB. The Ubuntu mini live USB should boot successfully and show a menu screen.
If you select the Install option (the complete install, not the cli install) from the menu screen in Step 7, then you can select other options during the Ubuntu installation process to download all the packages that you need to perform a complete Ubuntu installation. Select the Ubuntu desktop package collection from the list of predefined collections of software in the Software selection screen in the Ubuntu mini CD installer. When you restart the system at the end of the installation, you will have a working Ubuntu desktop with the default desktop environment.
How to create a bootable USB stick on OS X/macOS
- How do I get my Mac to boot from an Ubuntu USB key?
But it only works on Ubuntu Base Distro/ Ubuntu itshelf.
– MathCubes
Apr 21 '14 at 6:48
2
That's right, whereas UNetbootin is cross-platform, but the Startup Disk Creator has one nice feature that UNetbootin doesn't have. Startup Disk Creator identifies the USB drive by its model name rather than by a cryptic looking device name like/dev/sdb1
. This gives the user added protection against overwriting the operating system because of accidentally formatting the wrong drive.
– karel
Apr 21 '14 at 6:55
I had problems with Unetbootin before like not installing the bootloader... ect.
– MathCubes
Apr 21 '14 at 6:58
dd for windows Usage:dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress]
whereFILE
inif=FILE of=FILE
has the same syntax as file locations do in the Windows commandline (cmd.exe).
– karel
Sep 17 '15 at 14:00
Running thiswmic
command in the Windows cmd.exe window shows all removable drives as follows:wmic logicaldisk where drivetype=2 get deviceid, volumename, description
Examples of source path (input file) and target path (output file) syntax in Windows cmd.exe: source path: C:aaabbb whereC:
is hard drive. target path: F:xxxyyy whereF:
is USB flash drive which was identified by runningwmic
command. Examples of dd for windows commands: Visit this link and the examples are under the heading called Examples.
– karel
Sep 17 '15 at 14:04
|
show 1 more comment
This flowchart shows how to make a bootable USB for installing Ubuntu and troubleshoot problems booting Ubuntu from it.
In Windows 10 the dd
command can be run from Bash on Windows. Bash on Windows is a full, Ubuntu-based Bash shell that can run Linux software directly.
Links
How to create a bootable USB stick on Windows
Ubuntu on 32-bit UEFI-based tablet PC
How to make an Ubuntu USB on Ubuntu using Startup Disk Creator
Ubuntu has a built-in application for creating a bootable Ubuntu live USB for installing Ubuntu called Startup Disk Creator. Search the Dash for Startup Disk Creator and click the Startup Disk Creator icon to open the Make Startup Disk window.
The USB flash drive that you use with Startup Disk Creator should be 2GB or larger, and for Ubuntu 18.04 and later it should be 4GB or larger. Startup Disk Creator will automatically format your USB flash drive to FAT32 and make it bootable. If you have only one USB flash drive plugged in to your computer, Startup Disk Creator will select it automatically. Be very careful to select the USB flash drive in the Make Startup Disk window in order to avoid overwriting the partition which Ubuntu is installed on, which may make Ubuntu unbootable. In the screenshot below you can see how the USB flash drive Device is identified by its model name, the same model name that appears under the Drive heading after Model: in the Disks (disk utility) application.
Startup Disk Creator in Ubuntu 16.04
You can also move the Stored in reserved extra space slider back and forth to create some reserved extra space for persistent file storage across reboots. In Ubuntu 16.04 and later Startup Disk Creator no longer has the persistent file storage option.
How to make an Ubuntu Minimal USB using dd
Download the Ubuntu Mini CD iso file from the link on the Ubuntu Documentation Installation Minimal CD webpage. Download the file called mini.iso to your Downloads folder. You can download the mini.iso file to wherever on your computer that you want, but download it to your Downloads folder so that you can easily run the commands in the following steps without changing anything.
Verify the md5 checksum of the Ubuntu mini CD iso file that you downloaded by running these commands:
cd ~/Downloads/
md5sum 'mini.iso'
If you are using Windows Subsystem for Linux download the Microsoft File Checksum Integrity Verifier tool from the official Microsoft Download Center. The Microsoft File Checksum Integrity Verifier tool is a command line utility that computes MD5 or SHA1 cryptographic hashes for files.
Check that the results of the command match the MD5 checksum of the mini.iso file on the Ubuntu Documentation Installation Minimal CD webpage.
Get a USB flash drive, 1GB or larger. Delete all the files from the USB flash drive. Mount the flash drive using the Disks disk utility.
Check in the Disks disk utility to find out the device name of your USB flash drive. This is very important because if you use the wrong device name in step 6, you will overwrite your whole operating system instead of writing to the USB flash drive. So check the USB flash drive device name twice. It should be something like
/dev/sd*
where instead of the * character there is a lower case letter like a, b, c, etc. In the following step I am assuming that the device name is/dev/sdc
, but the device name of your USB drive could be something else like/dev/sda
or/dev/sdb
so check the device name of your USB drive twice and make sure that you get it right in step 6!
Open the terminal or Windows Subsystem for Linux and run the following commands:
cd ~/Downloads/
sudo -i
dd if='mini.iso' of=/dev/sdc bs=4096 ## make sure that the device name of your USB drive is correct!
The
dd if='mini.iso' of=/dev/sdc bs=4096
command should take only a few seconds to complete on most computers because the mini.iso is a small file, less than 60MB. The result of running this command will be a bootable Ubuntu mini USB.
Boot the computer from the Ubuntu mini live USB. The Ubuntu mini live USB should boot successfully and show a menu screen.
If you select the Install option (the complete install, not the cli install) from the menu screen in Step 7, then you can select other options during the Ubuntu installation process to download all the packages that you need to perform a complete Ubuntu installation. Select the Ubuntu desktop package collection from the list of predefined collections of software in the Software selection screen in the Ubuntu mini CD installer. When you restart the system at the end of the installation, you will have a working Ubuntu desktop with the default desktop environment.
How to create a bootable USB stick on OS X/macOS
- How do I get my Mac to boot from an Ubuntu USB key?
This flowchart shows how to make a bootable USB for installing Ubuntu and troubleshoot problems booting Ubuntu from it.
In Windows 10 the dd
command can be run from Bash on Windows. Bash on Windows is a full, Ubuntu-based Bash shell that can run Linux software directly.
Links
How to create a bootable USB stick on Windows
Ubuntu on 32-bit UEFI-based tablet PC
How to make an Ubuntu USB on Ubuntu using Startup Disk Creator
Ubuntu has a built-in application for creating a bootable Ubuntu live USB for installing Ubuntu called Startup Disk Creator. Search the Dash for Startup Disk Creator and click the Startup Disk Creator icon to open the Make Startup Disk window.
The USB flash drive that you use with Startup Disk Creator should be 2GB or larger, and for Ubuntu 18.04 and later it should be 4GB or larger. Startup Disk Creator will automatically format your USB flash drive to FAT32 and make it bootable. If you have only one USB flash drive plugged in to your computer, Startup Disk Creator will select it automatically. Be very careful to select the USB flash drive in the Make Startup Disk window in order to avoid overwriting the partition which Ubuntu is installed on, which may make Ubuntu unbootable. In the screenshot below you can see how the USB flash drive Device is identified by its model name, the same model name that appears under the Drive heading after Model: in the Disks (disk utility) application.
Startup Disk Creator in Ubuntu 16.04
You can also move the Stored in reserved extra space slider back and forth to create some reserved extra space for persistent file storage across reboots. In Ubuntu 16.04 and later Startup Disk Creator no longer has the persistent file storage option.
How to make an Ubuntu Minimal USB using dd
Download the Ubuntu Mini CD iso file from the link on the Ubuntu Documentation Installation Minimal CD webpage. Download the file called mini.iso to your Downloads folder. You can download the mini.iso file to wherever on your computer that you want, but download it to your Downloads folder so that you can easily run the commands in the following steps without changing anything.
Verify the md5 checksum of the Ubuntu mini CD iso file that you downloaded by running these commands:
cd ~/Downloads/
md5sum 'mini.iso'
If you are using Windows Subsystem for Linux download the Microsoft File Checksum Integrity Verifier tool from the official Microsoft Download Center. The Microsoft File Checksum Integrity Verifier tool is a command line utility that computes MD5 or SHA1 cryptographic hashes for files.
Check that the results of the command match the MD5 checksum of the mini.iso file on the Ubuntu Documentation Installation Minimal CD webpage.
Get a USB flash drive, 1GB or larger. Delete all the files from the USB flash drive. Mount the flash drive using the Disks disk utility.
Check in the Disks disk utility to find out the device name of your USB flash drive. This is very important because if you use the wrong device name in step 6, you will overwrite your whole operating system instead of writing to the USB flash drive. So check the USB flash drive device name twice. It should be something like
/dev/sd*
where instead of the * character there is a lower case letter like a, b, c, etc. In the following step I am assuming that the device name is/dev/sdc
, but the device name of your USB drive could be something else like/dev/sda
or/dev/sdb
so check the device name of your USB drive twice and make sure that you get it right in step 6!
Open the terminal or Windows Subsystem for Linux and run the following commands:
cd ~/Downloads/
sudo -i
dd if='mini.iso' of=/dev/sdc bs=4096 ## make sure that the device name of your USB drive is correct!
The
dd if='mini.iso' of=/dev/sdc bs=4096
command should take only a few seconds to complete on most computers because the mini.iso is a small file, less than 60MB. The result of running this command will be a bootable Ubuntu mini USB.
Boot the computer from the Ubuntu mini live USB. The Ubuntu mini live USB should boot successfully and show a menu screen.
If you select the Install option (the complete install, not the cli install) from the menu screen in Step 7, then you can select other options during the Ubuntu installation process to download all the packages that you need to perform a complete Ubuntu installation. Select the Ubuntu desktop package collection from the list of predefined collections of software in the Software selection screen in the Ubuntu mini CD installer. When you restart the system at the end of the installation, you will have a working Ubuntu desktop with the default desktop environment.
How to create a bootable USB stick on OS X/macOS
- How do I get my Mac to boot from an Ubuntu USB key?
edited Jul 28 '18 at 11:15
answered Apr 21 '14 at 6:40
karel
57.5k12127146
57.5k12127146
But it only works on Ubuntu Base Distro/ Ubuntu itshelf.
– MathCubes
Apr 21 '14 at 6:48
2
That's right, whereas UNetbootin is cross-platform, but the Startup Disk Creator has one nice feature that UNetbootin doesn't have. Startup Disk Creator identifies the USB drive by its model name rather than by a cryptic looking device name like/dev/sdb1
. This gives the user added protection against overwriting the operating system because of accidentally formatting the wrong drive.
– karel
Apr 21 '14 at 6:55
I had problems with Unetbootin before like not installing the bootloader... ect.
– MathCubes
Apr 21 '14 at 6:58
dd for windows Usage:dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress]
whereFILE
inif=FILE of=FILE
has the same syntax as file locations do in the Windows commandline (cmd.exe).
– karel
Sep 17 '15 at 14:00
Running thiswmic
command in the Windows cmd.exe window shows all removable drives as follows:wmic logicaldisk where drivetype=2 get deviceid, volumename, description
Examples of source path (input file) and target path (output file) syntax in Windows cmd.exe: source path: C:aaabbb whereC:
is hard drive. target path: F:xxxyyy whereF:
is USB flash drive which was identified by runningwmic
command. Examples of dd for windows commands: Visit this link and the examples are under the heading called Examples.
– karel
Sep 17 '15 at 14:04
|
show 1 more comment
But it only works on Ubuntu Base Distro/ Ubuntu itshelf.
– MathCubes
Apr 21 '14 at 6:48
2
That's right, whereas UNetbootin is cross-platform, but the Startup Disk Creator has one nice feature that UNetbootin doesn't have. Startup Disk Creator identifies the USB drive by its model name rather than by a cryptic looking device name like/dev/sdb1
. This gives the user added protection against overwriting the operating system because of accidentally formatting the wrong drive.
– karel
Apr 21 '14 at 6:55
I had problems with Unetbootin before like not installing the bootloader... ect.
– MathCubes
Apr 21 '14 at 6:58
dd for windows Usage:dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress]
whereFILE
inif=FILE of=FILE
has the same syntax as file locations do in the Windows commandline (cmd.exe).
– karel
Sep 17 '15 at 14:00
Running thiswmic
command in the Windows cmd.exe window shows all removable drives as follows:wmic logicaldisk where drivetype=2 get deviceid, volumename, description
Examples of source path (input file) and target path (output file) syntax in Windows cmd.exe: source path: C:aaabbb whereC:
is hard drive. target path: F:xxxyyy whereF:
is USB flash drive which was identified by runningwmic
command. Examples of dd for windows commands: Visit this link and the examples are under the heading called Examples.
– karel
Sep 17 '15 at 14:04
But it only works on Ubuntu Base Distro/ Ubuntu itshelf.
– MathCubes
Apr 21 '14 at 6:48
But it only works on Ubuntu Base Distro/ Ubuntu itshelf.
– MathCubes
Apr 21 '14 at 6:48
2
2
That's right, whereas UNetbootin is cross-platform, but the Startup Disk Creator has one nice feature that UNetbootin doesn't have. Startup Disk Creator identifies the USB drive by its model name rather than by a cryptic looking device name like
/dev/sdb1
. This gives the user added protection against overwriting the operating system because of accidentally formatting the wrong drive.– karel
Apr 21 '14 at 6:55
That's right, whereas UNetbootin is cross-platform, but the Startup Disk Creator has one nice feature that UNetbootin doesn't have. Startup Disk Creator identifies the USB drive by its model name rather than by a cryptic looking device name like
/dev/sdb1
. This gives the user added protection against overwriting the operating system because of accidentally formatting the wrong drive.– karel
Apr 21 '14 at 6:55
I had problems with Unetbootin before like not installing the bootloader... ect.
– MathCubes
Apr 21 '14 at 6:58
I had problems with Unetbootin before like not installing the bootloader... ect.
– MathCubes
Apr 21 '14 at 6:58
dd for windows Usage:
dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress]
where FILE
in if=FILE of=FILE
has the same syntax as file locations do in the Windows commandline (cmd.exe).– karel
Sep 17 '15 at 14:00
dd for windows Usage:
dd [bs=SIZE[SUFFIX]] [count=BLOCKS[SUFFIX]] if=FILE of=FILE [seek=BLOCKS[SUFFIX]] [skip=BLOCKS[SUFFIX]] [--size] [--list] [--progress]
where FILE
in if=FILE of=FILE
has the same syntax as file locations do in the Windows commandline (cmd.exe).– karel
Sep 17 '15 at 14:00
Running this
wmic
command in the Windows cmd.exe window shows all removable drives as follows: wmic logicaldisk where drivetype=2 get deviceid, volumename, description
Examples of source path (input file) and target path (output file) syntax in Windows cmd.exe: source path: C:aaabbb where C:
is hard drive. target path: F:xxxyyy where F:
is USB flash drive which was identified by running wmic
command. Examples of dd for windows commands: Visit this link and the examples are under the heading called Examples.– karel
Sep 17 '15 at 14:04
Running this
wmic
command in the Windows cmd.exe window shows all removable drives as follows: wmic logicaldisk where drivetype=2 get deviceid, volumename, description
Examples of source path (input file) and target path (output file) syntax in Windows cmd.exe: source path: C:aaabbb where C:
is hard drive. target path: F:xxxyyy where F:
is USB flash drive which was identified by running wmic
command. Examples of dd for windows commands: Visit this link and the examples are under the heading called Examples.– karel
Sep 17 '15 at 14:04
|
show 1 more comment
You need: a flash drive, a PC/Mac, the ISO file for Ubuntu, which can be obtained here: http://www.ubuntu.com/download/desktop. Here are the instructions for...
Windows: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows
Mac: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Ubuntu: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu
3
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Braiam
Sep 26 '13 at 12:42
add a comment |
You need: a flash drive, a PC/Mac, the ISO file for Ubuntu, which can be obtained here: http://www.ubuntu.com/download/desktop. Here are the instructions for...
Windows: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows
Mac: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Ubuntu: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu
3
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Braiam
Sep 26 '13 at 12:42
add a comment |
You need: a flash drive, a PC/Mac, the ISO file for Ubuntu, which can be obtained here: http://www.ubuntu.com/download/desktop. Here are the instructions for...
Windows: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows
Mac: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Ubuntu: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu
You need: a flash drive, a PC/Mac, the ISO file for Ubuntu, which can be obtained here: http://www.ubuntu.com/download/desktop. Here are the instructions for...
Windows: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows
Mac: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
Ubuntu: http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu
edited Feb 19 '14 at 4:40
answered Apr 28 '13 at 4:14
Yet Another User
2,03821435
2,03821435
3
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Braiam
Sep 26 '13 at 12:42
add a comment |
3
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Braiam
Sep 26 '13 at 12:42
3
3
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Braiam
Sep 26 '13 at 12:42
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Braiam
Sep 26 '13 at 12:42
add a comment |
Recent distributions of Ubuntu include the boot info to boot directly from both optical disk and hard media (flash drive, etc.)
You can simply duplicate the content of the iso to the USB device using a linux system you would use the command sudo dd if=my.ubuntu.release.iso of=/dev/sdX
where sdX is your flash drive which you can identify with the command sudo fdisk -l
Remember to check the hash before spending the time to copy to insure that your iso file is valid.
add a comment |
Recent distributions of Ubuntu include the boot info to boot directly from both optical disk and hard media (flash drive, etc.)
You can simply duplicate the content of the iso to the USB device using a linux system you would use the command sudo dd if=my.ubuntu.release.iso of=/dev/sdX
where sdX is your flash drive which you can identify with the command sudo fdisk -l
Remember to check the hash before spending the time to copy to insure that your iso file is valid.
add a comment |
Recent distributions of Ubuntu include the boot info to boot directly from both optical disk and hard media (flash drive, etc.)
You can simply duplicate the content of the iso to the USB device using a linux system you would use the command sudo dd if=my.ubuntu.release.iso of=/dev/sdX
where sdX is your flash drive which you can identify with the command sudo fdisk -l
Remember to check the hash before spending the time to copy to insure that your iso file is valid.
Recent distributions of Ubuntu include the boot info to boot directly from both optical disk and hard media (flash drive, etc.)
You can simply duplicate the content of the iso to the USB device using a linux system you would use the command sudo dd if=my.ubuntu.release.iso of=/dev/sdX
where sdX is your flash drive which you can identify with the command sudo fdisk -l
Remember to check the hash before spending the time to copy to insure that your iso file is valid.
edited Apr 13 '17 at 12:24
Community♦
1
1
answered May 1 '15 at 16:20
Elder Geek
26.5k952126
26.5k952126
add a comment |
add a comment |
Full Install to USB
Full installs are more stable and secure than persistent installs, but not as quick to make. They are better at utilizing disk space as no fixed size casper-rw file or partition is required. They are not very good for use of installing Ubuntu.
Following is a step by step how to install 18.04 on a 16GB flash drive with options for separate Home partition and Windows compatible data partition:
- Create a live USB or DVD using SDC, UNetbootin, mkusb, etc.
- Turn off and unplug the computer. (See note at bottom)
- Remove the cover.
- Unplug the power cable from the hard drive or unplug the hard drive from the laptop.
- Plug the computer back in.
- Insert the flash drive.
- Insert the Live USB or Live DVD.
- Start the computer, the USB/DVD should boot.
- Select language.
- Select install Ubuntu.
- Select Keyboard layout
- Select "Continue".
- Select installation type and "Download updates while installing Ubuntu" and Select "Install third-party software ...", (optional).
- Select "Continue".
- At "Installation type" select "Something else". (Full disk encryption is not working with flash drives).
- Select "Continue".
- Confirm target device is correct.
- Select "New Partition Table".
- Click Continue on the drop down.
(Optional FAT32 data partition for use on Windows machine)
- Click "Free space" and "+".
- Make "Size..." about 2000 MB.
- Select "Primary".
- Location = "Beginning of this space".
- "Use as:" = "FAT32 file system".
- "Mount point" = "/windows".
- Select "OK"
(Non Optional Root Partition)
- Click "free space" and then "+".
- Select "Primary", "Size ..." = 4500 to 6000 MB, "Beginning of this space", Ext4, and Mount point = "/" then OK.
(Optional home partition)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = 1000 to 6000 MB, Beginning of this space, Ext2, and Mount point = "/home" then OK.
(Optional swap space, allows hibernation)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = remaining space, (1000 to 2000 megabytes, or same size as RAM), Beginning of this space and "Use as" = "swap area" then OK.
(Important)
- Confirm "Device for boot loader installation" points to the root of the USB drive. Default should be OK if HDD was unplugged.
Click "Install Now".
Select your location.
- Select "Continue".
- Insert your name, computer name, username, password and select if you want to log in automatically or require a password.cscameron
- Select "Continue".
- Wait until install is complete.
- Turn off computer and plug in the HDD.
- Replace the computer's cover.
Note:
You may omit disabling the hard drive if after partitioning you choose to install grub to the root of the USB drive you are installing Ubuntu to, (ie sdb not sdb1). Be cautious, many people have overwritten the HDD MBR as default location for boot loader is sda, any items in the internal drive's grub will be added to the USB's grub.
You may do an update-grub later.
add a comment |
Full Install to USB
Full installs are more stable and secure than persistent installs, but not as quick to make. They are better at utilizing disk space as no fixed size casper-rw file or partition is required. They are not very good for use of installing Ubuntu.
Following is a step by step how to install 18.04 on a 16GB flash drive with options for separate Home partition and Windows compatible data partition:
- Create a live USB or DVD using SDC, UNetbootin, mkusb, etc.
- Turn off and unplug the computer. (See note at bottom)
- Remove the cover.
- Unplug the power cable from the hard drive or unplug the hard drive from the laptop.
- Plug the computer back in.
- Insert the flash drive.
- Insert the Live USB or Live DVD.
- Start the computer, the USB/DVD should boot.
- Select language.
- Select install Ubuntu.
- Select Keyboard layout
- Select "Continue".
- Select installation type and "Download updates while installing Ubuntu" and Select "Install third-party software ...", (optional).
- Select "Continue".
- At "Installation type" select "Something else". (Full disk encryption is not working with flash drives).
- Select "Continue".
- Confirm target device is correct.
- Select "New Partition Table".
- Click Continue on the drop down.
(Optional FAT32 data partition for use on Windows machine)
- Click "Free space" and "+".
- Make "Size..." about 2000 MB.
- Select "Primary".
- Location = "Beginning of this space".
- "Use as:" = "FAT32 file system".
- "Mount point" = "/windows".
- Select "OK"
(Non Optional Root Partition)
- Click "free space" and then "+".
- Select "Primary", "Size ..." = 4500 to 6000 MB, "Beginning of this space", Ext4, and Mount point = "/" then OK.
(Optional home partition)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = 1000 to 6000 MB, Beginning of this space, Ext2, and Mount point = "/home" then OK.
(Optional swap space, allows hibernation)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = remaining space, (1000 to 2000 megabytes, or same size as RAM), Beginning of this space and "Use as" = "swap area" then OK.
(Important)
- Confirm "Device for boot loader installation" points to the root of the USB drive. Default should be OK if HDD was unplugged.
Click "Install Now".
Select your location.
- Select "Continue".
- Insert your name, computer name, username, password and select if you want to log in automatically or require a password.cscameron
- Select "Continue".
- Wait until install is complete.
- Turn off computer and plug in the HDD.
- Replace the computer's cover.
Note:
You may omit disabling the hard drive if after partitioning you choose to install grub to the root of the USB drive you are installing Ubuntu to, (ie sdb not sdb1). Be cautious, many people have overwritten the HDD MBR as default location for boot loader is sda, any items in the internal drive's grub will be added to the USB's grub.
You may do an update-grub later.
add a comment |
Full Install to USB
Full installs are more stable and secure than persistent installs, but not as quick to make. They are better at utilizing disk space as no fixed size casper-rw file or partition is required. They are not very good for use of installing Ubuntu.
Following is a step by step how to install 18.04 on a 16GB flash drive with options for separate Home partition and Windows compatible data partition:
- Create a live USB or DVD using SDC, UNetbootin, mkusb, etc.
- Turn off and unplug the computer. (See note at bottom)
- Remove the cover.
- Unplug the power cable from the hard drive or unplug the hard drive from the laptop.
- Plug the computer back in.
- Insert the flash drive.
- Insert the Live USB or Live DVD.
- Start the computer, the USB/DVD should boot.
- Select language.
- Select install Ubuntu.
- Select Keyboard layout
- Select "Continue".
- Select installation type and "Download updates while installing Ubuntu" and Select "Install third-party software ...", (optional).
- Select "Continue".
- At "Installation type" select "Something else". (Full disk encryption is not working with flash drives).
- Select "Continue".
- Confirm target device is correct.
- Select "New Partition Table".
- Click Continue on the drop down.
(Optional FAT32 data partition for use on Windows machine)
- Click "Free space" and "+".
- Make "Size..." about 2000 MB.
- Select "Primary".
- Location = "Beginning of this space".
- "Use as:" = "FAT32 file system".
- "Mount point" = "/windows".
- Select "OK"
(Non Optional Root Partition)
- Click "free space" and then "+".
- Select "Primary", "Size ..." = 4500 to 6000 MB, "Beginning of this space", Ext4, and Mount point = "/" then OK.
(Optional home partition)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = 1000 to 6000 MB, Beginning of this space, Ext2, and Mount point = "/home" then OK.
(Optional swap space, allows hibernation)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = remaining space, (1000 to 2000 megabytes, or same size as RAM), Beginning of this space and "Use as" = "swap area" then OK.
(Important)
- Confirm "Device for boot loader installation" points to the root of the USB drive. Default should be OK if HDD was unplugged.
Click "Install Now".
Select your location.
- Select "Continue".
- Insert your name, computer name, username, password and select if you want to log in automatically or require a password.cscameron
- Select "Continue".
- Wait until install is complete.
- Turn off computer and plug in the HDD.
- Replace the computer's cover.
Note:
You may omit disabling the hard drive if after partitioning you choose to install grub to the root of the USB drive you are installing Ubuntu to, (ie sdb not sdb1). Be cautious, many people have overwritten the HDD MBR as default location for boot loader is sda, any items in the internal drive's grub will be added to the USB's grub.
You may do an update-grub later.
Full Install to USB
Full installs are more stable and secure than persistent installs, but not as quick to make. They are better at utilizing disk space as no fixed size casper-rw file or partition is required. They are not very good for use of installing Ubuntu.
Following is a step by step how to install 18.04 on a 16GB flash drive with options for separate Home partition and Windows compatible data partition:
- Create a live USB or DVD using SDC, UNetbootin, mkusb, etc.
- Turn off and unplug the computer. (See note at bottom)
- Remove the cover.
- Unplug the power cable from the hard drive or unplug the hard drive from the laptop.
- Plug the computer back in.
- Insert the flash drive.
- Insert the Live USB or Live DVD.
- Start the computer, the USB/DVD should boot.
- Select language.
- Select install Ubuntu.
- Select Keyboard layout
- Select "Continue".
- Select installation type and "Download updates while installing Ubuntu" and Select "Install third-party software ...", (optional).
- Select "Continue".
- At "Installation type" select "Something else". (Full disk encryption is not working with flash drives).
- Select "Continue".
- Confirm target device is correct.
- Select "New Partition Table".
- Click Continue on the drop down.
(Optional FAT32 data partition for use on Windows machine)
- Click "Free space" and "+".
- Make "Size..." about 2000 MB.
- Select "Primary".
- Location = "Beginning of this space".
- "Use as:" = "FAT32 file system".
- "Mount point" = "/windows".
- Select "OK"
(Non Optional Root Partition)
- Click "free space" and then "+".
- Select "Primary", "Size ..." = 4500 to 6000 MB, "Beginning of this space", Ext4, and Mount point = "/" then OK.
(Optional home partition)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = 1000 to 6000 MB, Beginning of this space, Ext2, and Mount point = "/home" then OK.
(Optional swap space, allows hibernation)
- Click "free space" and then "+".
- Select "Primary", "New partition size ..." = remaining space, (1000 to 2000 megabytes, or same size as RAM), Beginning of this space and "Use as" = "swap area" then OK.
(Important)
- Confirm "Device for boot loader installation" points to the root of the USB drive. Default should be OK if HDD was unplugged.
Click "Install Now".
Select your location.
- Select "Continue".
- Insert your name, computer name, username, password and select if you want to log in automatically or require a password.cscameron
- Select "Continue".
- Wait until install is complete.
- Turn off computer and plug in the HDD.
- Replace the computer's cover.
Note:
You may omit disabling the hard drive if after partitioning you choose to install grub to the root of the USB drive you are installing Ubuntu to, (ie sdb not sdb1). Be cautious, many people have overwritten the HDD MBR as default location for boot loader is sda, any items in the internal drive's grub will be added to the USB's grub.
You may do an update-grub later.
edited Oct 2 '18 at 2:40
answered Jun 22 '18 at 15:44
C.S.Cameron
4,4541927
4,4541927
add a comment |
add a comment |
Use Unetbootin.It works in Ubuntu(from Software Center) and Windows(from Unetbootin site) also.Download the iso of Ubuntu you want, download Unetbootin, make it, enjoy it.
add a comment |
Use Unetbootin.It works in Ubuntu(from Software Center) and Windows(from Unetbootin site) also.Download the iso of Ubuntu you want, download Unetbootin, make it, enjoy it.
add a comment |
Use Unetbootin.It works in Ubuntu(from Software Center) and Windows(from Unetbootin site) also.Download the iso of Ubuntu you want, download Unetbootin, make it, enjoy it.
Use Unetbootin.It works in Ubuntu(from Software Center) and Windows(from Unetbootin site) also.Download the iso of Ubuntu you want, download Unetbootin, make it, enjoy it.
answered Apr 28 '13 at 4:53
user153002
99125
99125
add a comment |
add a comment |
Full Install to USB - BIOS/UEFI
Mkusb makes a great base for a Full Install USB drive able to boot from both BIOS and UEFI:
Use mkusb to make a Live system on the Installer USB (2GB or larger).
Use mkusb to make a Persistent system on the Target 128GB USB using default settings with ~25GB persistence, (remaining NTFS partition is used as Windows accessible data partition).
As soon as mkusb finishes, open GParted and delete sdx4, the ISO9660 partition and expand sdx5 into the recovered space, sdx being the device name of the Target drive.
Create a extra ext4 partition sdx6 for /home if desired.
Unplug or remove HDD before proceeding further, (optional but recommended, highly recommended in UEFI mode).
Boot Installer drive, select Try.
Insert Target drive
Start Install Ubuntu...
Select "Something else".
Select sdx5, (on the target drive), and click Change.
- Select Use as: ext4, Format and Mount point: /.
Don't touch any other partitions (unless adding a /home partition to sdx6).
Select sdx5 as Device for boot loader installation.
Complete installation.
Cut grub.cfg from sdx5/boot/grub and paste to sdx3/boot/grub, overwriting the existing grub.cfg file.
Boot the target drive and run sudo update-grub to add all drives to boot menu.
Do not install any propriety drivers, (ie Nvidia), on pre-18.04 installs.
add a comment |
Full Install to USB - BIOS/UEFI
Mkusb makes a great base for a Full Install USB drive able to boot from both BIOS and UEFI:
Use mkusb to make a Live system on the Installer USB (2GB or larger).
Use mkusb to make a Persistent system on the Target 128GB USB using default settings with ~25GB persistence, (remaining NTFS partition is used as Windows accessible data partition).
As soon as mkusb finishes, open GParted and delete sdx4, the ISO9660 partition and expand sdx5 into the recovered space, sdx being the device name of the Target drive.
Create a extra ext4 partition sdx6 for /home if desired.
Unplug or remove HDD before proceeding further, (optional but recommended, highly recommended in UEFI mode).
Boot Installer drive, select Try.
Insert Target drive
Start Install Ubuntu...
Select "Something else".
Select sdx5, (on the target drive), and click Change.
- Select Use as: ext4, Format and Mount point: /.
Don't touch any other partitions (unless adding a /home partition to sdx6).
Select sdx5 as Device for boot loader installation.
Complete installation.
Cut grub.cfg from sdx5/boot/grub and paste to sdx3/boot/grub, overwriting the existing grub.cfg file.
Boot the target drive and run sudo update-grub to add all drives to boot menu.
Do not install any propriety drivers, (ie Nvidia), on pre-18.04 installs.
add a comment |
Full Install to USB - BIOS/UEFI
Mkusb makes a great base for a Full Install USB drive able to boot from both BIOS and UEFI:
Use mkusb to make a Live system on the Installer USB (2GB or larger).
Use mkusb to make a Persistent system on the Target 128GB USB using default settings with ~25GB persistence, (remaining NTFS partition is used as Windows accessible data partition).
As soon as mkusb finishes, open GParted and delete sdx4, the ISO9660 partition and expand sdx5 into the recovered space, sdx being the device name of the Target drive.
Create a extra ext4 partition sdx6 for /home if desired.
Unplug or remove HDD before proceeding further, (optional but recommended, highly recommended in UEFI mode).
Boot Installer drive, select Try.
Insert Target drive
Start Install Ubuntu...
Select "Something else".
Select sdx5, (on the target drive), and click Change.
- Select Use as: ext4, Format and Mount point: /.
Don't touch any other partitions (unless adding a /home partition to sdx6).
Select sdx5 as Device for boot loader installation.
Complete installation.
Cut grub.cfg from sdx5/boot/grub and paste to sdx3/boot/grub, overwriting the existing grub.cfg file.
Boot the target drive and run sudo update-grub to add all drives to boot menu.
Do not install any propriety drivers, (ie Nvidia), on pre-18.04 installs.
Full Install to USB - BIOS/UEFI
Mkusb makes a great base for a Full Install USB drive able to boot from both BIOS and UEFI:
Use mkusb to make a Live system on the Installer USB (2GB or larger).
Use mkusb to make a Persistent system on the Target 128GB USB using default settings with ~25GB persistence, (remaining NTFS partition is used as Windows accessible data partition).
As soon as mkusb finishes, open GParted and delete sdx4, the ISO9660 partition and expand sdx5 into the recovered space, sdx being the device name of the Target drive.
Create a extra ext4 partition sdx6 for /home if desired.
Unplug or remove HDD before proceeding further, (optional but recommended, highly recommended in UEFI mode).
Boot Installer drive, select Try.
Insert Target drive
Start Install Ubuntu...
Select "Something else".
Select sdx5, (on the target drive), and click Change.
- Select Use as: ext4, Format and Mount point: /.
Don't touch any other partitions (unless adding a /home partition to sdx6).
Select sdx5 as Device for boot loader installation.
Complete installation.
Cut grub.cfg from sdx5/boot/grub and paste to sdx3/boot/grub, overwriting the existing grub.cfg file.
Boot the target drive and run sudo update-grub to add all drives to boot menu.
Do not install any propriety drivers, (ie Nvidia), on pre-18.04 installs.
answered yesterday
C.S.Cameron
4,4541927
4,4541927
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f287064%2fhow-do-i-make-a-bootable-ubuntu-usb%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown