Skip to content

ds-brandao/xerox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

USB Drive Cloning Script

Overview

This script is designed to clone USB drives on a Linux system. It lists all connected USB drives, allows the user to select a source and destination drive, and then clones the source drive to the destination drive. This script must be run with root permissions.

Installation

  1. install the requirements.txt:
pip install -r requirements.txt
  1. ensure the script is executable:
chmod +x clone_usb.py

Executing

sudo python clone_usb.py

Script Workflow

  1. The script lists all connected USB drives and waits for a USB drive to be connected if none are detected.

  2. It displays information about each detected USB drive, including the manufacturer and model.

  3. The user is prompted to select the source drive to clone from and the destination drive to clone to.

  4. Safety checks ensure that the source and destination drives are not the same.

  5. The user is prompted to confirm the cloning operation.

  6. The script uses the dd command, piped through pv for progress monitoring, to clone the source drive to the destination drive.

Important Notes

• Data Loss Warning: Cloning a drive will overwrite all data on the destination drive. Ensure you have backups of any important data.

• Root Permissions Required: The script must be run with root permissions to access and clone the drives.

About

Drive cloner using dd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages