1

I created a Live USB with Ubuntu of another os. How can I completely delete that Live USB info if it only shows some kb's of memory and can't access the files of that Live USB?

3 Answers3

1

The fastest/easiest way is via the Ubuntu "Disks" GUI application. Just selection the disk and partitions you want to remove and hit delete (-).

Let me know how you get on.

0

You can use mkusb-dus to delete that Live USB info and restore the USB drive to a standard storage device with an MSDOS partition table and a FAT32 partition.

sudo add-apt-repository universe  # only for standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi

enter image description here

You find more details at these links,

phillw.net/isos/linux-tools/mkusb/mkUSB-quick-start-manual.pdf

help.ubuntu.com/community/mkusb

sudodus
  • 46,324
  • 5
  • 88
  • 152
-1

Try Format USB drive

Using the Disks Utility

  1. Click the Dash button and search for "disks". You'll see Disks appear in the Applications results.

  2. Launch Disks from the search results. A list of connected devices will appear in the left frame.

  3. Select your USB drive from the list of devices. Its details will appear in the right frame.

  4. Select at least one volume on the USB drive. Most USB drives will only have one volume, but if yours has multiple volumes you can select one or all of them.

  5. Click the Gear button underneath the Volumes and select "Format." This will open the formatting options.

  6. Select what you want to erase. A Quick format will not erase any data on the drive. A Slow format will erase all of the data and check for errors on the drive.

  7. Select the file system. There are several different file systems that you can choose from.

    • For maximum compatibility with other devices, select "FAT" (FAT32). This will work on all computers and virtually any other device that works with USB drives.
    • If you're just planning on using the drive with Linux, select "ext3." This will allow you to use Linux's advanced file permissions.
  8. Format the drive. Click the Format button and wait for the USB drive to be formatted. This may take a while for larger drives, and erasing all of the data will add to the time it takes.


Using the Terminal

  1. Open the Terminal. You can open this from the Dash, or by pressing Ctrl+Alt+T.
  2. Type lsblkand press ↵ Enter. This will display a list of storage devices attached to the computer.
  3. Identify your USB drive. Use the SIZE column to find your USB drive in the list.
  4. Unmount your USB drive's partition. You'll need to unmount the drive before formatting. Type the following command, and press sdb1 with your USB drive's partition label.

    sudo umount /dev/sdb1

  5. Erase all of the data on the drive (optional). You can delete everything on the drive by entering the following command. Replace sdb with your USB drive's label.

    • sudo dd if=/dev/zero of=/dev/sdb bs=4k && sync
    • This will take a while to process and may appear frozen
  6. Create a new partition table. The partition table controls the volumes on the drive. Type the following command, replacing sdb with your USB drive's label.

    • Type sudo fdisk /dev/sdb and press ↵ Enter. Press O to create an empty partition table.
  7. Press N to create a new partition. Enter the size of the partition that you want to create. Enter the full size of the drive if you are just creating a single partition.

  8. Press W to write the table and exit. This may take a moment.

  9. Run lsblk again to view your new partition. It will be listed below your USB drive's label.

  10. Format your new volume. Now that you've created the new volume, you can format it with the file system of your choosing. Enter the following command to format the drive as FAT32, the most compatible file system. Replace sdb1 with your partition's label

    • sudo mkfs.vfat /dev/sdb1
  11. Eject your drive when finished. Once the format is complete, you can safely eject your device

    • sudo eject /dev/sdb

reference