An ad-free and cookie-free website.
Videos can also be accessed from our Full Stack Playlist 1 on YouTube.
Create a Linux Bootable USB drive for an ISO to USB Install (4:50)
Welcome. Today's question: How do you create a Linux-bootable flast USB drive?
I'm Paul, and if you're like me, then you want to speed through hardware setup, so you can get right to the fun part, data analysis.
Here's the overview. The project is to set up this Lenovo computer as a local Linux server, for exercises in Data Science and we need to download a file, called an ISO image, and create a USB stick to boot from, as introduced in the last video (tutorial).
So if we're on the same page, then the next question is: which operating system will you be using to create the USB drive? Because the procedures for Linux, Mac and Windows are different.
I'll start with a few commands on the Linux server, then jot down notes in a text file, where I'll discuss considerations and point you to where you can find help, being mindful that there are too many scenarios to cover all three operating systems in four minutes.
Also, my Linux distribution is Debian, so I'll refer to suggestions in their documentation, and then in video 7, we'll do the install.
Here's our window into the server, after I installed Linux on my end, as this command shows.
These instructions are as of this date today.
Next, I'll change the directory to
notes, create a new text file using
nano, and here we go.
And here we go.
First, Linux. Years ago most Linux installations were performed with the CD/DVD option and now the USB flash drive option is popular, for obvious reasons. In fact, some manufacturers skip optical media altogether, like the Lenovo computer you saw earlier. If you are using Debian, please review the Installation Guide for specifics. There you will find an option allowing you to copy the CD/DVD version ISO straight to a USB drive with one partition, using a command like this.
sudo gives superuser privileges,
cp to copy, the name of the
downloaded file you selected for your hardware, then the destination
X is the device
number, the the command
sync to write
RAM to disk. (Be very careful to select the appropriate device number
or you may write over your hard drive!!)
Next, Windows. The suggested method from Debian is to download a program called Win32 Disk Imager. Also, some use UNetbootin for Windows and I've included a line to both, but as full disclosure, I opted not to take this route.
MacOS was the route I took. I plugged in the USB drive, and after it was recognized, I used the Disk Utility program in the GUI to format the USB drive. but I could have easily done this at the command line in the program called Terminal.
Using the GUI, I selected the whole device, not the partitions, hit erase, then gave it the name debian8, and where I saw format, I used FAT and GPT for the partition table.
The second step didn't make sense at first, so here's a tip, the ISO
file downloaded isn't directly bootable, and must be saved to the USB
drive in the proper format, called UDRW, for Universal Disk Read and
Write. For this I went to the Mac Terminal and used the
diskutil command to find the name
of the USB, normally named /dev/disk2.
Next, I used the
dd command noted
In my case, where you see
substituted in the name of the file specific to my hardware. I was
careful with the output file part here
It did take about a minute, then I ejected it and voila, a bootable USB.
Now, I will close this file
Ctrl-x y Enter (and the Linux Terminal
I'll remind you to read the documentation for your distribution as this video was meant to be a summary, not a step-by-step guide.
So you can see where we are headed in this Playlist (pointing to Advanced Data Science).
Here is a picture of some of the software we're building on this Linux Server.
You are welcome to join at any time, and in our next video we will install Debian Linux.
Have a nice day.
The journey to Data Science has just begun, join us at YouTube, Twitter and at our no-spam email list to keep the momentum.
A newly-updated free resource. Connect and refer a friend today.