Giter Site home page Giter Site logo

khant-sodope / usb-mac Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

This Python script simplifies the process of formatting USB drives to Mac OS Extended (Journaled) and assigning a custom name. It's a valuable tool for creating bootable USB drives or preparing storage media for Mac-specific tasks, all within a few easy steps.

Python 100.00%

usb-mac's Introduction

USB Drive Formatter for Mac OS

This Python script allows you to format a USB drive to Mac OS Extended (Journaled) and assign a name to it. It's a handy tool for creating bootable USB drives or preparing storage media for Mac-specific purposes.

Prerequisites

  • This script is designed for macOS.
  • Ensure you have Python installed on your macOS system.

Usage

  1. Open a terminal window.

  2. Navigate to the directory where you've saved the Python script.

  3. Run the script by executing the following command:

    python script_name.py
  4. You will be prompted to enter the name you want to assign to the USB drive after formatting it.

  5. You will also be prompted to enter the USB location, which should be in the format /dev/diskX. Make sure to enter the correct location of your USB drive.

  6. The script will format the USB drive to Mac OS Extended (Journaled) with the specified name.

  7. If successful, your USB drive will be ready for use.

Example

Here's an example of how you can use the script:

$ python script_name.py
What name would you like to assign to the USB drive after formatting it? : MyBootableUSB
Please enter the USB location : /dev/diskX
USB drive formatted successfully as Mac OS Extended (Journaled).

Note

  • Ensure that you have a backup of any important data on the USB drive before running this script, as it will erase all existing data.

  • Replace script_name.py with the actual name of your Python script.

  • Use this script responsibly and double-check the USB location to avoid formatting the wrong drive.

  • This script can be especially useful for creating bootable USB drives for Mac OS installations.

  • Feel free to modify the script to suit your specific needs.

Happy formatting!

usb-mac's People

Contributors

khant-sodope avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.