Author |
Message |
labbe5
Joined: 13 Nov 2013 Posts: 2082 Location: Canada
|
Posted: 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
|
|
 |
watchdog
Joined: 28 Sep 2012 Posts: 1931 Location: Italy
|
Posted: 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
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 13389 Location: Arizona USA
|
Posted: Fri 14 Oct 2016, 16:36 Post subject:
|
|
Sudo? What's that?
|
Back to top
|
|
 |
phat7
Joined: 05 Jun 2015 Posts: 163
|
Posted: 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
|
|
 |
Pelo
Joined: 10 Sep 2011 Posts: 12591 Location: Mer méditerrannée (1 kms°)
|
Posted: 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
|
|
 |
drunkjedi

Joined: 24 May 2015 Posts: 897
|
Posted: 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
|
|
 |
Burn_IT

Joined: 12 Aug 2006 Posts: 3601 Location: Tamworth UK
|
Posted: 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
|
|
 |
perdido

Joined: 09 Dec 2013 Posts: 1427 Location: ¿Altair IV , Just north of Eeyore Junction.?
|
Posted: 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
|
|
 |
Pelo
Joined: 10 Sep 2011 Posts: 12591 Location: Mer méditerrannée (1 kms°)
|
Posted: 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..
Description |
checked to-night |
Filesize |
74.16 KB |
Viewed |
395 Time(s) |

|
_________________ 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
|
|
 |
Burn_IT

Joined: 12 Aug 2006 Posts: 3601 Location: Tamworth UK
|
Posted: 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
|
|
 |
perdido

Joined: 09 Dec 2013 Posts: 1427 Location: ¿Altair IV , Just north of Eeyore Junction.?
|
Posted: 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
|
|
 |
Burn_IT

Joined: 12 Aug 2006 Posts: 3601 Location: Tamworth UK
|
Posted: 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
|
|
 |
GoogleFactChecker
Joined: 15 Oct 2016 Posts: 4
|
Posted: 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
|
|
 |
rokytnji
Joined: 20 Jan 2009 Posts: 2288
|
Posted: 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.
|
Back to top
|
|
 |
Pelo
Joined: 10 Sep 2011 Posts: 12591 Location: Mer méditerrannée (1 kms°)
|
Posted: 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
|
|
 |
|