How to Boot Multiple Operating Systems on the Raspberry Pi with BerryBoot « Null Byte :: WonderHowTo

TheRaspberry Piloads an operating system from whatever SD card you insert, allowing you to keep different operating systems on separate SD cards depending on which OS you wish to run. A tool called BerryBoot cuts down on the number of SD cards needed by providing the ability to boot multiple operating systems from a single SD card, similar to Boot Camp for Mac computers.With BerryBoot, a single 32 GB SD card can hold multiple penetration testing tools and distros. Even handier, BerryBoot can configure the Pi to use anexternal hard driveorUSB thumb driveas the source to boot from, meaning any hacker can burn a custom bootable USB stick with multiple operating systems ready to boot.Loading Raspbian,Parrot OS, orKaliis as simple as selecting which to boot each time you start your Pi. Being able to switch from Kali Linux to Parrot OS with a simple reboot is awesome, and today we'll go over how to use and install BerryBoot.Don't Miss:Get Started with Parrot Security OS, a Modern Pentesting DistroWhy Use Different Operating SystemsThere are many reasons why a hacker may want to pick from a variety of operating systems when planning an action. Different operating systems come with different community support and tools, and traditionally, a virtual machine is used to test or use different operating systems.The Raspberry Pi can support a broad number of operating systems besides Raspbian, including Kali Linux,BlackArch Linux, Parrot OS, and other pen-testing distros.All these cards can be condensed to one large storage drive.Image by SADMIN/Null ByteDon't Miss:Set Up a Headless Raspberry Pi Hacking Platform Running KaliBoot from a USB Flash Drive Instead of the SD CardThanks to an open-source project to develop BerryBoot images, there is now a growing collection of security auditing images for the Pi that can be added to a USB stick. Today, we will go over how to set up BerryBoot on an SD card, but I'll provide a follow-up tutorial on how to do so with aUSB stickpreloaded with a custom Null Byte image of offensive security distros and deliberately vulnerable test images.Many different operating systems all on a single USB flash drive.Image by SADMIN/Null ByteWhat You'll NeedRaspberry Pi(BerryBoot will run on thePi 2,3,3 B+,Zero, andZero W)32 to 64 GB SD card(although I've done it with a 16 GB one, too)power sourceandHDMI connectionUSB keyboard/mouse interfacelaptop to load files on the SD cardSD card adapterfiles fromBerry TerminalIf you like hacking kits that make life easier, you can also purchase most of these things together fromCanaKit.On Amazon:CanaKit Raspberry Pi 3 Complete Starter Kit - 32 GB EditionStep 1: Download BerryBoot & Prepare SD CardThanks toBerryTerminal, you can download the following BerryBoot files at the links below.BerryBoot for the original Raspberry Pi, Pi Zero, Pi 2, and Pi 3 (53 MB)BerryBoot for the quad-core Raspberry Pi 2, and Pi 3 only (36 MB)Download the ZIP file, and insert the SD card you intend to use into your computer using an SD card adapter. You'll need to format it to FAT32. You can do this with Disk Utility on a Mac. Select the inserted SD card, hit "Erase," and for the file format, select "MS-DOS FAT," and click "Erase" again.On Windows, you can format an external hard drive to FAT 32 by using DOS. PressWin+R, typecmdin the search box. It will display you the command prompt. Input the syntaxformat /FS:FAT32 F:at the prompt if F is the drive letter of your external hard drive. Hit enter and the task will run.Once the process is complete, unzip the BerryBoot ZIP you downloaded and move the contents of the folder you extracted to the newly erased SD card. Eject the SD card and put it into your Pi.These initial files will boot the Pi for the first time and set configuration settings on the first run. Once the first run is complete, you will have the option of downloading different OS images from a wired or wireless internet connection.Step 2: BerryBoot First RunOn your first run, you will see a rainbow for a few seconds. Don't panic! After hanging for a moment, BerryBoot will start up and ask some basic configuration questions about your system. Once these variables are set, BerryBoot will start.After the configuration has been set, you'll be able to select which drive you'd like to install the operating system to. For now, select the SD card, as whatever device you choose to boot from will need to be plugged in each time you boot the Pi for it to work. Once you select the SD card, leave the default setting ofext4and click "Format."Step 3: Booting Your Installed Operating SystemNow you're ready to select the operating systems you want to load. For now, select "Kali Lite" and make sure you're connected to the internet. The "connection" bar at the bottom will show you what network you're connected to. Click "OK" to begin downloading the selected OS.The download can take a long time on a slow connection. Once it's finished, you should see Kali Lite in your list of installed operating systems. Exit to close the configuration window and use the OS you just downloaded.Step 4: Boot Your Installed OSAfter initially booting to BerryBoot, Kali Linux will be auto-selected as the OS to boot. Once a quick timeout completes, you'll boot into Kali Linux on your Pi! The default credentials for logging in arerootandtoor, as always.You can now download other operating systems onto your BerryBoot SD card to easily swap between systems when needed. Stay tuned for custom BerryBoot images and a tutorial on installing to a USB thumb drive. You can ask me questions here or @sadmin2001 onTwitterorInstagram.Don't Miss:More Raspberry Pi Hacking Guides on Null ByteFollow Null Byte onTwitter,Flipboard, andYouTubeSign up forNull Byte's weekly newsletterFollow WonderHowTo onFacebook,Twitter,Pinterest, andFlipboardWant to start making money as a white hat hacker?Jump-start your hacking career with our2020 Premium Ethical Hacking Certification Training Bundlefrom the newNull Byte Shopand get over 60 hours of training from cybersecurity professionals.Buy Now (90% off) >Other worthwhile deals to check out:97% off The Ultimate 2021 White Hat Hacker Certification Bundle99% off The 2021 All-in-One Data Scientist Mega Bundle98% off The 2021 Premium Learn To Code Certification Bundle62% off MindMaster Mind Mapping Software: Perpetual LicenseCover photo and screenshots by SADMIN/Null ByteRelatedHow To:Log into Your Raspberry Pi Using a USB-to-TTL Serial CableHow To:Build a Beginner Hacking Kit with the Raspberry Pi 3 Model B+How To:Discover & Attack Raspberry Pis Using Default Credentials with Rpi-hunterThe Hacks of Mr. Robot:How to Build a Hacking Raspberry PiHow To:Set Up a Headless Raspberry Pi Hacking Platform Running Kali LinuxHow To:Use VNC to Remotely Access Your Raspberry Pi from Other DevicesRaspberry Pi:Hacking PlatformHow To:Build a Portable Pen-Testing Pi BoxHow To:Load Kali Linux on the Raspberry Pi 4 for the Ultimate Miniature Hacking StationHow To:Set Up Kali Linux on the New $10 Raspberry Pi Zero WRaspberry Pi:Physical Backdoor Part 1Open Sesame:Make Siri Open Your Garage Door via Raspberry PiHow To:Lock Down Your DNS with a Pi-Hole to Avoid Trackers, Phishing Sites & MoreHow To:Enable Monitor Mode & Packet Injection on the Raspberry PiHow To:Turn Any Phone into a Hacking Super Weapon with the SonicHow To:Create a Wireless Spy Camera Using a Raspberry PiHow To:Automate Hacking on the Raspberry Pi with the USB Rubber DuckyRaspberry Pi:Physical Backdoor Part 2How To:Build an Off-Grid Wi-Fi Voice Communication System with Android & Raspberry PiHow To:Share Wi-Fi Adapters Across a Network with Airserv-NgRasberry Pi:IntroductionHow To:Set Up Network Implants with a Cheap SBC (Single-Board Computer)News:This Guy Built an Impressive Smart Mirror Controlled by Gestures & VoiceNews:Smart Home Proof of Concept Uses a Raspberry Pi to Control Air Conditioner with HoloLensNews:Virtualization Using KVMHow To:Give Your GRand Unified Bootloader a Custom ThemeHow To:Run Windows from Inside LinuxHow To:Install Linux to a Thumb DriveHow To:Windows 7 Won't Boot? Here's How To Fix Your Master Boot RecordHow To:Your Guide to Lazy Baking, Part 1: How to Make Mini-Pies in Muffin Tins