You are not logged in.

#1 2011-11-04 13:57:24

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Unable to Format Pendrive

Well, I bought a 32GB Kingston pendrive and formatted from FAT to NTFS, but I couldn't complete the operation, but, now I can't format it back to FAT or any type.

I tried mkfs.ext4(ext3, reiserfs, dosfs) and nothing works. It long too much time, about several hours and never ends.

Tried cfdisk, formatting with windows7 too and nothing, what can I do?

Thanks in advance.

Offline

#2 2011-11-04 14:09:13

oldpond
Member
Registered: 2010-01-26
Posts: 43

Re: Unable to Format Pendrive

I had fun with pen drives yesterday too.  I used

mkfs.vfat -I -F 32 /dev/sdX

You need the dosfstools for this to work.


oldpond = glide

Offline

#3 2011-11-04 14:11:34

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

I guess I tried just the "mkfs.vfat -I /dev/sdX", I will try this, thanks.
___

Which was your disk size, and, how much time you finished?

Last edited by r9o5a12s7m3 (2011-11-09 13:24:14)

Offline

#4 2011-11-09 13:26:03

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

oldpond, thanks by attention.

Sorry for double posting, but, it didn't work.

Does someone has another tip?

Offline

#5 2011-11-09 18:18:17

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Unable to Format Pendrive

try gparted


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2011-11-09 21:05:52

archtaku
Member
Registered: 2010-07-02
Posts: 84

Re: Unable to Format Pendrive

r9o5a12s7m3 wrote:

oldpond, thanks by attention.

Sorry for double posting, but, it didn't work.

Does someone has another tip?

Did you literally use "/dev/sdX"? You need to replace that with the device name of your USB drive. If you don't know what that is, unplug it, plug it in, and then run "dmesg" from the command line and you should see something like this near the bottom of the output:

[    1.695713] sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)

This will show you what the device name is for your USB drive.

Offline

#7 2011-11-10 00:25:33

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

Inxsible wrote:

try gparted


Second thing I tried. It longed about 3, 4 hours and nothing.

archtaku wrote:

Did you literally use "/dev/sdX"? You need to replace that with the device name of your USB drive. If you don't know what that is, unplug it, plug it in, and then run "dmesg" from the command line and you should see something like this near the bottom of the output:

[    1.695713] sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)

This will show you what the device name is for your USB drive.

No man, of course I didn't this, I used the letter corresponding to the disk.

Thanks by helping and attention. I'm trying to find a way.

Last edited by r9o5a12s7m3 (2011-11-10 00:27:54)

Offline

#8 2011-11-10 01:50:14

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Unable to Format Pendrive

did you try formatting it in windows.?
i had teething issues like this and windows did the formatting job so many times.

Offline

#9 2011-11-11 14:42:48

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

hadrons123 wrote:

did you try formatting it in windows.?
i had teething issues like this and windows did the formatting job so many times.


Yeah, I tried on Windows XP SP2/SP3, Windows 7 and nothing.

Offline

#10 2011-11-11 14:56:05

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Unable to Format Pendrive

try gparted, if you havent by this time.


could be hardware error,rather than software, i guess.

Offline

#11 2011-11-11 15:31:42

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

Already tried gparted, as I mentioned to Inxsible.

Tried qtparted, cfdisk...

Offline

#12 2011-11-11 16:27:37

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Unable to Format Pendrive

When you plug the thing in, post all of the related output from dmesg, ie:

[ 6283.372732] usb 1-4: new high speed USB device number 2 using ehci_hcd
[ 6283.526644] Initializing USB Mass Storage driver...
[ 6283.526951] scsi6 : usb-storage 1-4:1.0
[ 6283.527066] usbcore: registered new interface driver usb-storage
[ 6283.527067] USB Mass Storage support registered.
[ 6283.528128] usbcore: registered new interface driver uas
[ 6284.528187] scsi 6:0:0:0: Direct-Access     CHIPSBNK v3.3.9.8         5.00 PQ: 0 ANSI: 2
[ 6284.529707] sd 6:0:0:0: [sdb] 4096000 512-byte logical blocks: (2.09 GB/1.95 GiB)
[ 6284.531038] sd 6:0:0:0: [sdb] Write Protect is off
[ 6284.531041] sd 6:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 6284.532042] sd 6:0:0:0: [sdb] No Caching mode page present
[ 6284.532045] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 6284.535032] sd 6:0:0:0: [sdb] No Caching mode page present
[ 6284.535035] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 6284.535691]  sdb: sdb1
[ 6284.539042] sd 6:0:0:0: [sdb] No Caching mode page present
[ 6284.539047] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 6284.539050] sd 6:0:0:0: [sdb] Attached SCSI removable disk

Maybe that will shed some light.  Also, you could try doing a raw write: dd if=/dev/zero of=/dev/sdX bs=1M count=100 to see what kind of speeds that gets.

Last edited by alphaniner (2011-11-11 16:28:02)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#13 2011-11-11 16:33:22

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

I used a Windows tools called Norton System Doctor (I guess), there said my pendrive was detected as RAW, but, I didn't tried to make it raw with Arch. Good idea, I will try.

It isn't with me now, but later will be, I will post my dmesg output soon. but, as I remember, I didn't saw anything weird when I plugged it.

The difference is when I plug any pendrive with a filesystem always appears two entries in my /dev sdx and sdx1, but with this just appear the sdx.

Offline

#14 2011-11-11 16:50:27

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Unable to Format Pendrive

Only seeing sdx is not a bad thing.  It just means there are no partitions on the drive.  The Windows tool probably called it RAW for the same reason (no partitions).


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#15 2011-11-11 17:11:00

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Unable to Format Pendrive

cfdisk doesn't format, only makes or destroys partitions.</pedantry>


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#16 2011-11-11 17:17:28

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

fsckd wrote:

cfdisk doesn't format, only makes or destroys partitions.</pedantry>


Hehehe, but sometimes in my attempts a "unknown partition" appeared there. I deleted, created another and nothing too.

Offline

#17 2011-11-13 01:41:44

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

Dmesg output:

[ 8092.297757] sd 8:0:0:0: [sdd] 65536000 512-byte logical blocks: (33.5 GB/31.2 GiB)
[ 8092.298000] sd 8:0:0:0: Attached scsi generic sg3 type 0
[ 8092.298236] sd 8:0:0:0: [sdd] Write Protect is off
[ 8092.298241] sd 8:0:0:0: [sdd] Mode Sense: 0b 00 00 08
[ 8092.298744] sd 8:0:0:0: [sdd] No Caching mode page present
[ 8092.298751] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[ 8092.301473] sd 8:0:0:0: [sdd] No Caching mode page present
[ 8092.301484] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[ 8092.304063]  sdd: unknown partition table
[ 8092.306744] sd 8:0:0:0: [sdd] No Caching mode page present
[ 8092.306750] sd 8:0:0:0: [sdd] Assuming drive cache: write through
[ 8092.306756] sd 8:0:0:0: [sdd] Attached SCSI removable disk

dd output:

Nothing but a long waiting... sad

Offline

#18 2011-11-13 03:28:06

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Unable to Format Pendrive

Perhaps you could get some insight if you make a contact with Kingston regarding your problem.  They are quick to reply and have good technical know-how.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#19 2011-11-13 04:04:38

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Unable to Format Pendrive

What tool did you use to try and create the partitions? Try using Windows' disk management tool.

Offline

#20 2011-11-13 11:44:48

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

anonymous_user wrote:

What tool did you use to try and create the partitions? Try using Windows' disk management tool.

I already tried. From Windows XP and Windows 7 installation disks, and, with Windows installed too.

Offline

#21 2011-11-13 13:59:14

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Unable to Format Pendrive

This is what I do with stuck sticks (say this sentence 10 times fast…):

1. Get Arch ISO
2. dd if=archiso of=/dev/stick
2.1 If you can boot it, you can revive it (cfdisk, parted, gparted, choose your destiny)
2.2 If not, try a different USB-Port
3. If everything else fails, use Windows and a format tool from the manufacturer's website.

Offline

#22 2011-11-13 17:26:21

mickael9
Member
Registered: 2008-10-11
Posts: 29

Re: Unable to Format Pendrive

You can create a partition table with gparted or cfdisk

Last edited by mickael9 (2011-11-13 18:31:17)

Offline

#23 2011-11-13 20:00:57

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Unable to Format Pendrive

Zeroing out your partition table might help (dd). Don't know if you already allowed it to fill your stick up completely with zeroes - dd being mute is normal; it only returns output upon completion or errors during operation. Or as we say: no news is good news wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#24 2011-11-13 20:16:24

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Unable to Format Pendrive

The pen drive may be locked.......................


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#25 2011-11-15 14:33:51

r9o5a12s7m3
Member
Registered: 2011-09-27
Posts: 21

Re: Unable to Format Pendrive

Awebb wrote:

This is what I do with stuck sticks (say this sentence 10 times fast…):

1. Get Arch ISO
2. dd if=archiso of=/dev/stick
2.1 If you can boot it, you can revive it (cfdisk, parted, gparted, choose your destiny)
2.2 If not, try a different USB-Port
3. If everything else fails, use Windows and a format tool from the manufacturer's website.


Output of dd:

dd: writing to `/dev/sdb': Input/output error
158945+0 records in
158944+0 records out
81379328 bytes (81 MB) copied, 64.2533 s, 1.3 MB/s
mickael9 wrote:

You can create a partition table with gparted or cfdisk

I tried but it's impossible.


.:B:. wrote:

Zeroing out your partition table might help (dd). Don't know if you already allowed it to fill your stick up completely with zeroes - dd being mute is normal; it only returns output upon completion or errors during operation. Or as we say: no news is good news wink.

Yep, but, It didn't showed any output in 3-4 hours. sad



lilsirecho wrote:

The pen drive may be locked.......................

Dmesg output showed that write-protection isn't activated.

Offline

Board footer

Powered by FluxBB