Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 10 Dec 2019, 19:06
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to repair a corrupted flash drive
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 2082
Location: Canada

PostPosted: Fri 14 Oct 2016, 12:24    Post subject:  How to repair a corrupted flash drive
Subject description: for Mintpup or Xenialdog
 

sudo fsck /dev/sdcx

x being your partition number, and sdc your device (could be sdb, sdd, sde...).

This simple operation will remove bad file sectors on either a partition or the entire device.

When you want to nuke your device, and create a new data partition :

For ext4 :
sudo mkfs.ext4 -f /dev/sdc1 (sd... vary depending on your installation)

For Fat32:
sudo mkfs.msdos -f 32 /dev/sdc1 (same caveat for sd... )

Hopefully, your flash drive will work again.
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 1931
Location: Italy

PostPosted: Fri 14 Oct 2016, 13:07    Post subject:  

Some years ago I was compelled to flash the original firmware from windows to a broken usb stick.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13389
Location: Arizona USA

PostPosted: Fri 14 Oct 2016, 16:36    Post subject:  

Sudo? What's that?
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 163

PostPosted: Sat 15 Oct 2016, 00:08    Post subject:  

You already have a thread. Why another one?
how to repair a corrupted USB flash drive

Why "Subject description: for Mintpup or Xenialdog"?

bigpup alread told you
bigpup wrote:
In Your how to.
You can delete sudo in all the console commands.
Puppy is running as root.
You didn't respond. Do you follow your own threads?
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 15 Oct 2016, 03:45    Post subject: I use Windows 7 for repairing my USBs  

I use Windows 7 for repairing my USBs. insert the defectuous one. Windows will ask you i you want to check it and repair. Efficient.
_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Sat 15 Oct 2016, 04:45    Post subject:  

LOL, Windows will try to repair quite good one too. Better backup your data.....
Back to top
View user's profile Send private message 
Burn_IT


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

PostPosted: Sat 15 Oct 2016, 08:22    Post subject:  

No more of a problem than doing it in Linux.
It will NOT report an error unless there IS one so stop being melodramatic.

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


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

PostPosted: Sat 15 Oct 2016, 09:52    Post subject:  

I did not realise that windows now repairs ext1. ext2, ext3, ext4 file systems on a corrupted USB drive.

When did that start?

_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 15 Oct 2016, 10:20    Post subject: i have none of these extensions  

i have none of these extensions. Pendrive is FAT32 and puppies are used as frugal install
Post-scriptum : for Mintpup and XenialDog ??? sorry for disturb.. Confused
MyLinuxLive.jpg
 Description   checked to-night
 Filesize   74.16 KB
 Viewed   395 Time(s)

MyLinuxLive.jpg


_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.

Last edited by Pelo on Sat 15 Oct 2016, 22:17; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger 
Burn_IT


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

PostPosted: Sat 15 Oct 2016, 10:50    Post subject:  

In which case it is definitely going to be safer doing it in Windows since the Linux FAT32 support is based on ripped off code.
_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
perdido


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

PostPosted: Sat 15 Oct 2016, 11:21    Post subject:  

Notwithstanding anyone's personal preferences, the following can be surmised from this thread.

EXT1, EXT2, EXT3, EXT4, NTFS, FAT32 can be repaired by Linux.

NTFS and FAT32 can be repaired by Windows.

_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
Burn_IT


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

PostPosted: Sat 15 Oct 2016, 11:42    Post subject:  

It is NOT safe repairing FAT32 and NTFS using Linux.
It can be done, but is not the safest way.
If you want an argument, all the EXTn extenion formatted drives can be repaired under Windows.

When are you people going to realise that Linux is NOT the be and end alll of OSs. Others do exist and many are better than Linux at doing specific things.
It is a case of horses for courses; use the better tool for the specific job, especially if there are problems.

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

Joined: 15 Oct 2016
Posts: 4

PostPosted: Sat 15 Oct 2016, 19:21    Post subject:  

Burn_IT wrote:
... since the Linux FAT32 support is based on ripped off code.

That's quite a hefty accusation. Proof?

Burn_IT wrote:
It is NOT safe repairing FAT32 and NTFS using Linux.
It can be done, but is not the safest way.

We can understand NTFS cannot be safely repaired by Linux, but FAT32?
Proof?
Back to top
View user's profile Send private message 
rokytnji

Joined: 20 Jan 2009
Posts: 2288

PostPosted: Sat 15 Oct 2016, 19:55    Post subject:  

Good thing I never read this thread when repairing my sd card fat 32 puppeee frugal installs on my eeepc 701SD

http://murga-linux.com/puppy/viewtopic.php?p=773859#773859

Back when it would not boot because of improper unmount due to power failure <drained battery> or a brain fart and ejecting sd card too early.

I'd boot A live gparted session on a Puppy live usb just made for this repair . Run a check on unmounted puppeee sd card. Finish. Reboot.
Pull Puppy pendrive with gparted on it. Leave Puppeee sd card in. Done. Fixed.
Problem solved, Problem never mentioned.

Like I said. Good thing I did not find this thread earlier. Shocked
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 15 Oct 2016, 22:24    Post subject: I also have Puppy Rescue  

I also have Puppy Rescue. for pendrives completely garbled, to trash definitively. To save some files, generally my pictures.
_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0523s ][ Queries: 12 (0.0059s) ][ GZIP on ]