(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Sep 2020, 22:42
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
[SOLVED] - Corrupted Files on SD Card - Need to Reformat
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
MrDuckGuy


Joined: 31 Jan 2019
Posts: 159
Location: Hermosa Beach, CA, USA

PostPosted: Mon 18 Nov 2019, 13:20    Post subject:  [SOLVED] - Corrupted Files on SD Card - Need to Reformat
Subject description: Gparted Crashes With this Card - Terminal Gives Error Msg
 

[SOLVED]
[See answer in following reply]

[Hello, I cannot use this SD card. I have been
having problems with circuit breakers and
when in the middle of copying files, the power
went out. The drive is still accessible, and readable.

I can write to it and read to it, but the one directory
that was being written to when it crashed is corrupt.
I can't delete it.

I backed up the files on the drive and tried GParted.

GParted crashed several times when I tried to replace
the formatting.

I tried Terminal commands from the root, and got
an error saying "CANT OPEN FILE OF BAD BLOCKS."

I am including a screen shot of the Terminal output.

Thanks in advance for any help.
capture23618.jpg
 Description   Image of Terminal output when trying to reformat SD card.
 Filesize   111.97 KB
 Viewed   129 Time(s)

capture23618.jpg


Last edited by MrDuckGuy on Thu 12 Dec 2019, 14:09; edited 3 times in total
Back to top
View user's profile Send private message 
Gordie

Joined: 23 Aug 2016
Posts: 156
Location: Nolalu, Ontario, Canada

PostPosted: Mon 18 Nov 2019, 14:26    Post subject:  

I have had mixed results with flash memory after a disaster such as loosing power corrupts it. Sometimes the more I try, the worse it gets until it is absolutely ruined.


Sometimes you have to take the card to a Windows computer, plug it in and then find the device in Device Manager and delete it. Now, without unplugging the card, reboot and then try and format it. Sometimes that works and sometimes it doesn't

_________________
--
Cheers
Gordie
Slackware64-Current, Thinkpad W510, Intel i7, 8G/500G, Lilo / Legacy.
Fatdog64 + 6 Puppies on USB flash drives.
Windows 10 / Slackware64-Current, HP desktop, Intel Core2 Duo, 4G/500G/250G, Lilo / Legacy.
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1601
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Mon 18 Nov 2019, 15:08    Post subject:  

Only do the following if you do not wish to recover anything from the drive.

Assuming your drive is recognized as drive sdb (talking drive, not partition)

You can zero-out the partition table, after that gparted will allow you to create a new partition table (most choose msdos type) and then partition and build the formatting.

Make sure you are using this command on the correct drive.
It will zero out the drive.
Shocked

If your drive is named sdc or sdd you would change the command line to reference that, of=/dev/sdb would be of=/dev/sdc if your drive is sdc and so on.

From the terminal execute the following
Code:
dd if=/dev/zero of=/dev/sdb bs=1k count=2048


Referenced from this post from forum member saintless in case you are curious.
http://www.murga-linux.com/puppy/viewtopic.php?p=849026#849026
Saintless was showing this for an entirely different reason than why you would be using it but the info he provides in the post is applicable because it
essentially zeroes out the partition table (wipes it as he says)
Back to top
View user's profile Send private message 
MrDuckGuy


Joined: 31 Jan 2019
Posts: 159
Location: Hermosa Beach, CA, USA

PostPosted: Mon 18 Nov 2019, 19:02    Post subject: Re: Corrupted Files on SD Card - Need to Reformat
Subject description: Gparted Crashes With this Card - Terminal Gives Error Msg
 

perdido wrote:
... do the following if you do not wish to recover anything from the drive ...


Thanks. It works like a charm. I used GParted to reformat
the drive, instead of line commands. I'm in the process of
loading the backed up files to the card.

This time I formatted the card to f2fs, I hope this might be
more stable if there is a power loss.

Thanks so much!!
2019-11-20_2213-Screenshotx.png
 Description   Terminal output. Reformatted mini sdcard.
 Filesize   247.89 KB
 Viewed   25 Time(s)

2019-11-20_2213-Screenshotx.png


Last edited by MrDuckGuy on Wed 20 Nov 2019, 23:22; edited 1 time in total
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 3702
Location: Tamworth UK

PostPosted: Tue 19 Nov 2019, 09:29    Post subject:  

The power loss corrupted the control area of the card. It wouldn't matter what file format you used, the result would be the same.
It is a bit like a bomb in the foyer of a sky scraper. It wouldn't make any difference how many security companies there were in that building; they would all be inaccessible.

_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
MrDuckGuy


Joined: 31 Jan 2019
Posts: 159
Location: Hermosa Beach, CA, USA

PostPosted: Tue 19 Nov 2019, 13:07    Post subject:  

Burn_IT wrote:
... The power loss corrupted the control area ...

This simply proves the point that there is
just too much corruption in the world.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0661s ][ Queries: 13 (0.0327s) ][ GZIP on ]