Format Flash Drive Mac Terminal



By default, Mac starts from its built-in hard disk, but a startup disk can be any storage device that contains bootable contents that compatible with your Mac. For example, if you install macOS or Microsoft Windows on a USB drive, your Mac can recognize that drive as a startup disk. This guide provides 2 ways to boot a Mac from a USB flash drive.

Use Terminal to Format USB Drive on Mac The computer geeks can use the Terminal for disk formatting through the use of command lines. Just bear in mind that formatting a disk in this manner can be risky, since a single typo or one line here or there could mean that you lose data you wouldn’t want to otherwise. They're probably formatted NTFS, which Mac OS X can read but not write. You can just reformat the drive as FAT32 (MS-DOS format in Disk Utility) and it will work just fine with both your Mac and Windows systems. First make sure there is nothing valuable on the USB. Go to Disk Utility, which is in Applications/ Utilities. Click on the USB. Formats the drive to FAT32, other formats available are mkfs.bfs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.minix, mkfs.msdos, mkfs.vfat, mkfs.xfs, mkfs.xiafs etc.

  1. Question: Q: Brute force format drive w/ Terminal? I have an Intel iMac. I have two drives I want to erase, but Disk Utility won't let me erase them (one is a Windows NT volume, the other is 1/2 of an old RAID volume).
  2. Using command line or terminal easily we can format Hard disk or flash drive. To view all drive information# diskutil list 2. To view Node along with device info# diskutil info.

Requirement

Starting up your Mac from an external disk requires the following:

  • Intel-based Mac.
  • Bootable USB thumb drive formatted with a GUID partition type and containing an OS X installer or a usable operating system.

Let’s see how to boot a Mac from a bootable USB drive and what to do if your Mac doesn’t start up from it.

Way 1: Boot Mac from USB Drive using Startup Manager

Flash drive will not format

Getting your Mac to load from a USB drive is fairly straightforward. Use the following steps, you can easily set Mac boot from an external drive in Startup Manager, so it’ll only boot from USB that one time.

Step 1: Insert the USB boot media into a USB slot.

Step 2: Turn on your Mac (or Restart your Mac if it’s already on).

Step 3: Press and hold the Option key immediately after you see the Apple logo. Holding that key gives you access to OS X’s Startup Manager. Once the Startup Manager screen appears, release the Option key. The utility will look for any available drives that include bootable content.

Step 4: Using either the pointer or arrow keys on the keyboard, select the USB drive you wish to boot from. Once selected, either hit the Return key or double-click your selection. The machine will start to boot from the USB drive.

Way 2: Set a Mac Boot from USB Drive using Startup Disk

When you use Startup Disk preferences to set Mac boot from an external drive, so it’ll boot from that disk until you choose a different one. Here is how:

Step 1: Go to Apple menu > System Preference, then click Startup Disk.

Format Flash Drive Windows 10

FormatTerminal

Format Flash Drive Mac Terminal Drive

Step 2: Click the locked icon and then enter your administrator password.

Format Pen Drive Mac Using Terminal

Step 3: Select External drive as the startup disk, then restart your Mac.

What to do if your Mac does not boot from the selected drive

If you see a message prompts that your security settings do not allow this Mac to use an external startup disk, check the External Boot setting in Startup Security Utility, and then allow your Mac to use an external startup disk.

Step 1: Open Startup Security Utility.

Turn on your Mac, then press and hold Command (⌘) + R immediately after you see the Apple logo. Your Mac starts up from macOS Recovery. When you see the macOS utility window, choose Utilities > Startup Security Utility from the menu bar. When you’re asked to authenticate, click Enter macOS Password, then choose an administrator account and enter its password.

Step 2: Select “Allow booting from external media“.

If you want to select an external startup disk before restarting your Mac, quit Startup Security Utility, then choose Apple menu > Startup Disk.

Terminal

Note: If you’re using Boot Camp in a dual-boot Windows/OS X environment, you may be unable to boot negatively into supported versions of Microsoft Windows XP, Windows Vista or Windows 10 operating systems installed on external USB hard drive.

Make sure disk has been formatted with a GUID partition type

Intel-based Macs support starting from an external USB storage device’s volume that has been formatted with a GUID partition type. If you wish to boot from the drive, it’s important to format the partition as “GUID Partition Table” rather than either of the other two ahead of time when you use that drive as a bootable drive.

Make sure your disk is bootable

Volumes that aren’t bootable and don’t contain a copy of a valid operating system aren’t listed in Startup Disk or Startup Manager. Make sure the external drive you’re trying to start from contains a usable operating system.





Comments are closed.