Lumalab

Search entriesDeutsch English
  
User:   Password:    
Forum > Linux > Repair and format USB sticks
StartStopPage 1 of 1StopEnde
Author: EngysTopic: Repair and format USB sticksLast change: 2015-02-11 15:29:18 

Locate USB Stick:

fdisk -l

Fix bad USB Drive: (unable to open)

dd if=/dev/zero of=/dev/<device> count=1

Replace <device> with the device name you located with fdisk -l
eg.: sde, sdf or what ever correspond to your USB stick?

fdisk /dev/<device>

You will get the following options:

use ‘p’ to print the current partition table
use ‘d’ to delete partition(s)
use ‘n’ to create a new primary partition (p)
use ‘p’ to print the new partition table
use ‘w’ to write the new partition table

use:

> n
> p

for a new primary partition

NTFS Format:

mkfs.ntfs -L <name> /dev/<device>

replace <name> and <device>

-f = quick format
-L = Lable


Old Fat 32 Format:

Partitioning:

cfdisk /dev/<device>

replace <device> with the device name

Format:

mkdosfs -F 32 -I -n <stickname> /dev/<device>

replace <stickname> and <device> with name and devicename


UpReply 
StartStopPage 1 of 1StopEnde