Skip to content

pindjouf/bootable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Bootable

Why make this?

We all like converting our friends/family/colleagues to linux, but we're all guilty of looking up how the dd command works every time we've won them over. This is why I wanted to simplify the process and make linux propaganda easier and faster for all!

What is it and how does it work?

Bootable is a CLI utility that helps you create bootable USB drives from ISO images. It simplifies the process of selecting an ISO file and a USB drive, then uses the dd command to write the image to the drive.

Features

  • Automatically finds ISO files in your home directory
  • Detects and lists available USB drives
  • Provides a simple command-line interface for selecting the ISO and USB drive
  • Uses dd to create the bootable USB drive

Installation

  1. Clone this repository or download the script:

    git clone https://github.com/pindjouf/bootable.git
    cd bootable
  2. Make the script executable:

    chmod +x bootable.sh
  3. (Optional) Move the script to a directory in your PATH for easy access:

    sudo mv bootable.sh /usr/local/bin/bootable

Usage

  1. Run the script:

    ./bootable.sh

    Or if you moved it to your PATH:

    bootable
  2. Follow the on-screen prompts to:

    • Select an ISO image
    • Choose a USB drive
    • Confirm the operation

How It Works

  1. The script searches for ISO files in your home directory.
  2. It uses lsblk to detect USB drives connected to your system.
  3. You select the ISO file and USB drive from the presented lists.
  4. The script uses dd to write the ISO to the USB drive, making it bootable.

Note

  • This script requires sudo privileges to write to USB drives.
  • Writing an ISO to a USB drive will erase all existing data on that drive.
  • Always double-check that you've selected the correct USB drive before confirming the operation. 💀

Requirements

  • Bash shell
  • lsblk command (usually pre-installed on most Linux distributions)
  • dd command (pre-installed on most Unix-like systems)

Contributing

Feel free to fork this repository and submit pull requests for any improvements or bug fixes.

Roadmap / to-do list

  • Repeat questions that were not answered correctly instead of exiting.
  • Improve error handling & exit sequences.
  • Add eject USB prompt after script ran successfully.
  • Add Windows support.

Information

Author: pindjouf

License: MIT License