<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4832&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Micro SD card problem, cannot fix errors.]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4832</link>
		<description><![CDATA[The most recent posts in Micro SD card problem, cannot fix errors..]]></description>
		<lastBuildDate>Mon, 31 Jan 2022 11:06:06 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34304#p34304</link>
			<description><![CDATA[<p>I tried wipefs, dd, gparted etc.<br />I have to admit to still need to work my way through any dmesg entries.</p><p>I tried 3 different USB readers as well as discovering that the built in card reader works just fine under Linux. I was hard pressed to keep it working for more than a few hours under windows, so had forgotten it was there!</p><p>Yes dmesg does seem to show it is functional upon insertion and reading. <br />I am now trying to reliably run a fsck on it under linux, I do not seem to have all the tools that are suggested on the web.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mike-thinky)]]></author>
			<pubDate>Mon, 31 Jan 2022 11:06:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34304#p34304</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34228#p34228</link>
			<description><![CDATA[<div class="quotebox"><cite>Mike-thinky wrote:</cite><blockquote><div><div class="codebox"><pre><code>[1257191.630039] mmc0: new high speed SDHC card at address 59b4
[1257191.630340] mmcblk0: mmc0:59b4 00000 7.35 GiB 
[1257191.649111]  mmcblk0: p1
[1257192.028782] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.</code></pre></div></div></blockquote></div><p>So the card is actually assigned to /dev/mmcblk0 then? I presumed it was in a card reader or something.</p><p>Did you try using <span class="bbc">dd</span> and/or <span class="bbc">wipefs</span> on /dev/mmcblk0? Use <span class="bbc">dmesg</span> to confirm the block device after inserting the card and before attempting to wipe it.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 28 Jan 2022 20:35:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34228#p34228</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34214#p34214</link>
			<description><![CDATA[<p>It could be a batch issue I suppose.<br />I now have 3 still with files, all files added between 2014 an 2020, differing on each of them. All with a different amount of fill and usage.<br />Somehow on two of them I now have no partition table, and gparted gives an error message when trying to create one.</p><p>I am still curious to know why they have failed. None of them have the &quot;usbc&quot; string scattered in the partition table, so it is not that, some Linux users have had failure upon either suspend or resume from suspend, but most of those saw the usbc string.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mike-thinky)]]></author>
			<pubDate>Fri, 28 Jan 2022 10:14:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34214#p34214</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34213#p34213</link>
			<description><![CDATA[<div class="quotebox"><cite>Mike-thinky wrote:</cite><blockquote><div><p>... but I still do not unerstand why I cannot force a full redo of the mbr and partitions. I think I am sending commands to do that, gparted reports that it has not failed. But the card is not cleared down ...</p></div></blockquote></div><p>May be, the card has reached &quot;end of life&quot;? At this point the internal controller (inside the card) goes to &quot;read-only&quot; (this has nothing to do with any kind of mechanical switch on side of the card) and may be, he gives no information back about doing so. So the underlying operation-system oder any kind of software (like GParted) thinks, everything is fine and you&#039;ll get no errors here.</p><p>Best Regards, FM_81</p>]]></description>
			<author><![CDATA[dummy@example.com (FM81)]]></author>
			<pubDate>Fri, 28 Jan 2022 08:54:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34213#p34213</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34204#p34204</link>
			<description><![CDATA[<p>Hi,</p><p>This is the dmesg output:</p><div class="codebox"><pre><code>[1257191.630039] mmc0: new high speed SDHC card at address 59b4
[1257191.630340] mmcblk0: mmc0:59b4 00000 7.35 GiB 
[1257191.649111]  mmcblk0: p1
[1257192.028782] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.</code></pre></div><p>At this stage I know I cannot trust the data on there, but I still do not unerstand why I cannot force a full redo of the mbr and partitions. I think I am sending commands to do that, gparted reports that it has not failed. But the card is not cleared down, I feel I need to understand this better otherwise I would just let it go and throw the cards away. <br />But before I come to that point I would like to understand what is and is not happening under the hood.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mike-thinky)]]></author>
			<pubDate>Thu, 27 Jan 2022 18:49:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34204#p34204</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34201#p34201</link>
			<description><![CDATA[<div class="quotebox"><cite>Mike-thinky wrote:</cite><blockquote><div><p>The dmesg dump is quite large, how much of it is needed? last 20 lines? last 50 or 100?</p></div></blockquote></div><p>Remove the SD card then open a terminal and run this command (as root):</p><div class="codebox"><pre><code>dmesg -w</code></pre></div><p>Then insert the SD card and only post any new output that appears in the terminal after you insert the card.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 27 Jan 2022 06:23:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34201#p34201</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34197#p34197</link>
			<description><![CDATA[<p>Well I dug around all the spare computer stuff around the house and discovered 11 other sd cards of various sizes that all work, I can add and delete files, I could reformat 2 of them (empty already).<br />I have these 5 with zombie file systems on them, all Samsung. <br />On the reading side I have the built in SD reader (it never used to stay working under windows), a usb3 Lexar SD reader, and a no name items that all work with the good cards,<br />The adaptors are a selection of Samsung, SanDisk and 2 PNY brand micro-SD adaptors. Two of them only work as read only, so have been marked as such.</p><p>The dmesg dump is quite large, how much of it is needed? last 20 lines? last 50 or 100?</p><p>I now have a handle on which bits of other kit seem to be functional, when it was 5 faulty and 1 good sd card I could not be sure where the fault lay.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mike-thinky)]]></author>
			<pubDate>Wed, 26 Jan 2022 21:52:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34197#p34197</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34194#p34194</link>
			<description><![CDATA[<p>sd cards are usually /dev/mmcblk0. what&#039;s the /dev/sdd then? is it another adapter with a different sd card? <br />when you get device busy or similar, try restarting and redoing whatever you were trying.&#160; maybe better to add `sync` after any dd command also..<br />if you want to try another gui, gnome-disk-utility might come in handy. </p><p>and please provide dmesg and fdisk output as already requested.. probably crap cards/adapters/driver, but without logs, noone can tell for sure.</p><p>rolfie, not a miracle (who believes in miracles anyway?). if you read my previous comment, i had similar experience without windoze. <br />another kingston micro sd still works fine, so i just sent samsung one to recycle bin.. but yes, gparted/dd/utilities and/or sd card and/or adapter and/or driver is buggy. no miracle involved whatsover.</p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Wed, 26 Jan 2022 19:57:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34194#p34194</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34192#p34192</link>
			<description><![CDATA[<p>From man wipefs:</p><div class="quotebox"><blockquote><div><p>wipefs allows to erase filesystem or raid signatures (magic strings) from the device to make the filesystem invisible for libblkid. wipefs does not erase the whole filesystem or any other data from the device. When used without options -a or -o, it lists all visible filesystems and offsets of their signatures.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 26 Jan 2022 15:53:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34192#p34192</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34191#p34191</link>
			<description><![CDATA[<p>They are Samsung cards, I have used the internal card reader in the Lenovo, as well as two external readers, one of which is a lexor device that had good reviews at the time I bought it. The adaptors for the micro/SD conversion are samsung or sandisk. </p><p>Part of the problem may be that they were partitioned on Windows, but gparted is supposed to be able to cope. </p><p>I have tried dd, gparted and wipefs:</p><div class="codebox"><pre class="vscroll"><code>lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0   1.8T  0 disk 
├─sda1        8:1    0  23.3G  0 part /
├─sda2        8:2    0     1K  0 part 
├─sda5        8:5    0   9.3G  0 part /var
├─sda6        8:6    0   976M  0 part [SWAP]
├─sda7        8:7    0  18.6G  0 part /tmp
└─sda8        8:8    0   1.8T  0 part /home
sdb           8:16   0 931.5G  0 disk 
├─sdb1        8:17   0   128M  0 part 
└─sdb2        8:18   0 931.4G  0 part /data
sdd           8:48   1   7.4G  0 disk 
└─sdd1        8:49   1   7.3G  0 part 
sr0          11:0    1  1024M  0 rom  
mmcblk0     179:0    0   7.4G  0 disk 
└─mmcblk0p1 179:1    0   7.3G  0 part 
mike:~$ sudo wipefs --all --backup /dev/sdd
wipefs: error: /dev/sdd: probing initialization failed: Device or resource busy
mike:~$ sudo wipefs --all --backup /dev/sdd
/dev/sdd: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdd: calling ioctl to re-read partition table: Success
mike:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0   1.8T  0 disk 
├─sda1        8:1    0  23.3G  0 part /
├─sda2        8:2    0     1K  0 part 
├─sda5        8:5    0   9.3G  0 part /var
├─sda6        8:6    0   976M  0 part [SWAP]
├─sda7        8:7    0  18.6G  0 part /tmp
└─sda8        8:8    0   1.8T  0 part /home
sdb           8:16   0 931.5G  0 disk 
├─sdb1        8:17   0   128M  0 part 
└─sdb2        8:18   0 931.4G  0 part /data
sdd           8:48   1   7.4G  0 disk 
└─sdd1        8:49   1   7.3G  0 part 
sr0          11:0    1  1024M  0 rom  
mmcblk0     179:0    0   7.4G  0 disk 
└─mmcblk0p1 179:1    0   7.3G  0 part </code></pre></div><p>So is read the blocks, sdd is the one I want to clear, I run wipefs, and it still reports a partition and gparted then also reports a fat32 partition on it, am I missing something?</p>]]></description>
			<author><![CDATA[dummy@example.com (Mike-thinky)]]></author>
			<pubDate>Wed, 26 Jan 2022 15:32:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34191#p34191</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34190#p34190</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>But (in my opinion) <span class="bbc">wipefs</span> is a very powerfool tool and <span class="bbc">--backup</span> gives the user a false sense of security by presenting a remedy/insurance of sorts to not having been thorough enough.</p></div></blockquote></div><p>But it&#039;s not a &quot;false&quot; sense of security because the remedy <em>actually works</em>.</p><div class="quotebox"><cite>Mike-thinky wrote:</cite><blockquote><div><p>[wall of meaningless text]</p></div></blockquote></div><p>Why are you not providing the requested <span class="bbc">fdisk</span> and <span class="bbc">dmesg</span> output? Is this a wind-up? It&#039;s certainly winding me up...</p><p>Anyway good luck. I&#039;m out.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 26 Jan 2022 15:28:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34190#p34190</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34188#p34188</link>
			<description><![CDATA[<p>I am not 100% sure what you try to tell us. You say are aware of the bit that only on &quot;Apply&quot; the actual changes are written to the SD cards. Ok, another bit: gparted is a tool that works on partition information and everything around that, not on file systems directly. Its basically a graphical interface for fdisk and mkfs.</p><p>Well, after the &quot;Apply&quot; has finished gparted re-reads the partitioning information for all the devices that are available. If then the same structures are presented for the SD card, then obviously the write operation wasn&#039;t successful. I would claim that gparted works quite well. And I would conclude that the involved HW isn&#039;t working correctly. If gparted displays that the SD card now is empty, then that is the information that came back from the HW.</p><p>What exactly means:</p><div class="quotebox"><blockquote><div><p>The bit I have a problem with is that gparted tells me it had success in deleting the partition, when it clearly didnt, if I unplug and then plug it in again, I can read the files straight away, no windows involved.</p></div></blockquote></div><p>This would be some sort of miracle. Maybe SD card and reader are not compatible, or some sort of buffer is involved, or the SD cards are simply crap. </p><p>You seem to have tried dd also, also with no result.</p><p>If you sum up all these bits and bytes, what do you think about cards and reader?</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 26 Jan 2022 15:04:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34188#p34188</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34186#p34186</link>
			<description><![CDATA[<p>It is definitely not write protected, when I flicked the switch on the side gparted correctly told me it was unable to write.</p><p>The bit I have a problem with is that gparted tells me it had success in deleting the partition, when it clearly didnt, if I unplug and then plug it in again, I can read the files straight away, no windows involved. Gparted ought to be looking deeper into whether the files are gone. I agree it was MS that started the mess with straying from the original standard. Since then the software ought to be able to look at both mbr tables as well as both partition tables and at least warn you in advance that things are not straightforward.</p><p>I have successfully used gparted quite a lot at home and at work, but this batch of sd cards is giving me problems, it might have been the cheap no-name card reader I had at the time of creating them? it could be the usb funnies that people have noted with the string usbc plastered into the mbr and partition tables.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mike-thinky)]]></author>
			<pubDate>Wed, 26 Jan 2022 14:05:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34186#p34186</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34185#p34185</link>
			<description><![CDATA[<p>Some thoughts to the issues:</p><p>When plugging in the SD card reader and the card itself: inspect dmesg for hints if the device is write protected. </p><p>To gparted: I am using gparted for many years and never had it fail. I started of with gparted life versions, still use them every now and then.</p><p>There may be a trap for the unexperienced user: you can prepare a lot of operations, but these are not executed on the real HW before you don&#039;t tick the apply button. Are you aware of this?</p><p>In addition I suggest to tick the Device Information box in the View menu. Gives you confirmation that you are working on the right device.</p><p>If that does not work the card may be defective.</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 26 Jan 2022 11:29:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34185#p34185</guid>
		</item>
		<item>
			<title><![CDATA[Re: Micro SD card problem, cannot fix errors.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34184#p34184</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Mike-thinky wrote:</cite><blockquote><div><p>... many cases on the web of this &lt;s&gt;ame issue occurring on Linux ...<br />... gparted was lying to me ...</p></div></blockquote></div><p>MS software <span class="bbu">is and has been</span> for the longest time notorious for <em>not</em> adhering to established standards/rules.<br />To MS, if it works with <em>their</em> software and the drivers hardware OEMs write for <em>their</em> OSs, it is good enough.</p><p>The web is full of examples, the most annoying one being all the horribly written BIOSs Linux OSs have had to deal with for ages. <br />As long any crap ridden BIOS worked with a MS OS, it was <em>Windows XX Certified</em>.</p><p>Obviously, it was not an issue if it did not work with any other OS.<br />eg: a Linux based OS.</p><p>All PCs were/are still sold with a MS OS, whether you want/ed it or not, so what problem could there possibly be?</p><p>I doubt that <span class="bbc">gparted</span> is <em>lying</em> to you.<br />It does not have a will of its own.&#160; 8^D</p><p>What is most probably happening is that the data <span class="bbc">gparted</span> is reading from the drive does not conform to the established standard.<br />ie: whatever the MS software wrote on the drive is not written in such a way that <span class="bbc">gparted</span> can understand it correctly.</p><p>Like they say: rubbish in, rubbish out.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 26 Jan 2022 10:41:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34184#p34184</guid>
		</item>
	</channel>
</rss>
