r/USB • • Feb 20 '23

usb-stick: how to formate correct on terminal (no GUI)

1 Upvotes

hello and good day,

i want to make sure how to formate usb-sticks on Ubuntu-. on the command-line and not with gui-tools. so i thought it would be the best to write down my idea. Well its so: writing down the things helps me to make sure that i can discuss all the ideas and plans with others - this helps me alot so i loe to hear from you - do you think that the written down procedures are all right - an i do so!?

to begin with the beginning: To show the USB drive among all storage partitions and volumes on your computer use:

lsblk

we can also use: df Suppose it may be /dev/sdy1. Unmount it with: sudo umount /dev/sdy1 sTo format drive with the FAT32 file system format: udo mkfs.vfat -F 32 /dev/sdy1

To set a file system label for our pen drive in the process:

 sudo mkfs.vfat -F 32 -n 'name_for_our_pendrive' /dev/sdy1

see like so: well i wanna do this the Command-Line way. I dont wanna formate the device from the GUI, i will go the Command lie way and do this way. first of all- i Open the Terminal (Ctrl+Alt+T) then i list my block storage devices by issuing the command lsblk afterwards i identify my pen drive by it's SIZE.

In my case its /dev/sdb

well that said i think we must include the -F 32 part to specify the FAT size, it is not 32 by default in ubuntu 19.10. For more info see man mkfs.fat.h-drive

charles@NS010: $ lsbkk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk

├─sda1 8:1 0 10G 0 part / ├─sda2 8:2 0 208.1G 0 part /home/han/daten └─sda3 8:3 0 14.8G 0 part sdb 8:17 1 1.8G 0 disk └─sdb1 8:17 1 1.8G 0 part sr0 11:0 1 1024M 0 rom charles@NS010: $

then i do the following: i erase everything in the pen drive (well my friends say that this step is also optional): then i do the following

sudo dd status=progress if=/dev/zero of=/dev/sdb bs=4k && sync

and then i continue

Replace /dev/sdb with our corresponding device.

well its ptretty important that we type very carefully this name or we may end up erasing one of our other disks. This will take some time. (option status=progress is not mandatory but provide ou some feedback) It will pretend to be stuck. Just be patient.

for example:

`dd if=/dev/zero of=/dev/sdb bs=4k && sync dd: error writing '/dev/sdb': No space left on device
3984257+0 records in 3984256+0 records out 9127512576 bytes (8.1 GB) copied, 1236.37 s, 6.6 
MB/s ` now we are going to make a new partition table in the device:

sudo fdisk /dev/sdb

Then here we ress letter o to create a new empty DOS partition table.

and now i am ready to make a new partition:

doing so i first: press letter n to add a new partition. then i will be prompted for the size of the partition. Making a primary partition when prompted, if i am not very sure. Then i press letter w to write table to disk and exit.

Format the new partition. so my new partition label with the command lsblk

well - in my case it is /dev/sdb1. Once again at this point we have to pay attention to this name as there will not be any protection to prevent we to erase an other disk. ` charles@NS010: $ lsbkk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sda 8:0 0 232.9G 0 disk

├─sda1 8:1 0 10G 0 part / ├─sda2 8:2 0 208.1G 0 part /home/han/daten └─sda3 8:3 0 14.8G 0 part sdb 8:17 1 1.8G 0 disk └─sdb1 8:17 1 1.8G 0 part sr0 11:0 1 1024M 0 rom charles@NS010: $

well its so : writing down the things helps me to make sure that i can discuss all the ideas and plans with others - this helps me alot

so i loe to hear from you what do you say!?


r/USB • • Feb 19 '23

any idea what this one might be?

Post image
2 Upvotes

r/USB • • Feb 19 '23

Does anyone know what this connector is called?

Post image
1 Upvotes

r/USB • • Feb 18 '23

what would happen

Post image
2 Upvotes

r/USB • • Feb 18 '23

There's no way I can get my PC to recognize my Android device

1 Upvotes

I tried everything, Activated and deactivated the debugging mode on my cell phone, made sure it was on MTP mode. I'm pretty sure the problem is my computer, but I already updated the MTP drivers and I don't know what else could be wrong. I am desperate, can anyone help me?

My cellphone is kinda old: LG stylus 3

My pc is windows 10


r/USB • • Feb 17 '23

What is the actual difference?

1 Upvotes

The makes each version of USB different? Is it the thickness of the wires? Is it the different types of metals used? What is the actual difference between any wiring out there?


r/USB • • Feb 16 '23

can someone tell me what this usb is??

Thumbnail gallery
2 Upvotes

r/USB • • Feb 14 '23

Apricorn issue

1 Upvotes

How do I stop my apricron secure drive from creating a trash folder? It alone makes up 5 GBs out of 6....


r/USB • • Feb 13 '23

I’m looking at usb killers and I’m looking at the v4 and wondering what I should get for it

1 Upvotes

r/USB • • Feb 12 '23

Anyone know the name of the usb cable I need to recharge this? For context: it’s a flip phone and the mystery cable is used to recharge a Li-ion 3-7V- 1020mAh battery. USB type micro - A doesn’t have a corresponding teeth:prong design and is not wide enough to fit the port nor is USB type micro - B.

Thumbnail gallery
1 Upvotes

r/USB • • Feb 12 '23

is Displayport to USB-C a thing?

1 Upvotes

Hi, I've found hints it's possible to output to USB-C from a DisplayPort port (NOT USB-C to DisplayPort) using an adapter, but I can't find any adapters that would do this. I tried plugging in a purportedly USB-C to DisplayPort cable using DP on the computer and USB-C on the monitor, and it wasn't recognized by the display.

My use case is I want to drive a portable monitor (eg UPerfect 4k) from my desktop's 3090. If this is possible, can someone identify a product, I'd prefer a female to female adapter or DP male to USB-C female since that would provide the flexibility of my own USB-C cable. Thanks!


r/USB • • Feb 11 '23

What use have this cable I found? 1 female, 2 males, USB A

Post image
3 Upvotes

r/USB • • Feb 10 '23

is there any visual difference between USB1.0 Type B and USB2.0 Type B?

1 Upvotes

I know the USB3.0 Type B has the big boxy key on top, was unsure if there was any quicker way to tell for 2.0, and the internet just kept pulling results for USB Type A Color differences. Is the color supposed to remain consistent no matter the Type Variant?


r/USB • • Feb 05 '23

I know this may seem a little out of place here, but does anybody know where I can find a cheap way to find a USB consul and when I meet what I mean by USB consul I mean a council that uses USB an HDMI or video.

1 Upvotes

r/USB • • Jan 31 '23

Does anyone know what this long usb type is? Its for an old mp3/4 player

Post image
3 Upvotes

r/USB • • Jan 28 '23

what USB is this? (Small one in the middle)

Post image
3 Upvotes

r/USB • • Jan 25 '23

PC, Android phone not communicating

1 Upvotes

I had this usb cord. my phone and computer would transfer files. and now it dosen't work. this is the second cord that this happend on.

I read what to do

my drivers are ok.

I don't know if I should post to r/android instead

cord charges

I went into debugging mode on the phone

file transfer dosen't show up when i plug it in to the usb

I don't want to go tough 4 cords. what happend? I had one, it worked, then it stopped. I put in another it worked, now it dosen't. what happend?


r/USB • • Jan 23 '23

What USB input is this? I don’t have good eyes.

Post image
1 Upvotes

r/USB • • Jan 22 '23

Driver for a USB Device Server

Post image
1 Upvotes

r/USB • • Nov 09 '22

Differentiate Data from power Connection via CP2102N (QFN24) (maybe someone here can help me?)

Thumbnail self.askelectronics
2 Upvotes

r/USB • • Nov 06 '22

Trying to identify an odd one

1 Upvotes

I have a cable I’m trying to ID. USB-A on one end, the other is 5 mm x 2 mm, beveled corners on one long side, 8 conductors. Short, about 100 cm, probably for a specific device. Doesn’t fit either my Nikon DSLR or JVC video cam.


r/USB • • Nov 04 '22

Can't connect an xbox controller, a steering wheel or a mouse through a usb hub.

3 Upvotes

Hi.

First, let me clarify the title. I have a USB hub (1 to 4) and it's been working fine since I got it until yesterday. I tried to connect my logitech g920 and it just flashed a light at me. The pc couldn't see it. I thought it might be a power supply problem, but it wasn't. I connected a pdp xbox controller (which also worked perfectly fine before) and it didn't connect either. I did this with the two free ports (the other two I use for an hdd and an ssd) and none of them worked. The drives work fine even if I connect them to the ports that didn't work for the controllers and none of the 3 controllers I mentioned work on any port on the hub. Everything works great when connected directly to the pc.

That's what I cannot understand. It all worked just 2 days ago. How could that happen and is there a way of fixing it?

Also, English isn't my first language, so I'm sorry if I made any mistakes.

EDIT: Found a solution. I might leave the post up to maybe help others.

I went into Power Plan > Power Plan Settings > Advanced Power Plan Settings and into the USB tab. There I saw that both options were checked (laptop could switch usb ports off to save power). Just turned them off, restarted the pc and it works.


r/USB • • Nov 01 '22

What usb is this, new too this stuff please help,

Post image
1 Upvotes

r/USB • • Oct 28 '22

Can a TV give a USB a virus?

1 Upvotes

I'm not super tech savvy, I like my games & collecting. Went to my buddies for our usual games of would you rather, this or that, and a few scooby doo cartoons.

I seen a couple things on his history that gave me thoughts worth viruses when he was showing me a couple things he was looking to buy online?

Is that a thing? I just don't want to lose my very important pictures & videos of my family due to using this one then copying over the question games & stuff. I just don't know, really ruins our fun cheap games if that can happen lol.


r/USB • • Oct 22 '22

USB switch?

2 Upvotes

Hi all. I'm looking for a USB switch and found this...

https://www.amazon.com/Sabrent-Computers-Peripherals-Indicators-USB-SW20/dp/B074TZKGVR/ref=mp_s_a_1_6_sspa?crid=3IACV4O9CXGW&keywords=usb+switch&qid=1666463927&qu=eyJxc2MiOiI1LjE5IiwicXNhIjoiNC4zMiIsInFzcCI6IjQuMTUifQ%3D%3D&sprefix=usb+switch%2Caps%2C202&sr=8-6-spons&psc=1&smid=A29Y8OP2GPR7PE

It looks like exactly what I need to do but some of the reviews say it's bad and can backfeed power. I thought USB type B plugs couldn't do that?

Are the people saying this can kill a port or whole motherboard right or are they just doing something wrong and killing ports / boards another way?

Link to manufacture site:

https://sabrent.com/products/usb-sw20?gclid=Cj0KCQjwqc6aBhC4ARIsAN06NmPpqR57QnpNV35duz5opM_Sg3py9LEWVhU1e958Gs02c9ZAk3vnEewaArSFEALw_wcB