Jump to content

Restore USB from weird state

Go to solution Solved by NunoLava1998,

Repartitioned using GParted as it was available. One unexistent copy that Manjaro loves to make, and the real USB! Finally, i was spending 5 hours on this.

After a KDE crash during a upgrade, somehow my 16 GB USB was likely corrupted. Now Manjaro Linux 16.10 thinks i have 2 USB sticks, one that gives signs that usually means the kernel is going crazy or that your USB is broken, as you can't mount or format it.

 

I installed Archbang on one of them (the only USB that you could manage) and booted from it. And behold... a blinking cursor.

How can i restore this?

(please reply fast)

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to comment
https://linustechtips.com/topic/686235-restore-usb-from-weird-state/
Share on other sites

Link to post
Share on other sites

5 minutes ago, Electronics Wizardy said:

Is there data on it you care about?

 

You can just reformat it.

when i try to reformat the working partition and install anything on it nothing works when booting like if nothing was installed

when i try sdb5 (which changed to sdf5) which is the unusuable...

"not enough blocks" or "too many blocks"

 

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to post
Share on other sites

2 minutes ago, NunoLava1998 said:

when i try to reformat the working partition and install anything on it nothing works when booting like if nothing was installed

when i try sdb5 (which changed to sdf5) which is the unusuable...

"not enough blocks" or "too many blocks"

 

gdisk /dev/sdb

 

hit 

o

n

ENTER

ENTER

ENTER

ENTER

ENTER

w

 

then mkfs.ext4 /dev/sdb1

 

Link to post
Share on other sites

Just now, wrathoftheturkey said:

Ten to one it's broken. USB drives tend to break really damn easily

It seems Manjaro just tried to recreate sdf1 and made sdf5, but again, couldn't sdf5 be the USB and sdf1 be that stupid CD that shows up when you plug it in for "encryption and security and works on windows and mac and linux even though it only works on windows to be real"?

 

But sdf5 seems to be dissapearing like Manjaro regret it. Maybe i didn't install Arch correctly, meh.

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

gdisk /dev/sdb

 

hit 

o

n

ENTER

ENTER

ENTER

ENTER

ENTER

w

 

then mkfs.ext4 /dev/sdb1

 

"

Warning! Main partition table overlaps the first partition by 34 blocks!
You will need to delete this partition or resize it in another utility.
Aborting write of new partition table.


"

 

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to post
Share on other sites

2 minutes ago, NunoLava1998 said:

"

Warning! Main partition table overlaps the first partition by 34 blocks!
You will need to delete this partition or resize it in another utility.
Aborting write of new partition table.


"

 

dd if=/dev/zer of=/dev/sdb

 

this will clear all the data on it, then try again

Link to post
Share on other sites

2 minutes ago, Electronics Wizardy said:

dd if=/dev/zer of=/dev/sdb

 

this will clear all the data on it, then try again

dev/zero

seems legit

 

 

EDIT: did it

not doing anything

looks like sdf5 is indeed a imaginary partition, lol

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to post
Share on other sites

did zero on sdb1

 

 

 

4 GB... um

i am PRETTY sure it's 16GB, not 4GB

unless this is running in 32 bit mode, but this surpassed the 32 bit limit

 

 

EDIT: now the unusuable part can be accessed easily, i'm just not allowed to mount it, but sudo is love

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to post
Share on other sites

Kernel messages from USB disconnecting and connecting:

[ 4902.288285] usb 3-5: new high-speed USB device number 10 using xhci_hcd
[ 4907.301655] usb 3-5: device descriptor read/8, error -110
[ 4912.418340] usb 3-5: device descriptor read/8, error -110
[ 4912.521662] usb usb3-port5: unable to enumerate USB device
[ 4995.648630] usb 3-5: new high-speed USB device number 11 using xhci_hcd
[ 4996.068630] usb 3-5: new full-speed USB device number 12 using xhci_hcd
[ 4996.228663] usb 3-5: device descriptor read/64, error -71
[ 4996.491981] usb 3-5: device descriptor read/64, error -71
[ 4996.755279] usb 3-5: new full-speed USB device number 13 using xhci_hcd
[ 4996.915306] usb 3-5: device descriptor read/64, error -71
[ 4997.178682] usb 3-5: device descriptor read/64, error -71
[ 4997.441953] usb 3-5: new full-speed USB device number 14 using xhci_hcd
[ 4997.442081] usb 3-5: Device not responding to setup address.
[ 4997.645376] usb 3-5: Device not responding to setup address.
[ 4997.848656] usb 3-5: device not accepting address 14, error -71
[ 4998.008680] usb 3-5: new full-speed USB device number 15 using xhci_hcd
[ 4998.008806] usb 3-5: Device not responding to setup address.
[ 4998.212106] usb 3-5: Device not responding to setup address.
[ 4998.415345] usb 3-5: device not accepting address 15, error -71
[ 4998.415374] usb usb3-port5: unable to enumerate USB device

 

Ryzen 7 3700X / 16GB RAM / Optane SSD / GTX 1650 / Solus Linux

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×