You are not logged in.

#1 2013-06-04 13:28:58

darrenldl
Member
Registered: 2013-06-04
Posts: 31

[Solved] Failed to format flash drive after recent update(3/6/2013)

Hello,

I'm experiencing failure at formatting my flash drive to ext2,3,4, fat32(or possibly any possible format).

This happens after the recent system update which includes filesystem, I wonder if that's the reason.
So I followed the instructions here : https://www.archlinux.org/news/binaries … ervention/
and I start to fail at formatting my flash drive using mkfs, while mkfs on live CD 2013.05.01 works perfectly.

Any help would be appreciated.

Last edited by darrenldl (2013-06-04 14:41:04)

Offline

#2 2013-06-04 13:45:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

What do you mean it fails?  That doesn't give us anything to work with.

What error messages are you getting?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-06-04 13:49:37

darrenldl
Member
Registered: 2013-06-04
Posts: 31

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

Oops, sorry,
So mkfs can finish building the filesystem, but afterwards, gparted does not recognize it as a valid filesystem,
when I plug it to another computer, it failed to mount it, saying no ext4 filesystem is found(on the trial which i was using mkfs.ext4).
However, I can mount it using the computer which created the filesystem.

Last edited by darrenldl (2013-06-04 13:50:24)

Offline

#4 2013-06-04 14:12:48

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

to just reset everything in case you messed something up:

dd count=1 bs=512 if=/dev/zero of=/dev/sdx

create partition tables:

cfdisk /dev/sdx

format:

mkfs.ext4 /dev/sdx#

More detail is in the various wikis

Last edited by jrussell (2013-06-04 14:13:20)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#5 2013-06-04 14:18:16

darrenldl
Member
Registered: 2013-06-04
Posts: 31

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

Thanks for the reply.

I have tried wiping the mbr, and whole drive the second time as well.
I have tried creating partition tables using cfdisk and gparted, both created same outcome.
Did the formatting using mkfs.ext4 as well.
Basically what worked before does not work for me now.

Offline

#6 2013-06-04 14:24:45

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

darrenldl wrote:

Thanks for the reply.

I have tried wiping the mbr, and whole drive the second time as well.
I have tried creating partition tables using cfdisk and gparted, both created same outcome.
Did the formatting using mkfs.ext4 as well.
Basically what worked before does not work for me now.

broken drive?


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#7 2013-06-04 14:27:50

darrenldl
Member
Registered: 2013-06-04
Posts: 31

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

I suspect not, I've tried 3 different usb flash drives, plus, as I have mentioned, mkfs on live CD works perfectly,
but the one on the updated system does not.

Offline

#8 2013-06-04 14:31:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

I once had a very odd occurrence that - being an isolated incident - I still don't really understand.  But it seemed no matter what I did I could not erase data from a flash drive.  I'd dd from /dev/zero, reformat, put it on a different computer, and it'd indeed be empty.  But then when I plugged it back in to my computer it showed up as populated with a bunch of files that used to be on it.

It seemed like there must have been a filesystem created on my own harddrive that was being mounted to the mount point when the usb drive was detected - so what I was seeing wasn't really on the usb, but was on my drive.

I don't know if it is possible to accidentally format a mount point rather than a device - I would think it should fail, but I can't help but wonder if something like that is going on: when the usb is plugged into your machine, the locally created filesystem is being mounted, but when you plug the usb into another computer, it's obviously not there.

Some steps that may avoid whatever could cause this:
1) reboot to have a fully fresh start.
2) make sure any automounting utilities are disabled
3) partition/dev/sdX and format /dev/sdXn as usual
4) sync, to ensure all disk io is flushed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2013-06-04 14:40:10

darrenldl
Member
Registered: 2013-06-04
Posts: 31

Re: [Solved] Failed to format flash drive after recent update(3/6/2013)

Thank you for solving my problem.
So the problem is nothing to do with the update, though I rebooted after update.

Nonetheless, here are my steps:
1) Reboot
2) sync
3) mkfs

I don't have any automounting utilities, so I skipped step 2 on Trilby's answer.
I wiped the drive before, so skipped step 3 as well.
Once again, thank you very much.

Offline

Board footer

Powered by FluxBB