R
R
Rodion Yurchenko2016-08-03 08:00:03
ubuntu
Rodion Yurchenko, 2016-08-03 08:00:03

How to remove a partitioned live flash drive?

Good afternoon!
There is a flash drive that had several (2) live versions of ubuntu.
But after the flash drive has been in different hands, I found that nothing is loaded from it anymore, and it would be necessary to re-upload all distributions again.
I have an OS - ubuntu 14 - and it detects this flash drive as 2 different flash drives ...
Tell me - how to remove partitioning and how to format such a flash drive (data from it is not needed)
Thank you

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
neatsoft, 2016-08-03
@aassdds

information about the size and type of partitions is just a sequence of bytes that is written at a certain offset to the disk device (when using MBR - at the beginning, GPT - at the beginning and end of the disk)
with due desire and perseverance, a partition table can even be created using hex editor, but it is better to use utilities specially designed for this:
determine the device name:
unmount partitions (sdX must be replaced with the real device name):
create a new partition table (sdX is the device name):
create a new partition:
format the partition (instead of ext4 you can use fat or ntfs if you need access to the flash drive from other operating systems):
mount a new partition:
change the owner of the file system to the current user (for ext4):
all these operations can be done using the standard Disks utility with a graphical interface, the sequence of actions is the same: select a disk, create a new partition table, create a partition, format
some flash drives can be presented to the system as two separate devices (for example, like a disk and a cd-rom), in this case updating the partition table will not help, and to change the configuration you will have to use special utilities from the manufacturer of the flash drive or
the ps controller. (one flash drive - one distribution kit):

sudo umount /dev/sdX?
sudo parted /dev/sdX mklabel msdos
sudo dd if=ubuntu-16.04-desktop-amd64.iso of=/dev/sdX bs=1M

S
SergeySL, 2016-08-03
@SergeySL

have you tried parted from Linux or DISKPART from Windows?

V
Viktor, 2016-08-03
@nehrung

Any advanced partition manager (Acronis or Paragon) can delete all partitions and create one partition of the desired type on the shared disk space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question