• Flashdrive


    how do i erase everthing on a flashdrive. i tried gparted.(Solved)

  • how do i erase everthing on a flashdrive. i tried gparted.(Solved)

  • @"Arch said:

    dd count=1 bs=512 if=/dev/zero of=/dev/sdx && sync
    

    Then create a new partition table (e.g. “msdos”) and filesystem (e.g. EXT4, FAT32) using gparted, or from a terminal:
    For EXT2/3/4 (adjust accordingly), it would be:

    cfdisk /dev/sdx
    
    mkfs.ext4 /dev/sdx1
    
    e2label /dev/sdx1 USB\_STICK
    

    For FAT32, install the dosfstools package and run:

    cfdisk /dev/sdx
    
    mkfs.vfat -F32 /dev/sdx1
    
    dosfslabel /dev/sdx1 USB\_STICK
    
Posts 3Views 796
Log in to reply