LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 10-11-2023, 09:41 PM   #1
Novatian
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: Reputation: 38
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?
 
Old 10-11-2023, 09:56 PM   #2
frankbell
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
Blog Entries: 28

Rep: Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302Reputation: 6302
GParted?
 
Old 10-11-2023, 10:08 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
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.
Old 10-12-2023, 12:05 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,027
Blog Entries: 27

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
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.
 
Old 10-12-2023, 01:09 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,130
Blog Entries: 20

Rep: Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719Reputation: 4719
Yes, why would you wipe the first 446 bytes twice?
 
Old 10-12-2023, 05:41 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,770

Rep: Reputation: Disabled
I'd just use fdisk - new MBR, new partition, new file system, all from the command line....
 
Old 10-26-2023, 12:34 AM   #7
Novatian
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: Reputation: 38
This video using the terminal in Linux fixed it.
https://www.youtube.com/watch?v=Z9A1-NeXfJU
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing the ownership of a USB stick in Linux Kodachi 8.22 live PaulExordium Ubuntu 12 09-06-2022 05:20 AM
[SOLVED] Encrypted calling applications for Linux Kodachi alphandomega Linux - Software 3 05-23-2021 11:15 AM
Kodachi Linux version 3.7 on multiboot USB stick doruletz00 Debian 0 01-24-2017 07:48 PM
Kernel version 2.6.18-128, what does it mean 18-128 ? bala.linuxtech Linux - Newbie 3 12-12-2012 06:13 AM
Unable to connect to wap at work or home - 128 bit - Linux: 128 hex only option? pearsdb Linux - Newbie 5 05-28-2009 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration