Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-11-2023, 09:41 PM
|
#1
|
Senior Member
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,070
Rep:
|
My 128 GB memory stick has password encrypted Kodachi on it, I want to format it.
My 128 GB 3.1 USB stick has password encrypted Kodachi from 2022 on it, but I lost the password and cannot mount it. Previously I have used software to erase whole volumes using 0 s overwriting. But then the volume needs some work to mount again.
Is there a good way to fix my USB stick?
|
|
|
10-11-2023, 09:56 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,759
|
|
|
|
10-11-2023, 10:08 PM
|
#3
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
|
Hi, I would wipe the partition, repartition and reformat.
If the drive was mounted, dismount, then...
Code:
# wipe mbr
dd if=/dev/zero of=/dev/sdX bs=512 count=1
# wipe partition table
dd if=/dev/zero of=/dev/sdX bs=446 count=1
# Where,
if=/dev/zero – Read data from /dev/zero and write it to /dev/sdc.
of=/dev/sdX – /dev/sdX is the USB drive to remove the MBR including all partitions.
bs=512 – Read from /dev/zero and write to /dev/sdX up to 512 BYTES bytes at a time.
count=1 – Copy only 1 BLOCK input blocks.
The mbr size is as follows in bytes:
Where,446 + 64 + 2 = 512
446 bytes – Bootstrap.
64 bytes – Partition table.
2 bytes – Signature.
repartition with your favourite program, I use
gparted (gui), and format it ready for use.
I hope this helps.
|
|
1 members found this post helpful.
|
10-12-2023, 12:05 AM
|
#4
|
Moderator
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,027
|
I'd just go simple.
Code:
dd if=/dev/zero of=/dev/your/device count=50
Blow away the partition table, mbr if it has any, and gpt tables if it has any in 1 quick command.
Last edited by Timothy Miller; 10-12-2023 at 12:06 AM.
|
|
|
10-12-2023, 01:09 AM
|
#5
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,130
|
Yes, why would you wipe the first 446 bytes twice?
|
|
|
10-12-2023, 05:41 AM
|
#6
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,770
Rep: 
|
I'd just use fdisk - new MBR, new partition, new file system, all from the command line....
|
|
|
10-26-2023, 12:34 AM
|
#7
|
Senior Member
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,070
Original Poster
Rep:
|
This video using the terminal in Linux fixed it.
https://www.youtube.com/watch?v=Z9A1-NeXfJU
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 07:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|