How to repair a corrupted flash drive
How to repair a corrupted flash drive
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.
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.
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
how to repair a corrupted USB flash drive
Why "Subject description: for Mintpup or Xenialdog"?
bigpup alread told you
You didn't respond. Do you follow your own threads?bigpup wrote:In Your how to.
You can delete sudo in all the console commands.
Puppy is running as root.
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.
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..
Post-scriptum : for Mintpup and XenialDog ??? sorry for disturb..
- Attachments
-
- MyLinuxLive.jpg
- checked to-night
- (74.16 KiB) Downloaded 415 times
Last edited by Pelo on Sun 16 Oct 2016, 02:17, edited 1 time in total.
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.
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
-
- Posts: 4
- Joined: Sat 15 Oct 2016, 23:16
That's quite a hefty accusation. Proof?Burn_IT wrote:... since the Linux FAT32 support is based on ripped off code.
We can understand NTFS cannot be safely repaired by Linux, but FAT32?Burn_IT wrote:It is NOT safe repairing FAT32 and NTFS using Linux.
It can be done, but is not the safest way.
Proof?
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. ... 859#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.
http://murga-linux.com/puppy/viewtopic. ... 859#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.
I also have Puppy Rescue
I also have Puppy Rescue. for pendrives completely garbled, to trash definitively. To save some files, generally my pictures.
-
- Posts: 236
- Joined: Wed 30 Mar 2016, 20:18
I thought that fsck and Microsoft programs like chkdsk "fixed" a filesystem by effectively erasing file clusters that were not associated with anything. There doesn't seem to be any provision for recovery. A real problem for a "defectuous" drive.
And is "Google Fact Checker" the reincarnation of lhtc?
Oh, and I almost forgot, Windows is better than Linux.
And is "Google Fact Checker" the reincarnation of lhtc?
Oh, and I almost forgot, Windows is better than Linux.
Fat32 was designed and patented by MS and Linux was using it for years before they asked permission to use it. There was a huge fuss about it at the time and MS threatened to sue unless they asked.... since the Linux FAT32 support is based on ripped off code.
They didn't want any money for it, they just wanted Linux to admit it in the license terms.
Why don't YOU look it up.
"Just think of it as leaving early to avoid the rush" - T Pratchett
-
- Posts: 4
- Joined: Sat 15 Oct 2016, 23:16
1. This is not the same as "ripped off code".Burn_IT wrote:Fat32 was designed and patented by MS and Linux was using it for years before they asked permission to use it. There was a huge fuss about it at the time and MS threatened to sue unless they asked.... since the Linux FAT32 support is based on ripped off code.
They didn't want any money for it, they just wanted Linux to admit it in the license terms.
2. Proof for what you said above?
You are the one who makes the claim, the burden of proof is on you.Why don't YOU look it up.
-
- Posts: 1543
- Joined: Mon 22 Feb 2016, 19:43
Speaking of "rip-offs", here's what Bill Gates himself has to say about Windows and Apple apparently
[quote]As Steve Jobs biography went OVERPRICED from today, Fortune magazine has got an exclusive reprint rights of part of the biography where the relationship between Steve Jobs and Bill Gates was discussed. In that, following is the situation when Steve Jobs came to know that Bill Gates at Microsoft is developing a competing OS and Bill Gates visits Apple’s campus to talk with Steve as per his request.
Their meeting was in Jobs’s conference room, where Gates found himself surrounded by ten Apple employees who were eager to watch their boss assail him. Jobs didn’t disappoint his troops. “You’re ripping us off!
[quote]As Steve Jobs biography went OVERPRICED from today, Fortune magazine has got an exclusive reprint rights of part of the biography where the relationship between Steve Jobs and Bill Gates was discussed. In that, following is the situation when Steve Jobs came to know that Bill Gates at Microsoft is developing a competing OS and Bill Gates visits Apple’s campus to talk with Steve as per his request.
Their meeting was in Jobs’s conference room, where Gates found himself surrounded by ten Apple employees who were eager to watch their boss assail him. Jobs didn’t disappoint his troops. “You’re ripping us off!
- perdido
- Posts: 1528
- Joined: Mon 09 Dec 2013, 16:29
- Location: ¿Altair IV , Just north of Eeyore Junction.?
Microsoft wanted money.Burn_IT wrote:Fat32 was designed and patented by MS and Linux was using it for years before they asked permission to use it. There was a huge fuss about it at the time and MS threatened to sue unless they asked.... since the Linux FAT32 support is based on ripped off code.
They didn't want any money for it, they just wanted Linux to admit it in the license terms.
Microsoft sued TomTom because TT was using FAT32 in its devices and refused to pay money (licensing fees) to Microsoft. TomTom was using Linux in its GPS devices.
TomTom is now a member of the Open Inventions Network. The Open Inventions Network includes IBM, Novell, Philips, Red Hat,Sony. NEC, Google, Toyota, Canonical, and other major patent holders.
The Open Inventions Network is what keeps Microsoft from litigating everyone out of existence by the veiled threat of their own litigation against MS for the many thousands of patent infringements MS has commited against the members of The Open Inventions Network. Strength in numbers has neutered the bully.