OldPCGuy
Posts: 82
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Windows10 Messed up Pi Memory Card

Wed Jun 06, 2018 11:38 pm

All I did was plug the OS flash card into a card reader attached to a Win 10 machine. I was hoping to simply pull a CSV file off the card.

Well the Windows system said there was a read error on the card so I removed it and plugged it back into the Pi.

The Pi boots to the command line but will not start (startX) to the GUI. This particular card I do not have a backup/copy. Is there a simple way to fix the card? A Pi utility that can scan and fix the card?

signed,

feeling dumb!

bmattila55
Posts: 59
Joined: Wed Jun 06, 2018 12:54 am

Re: Windows10 Messed up Pi Memory Card

Wed Jun 06, 2018 11:53 pm

Put the card reader back into the computer and right click onto it in windows explorer. Select properties and then under the tools tab try the device error checking.

It may or may not work but you can only hope. Next time, if you can try loading stuff all on a Linux computer as the file system the pi uses can be read using Linux computers but not Windows.

Hope this helps.

User avatar
DougieLawson
Posts: 35540
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 11:34 am

If you allow Windows to "repair/format" a Linux filesystem it will 100% destroy it. Windows doesn't recognise ext4 (NIH syndrome) so assumes the partition is not formatted.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

ghans
Posts: 7868
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 12:38 pm

Exactly. Use Ubuntu to make a Backup with Etcher, then try to fix the filesystems with e2fsck or dosfsck. After that, eject and reinsert the card. All partitions should automatically "pop up" on Ubuntus desktop, so that you can save your files via drag-n-drop.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

alphanumeric
Posts: 1904
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 7:18 pm

If you ignore the message all should be fine. You can only access the fat partition, but no harm should be done. I do it all the time. As already mentioned, if you action that message it will mess up the card.

OldPCGuy
Posts: 82
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 9:18 pm

alphanumeric wrote:
Thu Jun 07, 2018 7:18 pm
If you ignore the message all should be fine. You can only access the fat partition, but no harm should be done. I do it all the time. As already mentioned, if you action that message it will mess up the card.
That's what I initially though. I ignored the message, I didn't actively initiate anything from the Win10 machine and still something corrupted the card. :(

pws
Posts: 89
Joined: Mon Apr 11, 2016 4:16 pm

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 9:34 pm

Curious why everyone is assuming the card wasn't corrupt PRIOR to being presented to Windows?

User avatar
DougieLawson
Posts: 35540
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 9:52 pm

pws wrote:
Thu Jun 07, 2018 9:34 pm
Curious why everyone is assuming the card wasn't corrupt PRIOR to being presented to Windows?
Because the desire of Windows to reformat ext4 filesystems is a clear and present danger and it's shot enough SDcards dead for other folks already.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
Imperf3kt
Posts: 2547
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 10:01 pm

Windows would have formatted the card, as you yourself said, but as it happens, Windows did not format the card. The pi still partially boots.

But I digress, this forum is full of Linux lovers, please, continue to place the blame on Windows with no evidence.
55:55:44:44:4C
52:4C:52:42:41

OldPCGuy
Posts: 82
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 10:45 pm

pws wrote:
Thu Jun 07, 2018 9:34 pm
Curious why everyone is assuming the card wasn't corrupt PRIOR to being presented to Windows?
I'm 99% sure it wasn't. I pulled it from a headless Pi-Zero that was running earlier in the day. I'll know for sure when see the final time/date stamp on the measurement data in the file I was looking for.

User avatar
Imperf3kt
Posts: 2547
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Windows10 Messed up Pi Memory Card

Thu Jun 07, 2018 11:35 pm

If it was running headless, how do you know that the desktop environment was working?
55:55:44:44:4C
52:4C:52:42:41

pws
Posts: 89
Joined: Mon Apr 11, 2016 4:16 pm

Re: Windows10 Messed up Pi Memory Card

Fri Jun 08, 2018 5:48 pm

DougieLawson wrote:
Thu Jun 07, 2018 9:52 pm
pws wrote:
Thu Jun 07, 2018 9:34 pm
Curious why everyone is assuming the card wasn't corrupt PRIOR to being presented to Windows?
Because the desire of Windows to reformat ext4 filesystems is a clear and present danger and it's shot enough SDcards dead for other folks already.
Well, that's a reasonable guess, but typically, it doesn't just do it on it's own - incorrectly responding to what it asks is the prime candidate...

My only point was regarding the very common issue as a result of too hastily pulling the power or the card.

All good...

User avatar
DougieLawson
Posts: 35540
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Windows10 Messed up Pi Memory Card

Fri Jun 08, 2018 10:03 pm

Typically, if you ask any computer user with a pop-up box "Are you a blithering idiot?" they will always click through it. The psychology is that they're taught to click through everything as that leads to an easier life. Whether the positive answer has drastic consequences is in the lap of the gods. When the question is meaningless or badly worded the positive response will be selected quicker.

I've seen it done with mainframe systems running a business critical workload. It's always interesting during the post-mortem investigations for those types of "finger trouble" errors.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
bensimmo
Posts: 4125
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Windows10 Messed up Pi Memory Card

Sat Jun 09, 2018 10:13 am

There's a difference, here.

Windows said there was errors, it didn't ask to format.
It would run its simple tests and fix the fat partition.
It wouldn't touch the other partitions.

I do it all the time.

If it couldn't read it, it asks recommends it may need formatting.

There is a difference.
Windows has done absolutely nothing to the card here.

Blame your setup and Raspbian if anything.

OldPCGuy
Posts: 82
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Windows10 Messed up Pi Memory Card

Sat Jun 09, 2018 4:08 pm

Imperf3kt wrote:
Thu Jun 07, 2018 11:35 pm
If it was running headless, how do you know that the desktop environment was working?
Not 100% but fairly sure. Before deploying I test and setup through the GUI/Desktop. Headless it only boots to the cmd line and runs the script.

As for the windows episode I only cancelled the one pop-up and pulled the card. Perhaps I screwed it up by not ejecting properly???

e2fsck didn't help. lesson learned.

User avatar
HawaiianPi
Posts: 4453
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Windows10 Messed up Pi Memory Card

Sat Jun 09, 2018 5:43 pm

OldPCGuy wrote:
Sat Jun 09, 2018 4:08 pm
As for the windows episode I only cancelled the one pop-up and pulled the card. Perhaps I screwed it up by not ejecting properly???
Safe ejection is only needed if the card has been written to. Since you didn't write to the card, it's unlikely. Your card may have actually been corrupt.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “Troubleshooting”