LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-02-2020, 02:08 AM   #1
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268
Blog Entries: 6

Rep: Reputation: Disabled
Question How is microSD error 123 felt like?


As for gdisk is gone against opening the card, which progs could be helpful to deal with the error ‘‘123’’?
Code:
[hd_scania@hd-scania ~]$ sudo gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.3
Problem opening /dev/sdb for reading! Error is 123.
[hd_scania@hd-scania ~]$ sudo cgdisk /dev/sdb
Could not load partitions from '/dev/sdb'! Aborting!
[hd_scania@hd-scania ~]$

Last edited by hd_scania; 06-02-2020 at 02:11 AM.
 
Old 06-02-2020, 02:15 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
if you could not open that card for reading nobody can help you. You can simply try cat /dev/sdb > /dev/null to check if that card is readable.
Also you can check /var/log for a better error message.
 
Old 06-02-2020, 03:24 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
A possible solution (to reuse the card) - clear the first few MB,
Code:
sudo dd if=/dev/zero of=/dev/sdb bs=4M
then give it a new MBR, re partition, & put a file system on it.

Last edited by fatmac; 06-02-2020 at 03:26 AM.
 
Old 06-02-2020, 05:04 AM   #4
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Code:
[hd_scania@open ~]$ sudo dd if=/dev/zero of=/dev/da0 bs=13K
dd: /dev/da0: Device not configured
1+0 records in
0+0 records out
0 bytes transferred in 0.000178 secs (0 bytes/sec)
[hd_scania@open ~]$ sudo gdisk /dev/da0
Warning! Read error 6; strange behavior now likely!
Warning! Read error 6; strange behavior now likely!
Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries in memory.

Command (? for help): p
Disk /dev/da0: 0 sectors, 0 bytes
Sector size (logical): 512 bytes
Disk identifier (GUID): E84F1D5F-58AB-421C-9C59-3A203F6FE5DC
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 18446744073709551582
Partitions will be aligned on 2048-sector boundaries
Total free space is 0 sectors (0 bytes)

Number  Start (sector)    End (sector)  Size       Code  Name

Command (? for help): q
[hd_scania@open ~]$ sudo cat /dev/da0 > /dev/null
cat: /dev/da0: Device not configured
[hd_scania@open ~]$ sudo fsck -ffyy -t msdosfs /dev/da0
** /dev/da0
could not read boot block
[hd_scania@open ~]$

Last edited by hd_scania; 06-02-2020 at 05:16 AM.
 
Old 06-02-2020, 05:06 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
what is that of=/dev/da0 ??
 
Old 06-02-2020, 05:22 AM   #6
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
/dev/da0 is how the same card is numbered on HBSD
Quote:
Originally Posted by pan64 View Post
what is that of=/dev/da0 ??
 
Old 06-02-2020, 05:32 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
that dd was not successful. It could not write anything onto /dev/da0.
Did you try the cat command I posted?
 
Old 06-02-2020, 06:06 AM   #8
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
As given before, my cat result was Device not configured, and it gets perplexed how and why it reports not configured.
Given here, the card is NOT visible to sudo gpart.
Quote:
Originally Posted by pan64 View Post
that dd was not successful. It could not write anything onto /dev/da0.
Did you try the cat command I posted?
 
Old 06-02-2020, 06:10 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
ok, sorry, did not see that. So this card is not usable. Either the reader or the card itself is not ok (or both).
You can try another card, another reader (or probably another OS).
 
Old 06-02-2020, 06:18 AM   #10
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
The same card with THREE readers was usually NOT visible to any disk managers, or seen outside but NOT readable inside
Now i still have an emptied card working fine, but 2x smaller than the dead one.
Quote:
Originally Posted by pan64 View Post
ok, sorry, did not see that. So this card is not usable. Either the reader or the card itself is not ok (or both).
You can try another card, another reader (or probably another OS).
 
Old 06-02-2020, 06:40 AM   #11
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
And the SMART result has been out with my screenshots below,
Code:
smartctl 7.1 2019-12-30 r5022 [FreeBSD 13.0-CURRENT-HBSD amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor:               Generic-
Product:              SD/MMC
Revision:             1.00
Device type:          disk
Local Time is:        Tue Jun  2 19:54:02 2020 HKT
NO MEDIUM present in device
SMART support is:     Unavailable - device lacks SMART capability.
=== START OF READ SMART DATA SECTION ===

Last edited by hd_scania; 05-11-2022 at 03:36 AM.
 
Old 06-02-2020, 08:19 AM   #12
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
Looking like it is dead/corrupted - I've come across other people with dead micro SD cards, they don't seem to be too reliable.

One of the reasons that I don't want to rely on them on my RPi computers, I prefer to USB boot them.

Last edited by fatmac; 06-02-2020 at 08:20 AM.
 
Old 06-02-2020, 07:26 PM   #13
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Dead/corrupted ... You mean the card was hard-bricked?
If not, how to recover those data for myself?
Quote:
Originally Posted by fatmac View Post
Looking like it is dead/corrupted - I've come across other people with dead micro SD cards, they don't seem to be too reliable.
One of the reasons that I don't want to rely on them on my RPi computers, I prefer to USB boot them.
 
Old 06-02-2020, 07:43 PM   #14
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
And the microSD was dead on an Android, but NOT a desktop, and i’ve put it onto a HBSD/Linux desktop as for data recovery.
 
Old 06-03-2020, 12:37 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
Quote:
Originally Posted by hd_scania View Post
Dead/corrupted ... You mean the card was hard-bricked?
If not, how to recover those data for myself?
there is no way to recover anything if you get only errors when you try to read it.
you might try testdisk to recover some data.
 
  


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
LXer: Mark Shuttlworth: We felt Blocked By Red Hat LXer Syndicated Linux News 0 05-02-2012 09:01 PM
So it felt like a good time to quit lurking... Andrew Decker LinuxQuestions.org Member Intro 1 07-26-2011 12:31 AM
How to redirect a m.domain.com/abc to a ip address 123.123.123.123/abc? elok Linux - Server 5 05-27-2010 09:05 PM
123 file input is not taking for i in $(cat ./123) procfs Programming 3 07-20-2006 04:10 AM
it felt good throwing a XP cd out my 3rd floor window mipia LinuxQuestions.org Member Success Stories 0 08-27-2004 05:11 PM

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

All times are GMT -5. The time now is 08:33 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