Training

When: Every first Sunday of every month -get a ticket- from $15 (Click Here).

Thursday, May 25, 2017

USB copy paste error: partitioning - How can I delete all partion of my pen drive and create a single volume? - Ask Ubuntu

partitioning - How can I delete all partion of my pen drive and create a single volume? - Ask Ubuntu



When USB pen drive is not allowing to copy/paste for 2048 try 512 ; do:



This problem is caused caused by a low-level device tools writing blocks at the wrong size directly onto the device.





To fix this, you will have to re-write the device blocks to the appropriate size. To do this open terminal(Ctrl+Alt+T) and enter the following command



sudo dd if=/dev/zero of=/dev/sdX bs=2048 && sync


Remember to replace sdX with the actual device for your flash drive.


After doing this you can create a new partition using gparted or by terminal using

 

To format as fat32



sudo mkfs.vfat /dev/sdX1


To format ad ntfs



sudo mkfs.ntfs /dev/sdX1


To format as EXT4



sudo mkfs.ext4 /dev/sdX1

1 comment:

Approach Community said...

faster method:

First open the Disks Application under Applications > Disks
Select the bootable pen drive.
There will be an option menu on top right corner
Select the Format drive option (CTRL + F)
A pop-up will be shown. Select 0 partition and format the disk
Now the disk will be empty but it will be not recognized by system. But you can see on Disks Application.
Select the pen drive and re-format it. Now the pendrive can be detect by any system.

Alternatively you can $ sudo gparted
and then recreate the partion
:)