1

I have just burned an .iso onto a usb drive, and i suspect something has gone wrong as it won't boot, so i want to wipe it and try again, but it won't let me remove files. When I use fdisk -l I get:

Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd9dca955

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048 233469951 233467904 111.3G 83 Linux
/dev/sda2       233471998 250068991  16596994   7.9G  5 Extended
/dev/sda5       233472000 250068991  16596992   7.9G 82 Linux swap / Solaris


Disk /dev/sdb: 14.3 GiB, 15376000000 bytes, 30031250 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

But under /dev/sdb there used to be a devices section like with /dev/sda, I'm assuming its to do with that. How do I get that back?

4
  • What do you mean by " it won't let me remove files." ? Feb 12, 2018 at 16:16
  • You need to add a partition table.
    – ubfan1
    Feb 12, 2018 at 16:20
  • @SanjayPrajapat I can view the files in the GUI but i can't remove or edit them. It has become read only.
    – Ashley
    Feb 12, 2018 at 16:25
  • 1
    There may be a hardware problem or a software problem. See the following link (and links from it), askubuntu.com/questions/144852/…
    – sudodus
    Feb 12, 2018 at 17:16

1 Answer 1

1

Okay, This happened hundred times with me. While Burning the iso, it creates the iso size partition in usb and copies the data into that partition and makes it read only.

Follow the GUI procedure ~>

Open Disks from dash.

Select the usb drive from sidebar.

enter image description here

Then click on the three dot on top-right corner and click "Format Disk..." and complete it.

enter image description here

Then click the on "+" icon, left the all field as default and simply click "create".

enter image description here

Then click the gear icon and select "Format Partition" and complete the process.

enter image description here

Remove the USB drive and reinsert.

1
  • 1
    rm -f filename worked on 20.04.
    – user176105
    Sep 20, 2022 at 17:31

Not the answer you're looking for? Browse other questions tagged .