LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-22-2023, 10:10 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
how to recover a 16 or 32GB usb stick


I was burning an iso to a usb stick and got frustrated because dd would not complete the copy and opened gparted then just told it to format it to msdos 16 whatever and ended up with a 8 mb stick but when I plug it in thunar opens three partitions under /run/media/

/run/media/userx/039E-EF17/efi free space 43kib



/run/media/userx/Bodhi Live CD/ freespace 0 bytes (zero)
/run/media/userx/writable/ freespace 27.0 GiB
that last one has a crash log dir

gparted is just showing the used part of like 8MB
Code:
                                 Disk: /dev/sdb
                   Size: 8 MiB, 8388608 bytes, 16384 sectors
          Label: gpt, identifier: 75BC8DE0-5780-4D2E-8257-1ED47E61A861

    Device             Start       End     Sectors     Size Type
>>  /dev/sdb1           2048     14335       12288       6M Linux filesystem
Code:
# fdisk -l /dev/sdb
Disk /dev/sdb: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 75BC8DE0-5780-4D2E-8257-1ED47E61A861

Device     Start   End Sectors Size Type
/dev/sdb1   2048 14335   12288   6M Linux filesystem
I don't know what else to post

Last edited by BW-userx; 05-22-2023 at 10:23 AM.
 
Old 05-22-2023, 10:20 AM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,415

Rep: Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564Reputation: 564
gparted has an option under device to "create partition table".
 
Old 05-22-2023, 10:26 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by enigma9o7 View Post
gparted has an option under device to "create partition table".
I tried that but it is only giving me a 8mb size and not recovering the amount of the usb stick
Attached Thumbnails
Click image for larger version

Name:	USB-Scick-Screenshot_2023-05-22_10-28-07.jpg
Views:	5
Size:	159.3 KB
ID:	41101  

Last edited by BW-userx; 05-22-2023 at 10:29 AM.
 
Old 05-22-2023, 10:41 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by enigma9o7 View Post
gparted has an option under device to "create partition table".
Okay I got it back somehow after booting the usb stick into bodhi and it failed to run its install then booted into slack and opened gparted then seen it all so I wiped it then created a new partition table regaining the 32GB
 
Old 05-22-2023, 01:39 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,910
Blog Entries: 1

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by BW-userx View Post
I was burning an iso to a usb stick and got frustrated because dd would not complete the copy and opened gparted then just told it to format it to msdos 16 whatever and ended up with a 8 mb stick but when I plug it in thunar opens three partitions under /run/media/
When you change partitioning on a USB device, it helps with some tools to run partprobe immediately after completion, but basically it needs to be safely removed then reinserted if you want everything, including kernel, to work right WRT to that device's content.

Save yourself some grief and use ddrescue instead of dd. It provides status by default, so that you know when it actually gets done. Just because dd appears to complete doesn't mean the write process is complete - there can be a considerable amount remaining to be written, leaving you with a corrupted device needing the whole process started from scratch if you attempt to take action with or upon it before writing completes.
 
2 members found this post helpful.
  


Reply



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
How to differentiate a mounted usb stick vs plugged in but not mounted usb stick. andrewysk Linux - Newbie 22 04-05-2021 02:42 PM
Slackware64-current(>14.2): bug with UEFI install onto DELL Inspiron 14-3452 laptop ( eMMC 32GB drive ) from usb-stick image ckrzen Slackware - Installation 4 11-27-2016 08:24 AM
dd: can't copy a 32GB USB 3.0 SanDisk extreme to another 32GB USB 3.0 SanDisk Ultra basskleff Linux - Software 17 11-12-2013 10:58 AM
can I recover corrupt USB stick? garydale Linux - Hardware 3 12-25-2011 01:23 PM
Multiboot on 32Gb USB stick EricTRA Linux - Software 9 08-27-2009 08:15 AM

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

All times are GMT -5. The time now is 11:22 PM.

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