‫Hello and welcome.
‫We are now going to turn our bootloader to a USB stick, in doing so, we will then be able to boot
‫from the USB stick and run our bootloader on our own computer.
‫So let's begin.
‫The first thing you need to do is plug in a USB stick into your computer once you have plugged in your
‫USB stick.
‫Let's open up the terminal.
‫Let's navigate to our bootloader directory.
‫And now going to use a command line tool called this command line tool is amazing because it allows
‫you to copy binary from one file to another.
‫And in Linux, everything is a file.
‫So the first thing we're going to do is we're going to go pseudo after Stachel.
‫This will give us all of the disks in our system.
‫We can see Deve Stoebe, this is our USB stick.
‫You might see Deve CDB one, Deve Stoebe two.
‫You can ignore those because they're the partitions.
‫We don't care about that.
‫Right.
‫Let's copy our bootloader to the disk.
‫Please make sure there's nothing valuable on your USB stick because you're about to lose it all.
‫So make sure it's empty.
‫We're going to go pseudo d f equals dopp forward slash boot dobbyn of equals def Stoebe.
‫So F means the input file off means the output file pretty straightforward.
‫If we now press enter, it is now overwrote the first sector, the first 512 bytes of our USB drive.
‫There's no longer a file system on the USB stick.
‫The file system doesn't exist on the USB stick anymore.
‫It is now just data.
‫If you now try to open up your USB drive, it will say that it needs formatting, something like that.
‫You don't have to worry about that.
‫The boot sector is written to the first sector of the USB stick.
‫The first five year and 12 bytes of the USB stick now contain our boot sector.
‫In the next video, I will now show you how you can load your boot sector on your real computer.
‫However, please bear in mind it might not work for you.
‫Unfortunately, there's so many obstacles when it comes to writing Col's.
‫Things work on one machine and they don't work on another.
‫That is just how it works.
‫It's the same reason why Linux has thousands of drivers.
‫Every computer is different.
‫So if it doesn't work on one machine, try it on another one anyway, that we're going to do that on
‫the next video.
‫We're going to actually move from that now.
‫So congratulations.
‫You've now written your boot sector to the USB stick.