Question Locked

fdisk not working on pendrive

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When i connect my pendrive to a usb slot and use fdisk -l to see the partitions, it shows this regarding the pendrive device:

"Disk /dev/sdb: 8493 MB, 8493465600 bytes
64 heads, 32 sectors/track, 8100 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0xffffffff

Disk /dev/sdb doesn't contain a valid partition table"

So i proceeded to use fdisk /dev/sdb, and this shows:

"Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xcd096fb7.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

The number of cylinders for this disk is set to 8100.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): "

then in the prompt, i first use 'n', to create a new partition. After creating a primary partition, i use 't' to make it a FAT32 partition. Using 'p', i can see that the changes were done, in the memory at least. After that, i type 'w' so it will write the changes to disk. Here's what happens:

"The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks."

It is done. In theory, now /dev/sdb1 should exist, and i should be able to format it using mkdosfs -F 32 /dev/sdb1. But, when i run that command, this happens:

"mkdosfs 2.11 (12 Mar 2005)
/dev/sdb1: No such file or directory"

Very annoyed by that fact, i go back to fdisk and press 'p' so it will list the partition on the device. There is none! Seems like fdisk didn't write the partitions to the device! Needless to say, i was very, very bothered by it.

There's no locking key on the device (it's a kingston data traveler 400 8GB). For some odd reason, there's no LED on my pendrive, seems like it's missing. I've also tried to format it on windows vista. On windows, after all the time it takes to format it, in the end there's an alert box saying "Windows was unable to complete the format". What can i do to have my pendrive working? Please don't say it is dead... T_T

13 replies

by johnking84

of course!
when i attach it to the usb slot and run fdisk -l, it shows:

"Disk /dev/sdb: 8 MB, 8388608 bytes
1 heads, 16 sectors/track, 1024 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Disk identifier: 0x8d8ca95a

Disk /dev/sdb doesn't contain a valid partition table"
"

if i try to mount it nevertheless:

"mount: can't find /dev/sdb in /etc/fstab or /etc/mtab"

by thumbsup2

First of all, Penn drives don't have cylinders and heads. So, what you see isn't even close to being reliable.

FDISK is an old DOS command, invented well before any of these thumb/penn drives were even thought of. It's a command used on devices with MOVING PARTS, not Penn drives.

For the life of me, I don't understand why people think they can run an old DOS command on these devices and get any kind of reliable information out of the reports.

by johnking84

i just did what i saw on teh internets.
could you tell me what should i do then?

by thumbsup2

You have never given us any kind of problem to diagnose for you. All you've stated is what you've done.

Just what is it you're trying to do? Do you want to USE the drive or what?

by johnking84

im not THAT stupid, you know. it doesn't have much relevance with my problem anyways

by johnking84

yes, i want to make it useable. isnt it the point of formatting it anyways?

by thumbsup2

... Maybe you've purchased something I've never seen before. But, usually, after you buy these things, you just plug them in and start using them. They're not like a CD/DVD or floppy disk, or even a hard drive. They're a completely different type of storage media which does not require preparation before using it.

Where did you get the idea you needed to FDISK and format it before you could use it?

And, even if you bought it used and it had been wiped first, to prepare it for use, you should be using your OS to do it with, not the old DOS commands.

by johnking84

I had to use the commands because the pendrive is unusable for some reason. a few searches on google led me to various problems that were solved by reformatting the pendrive partitions.

These 'old DOS commands' are bash commands from a linux console. Im using slackware with fluxbox, so there's no automounting feature, i have to mount manually.

by rob miners

does it show up as in Disk Manager. Basic or Removable. If it is Removable and it can't be formatted it may have seen better days. If it shows up as a Basic drive and it can be Partitioned read on and use fdisk to delete and recreate the Partition. You should then be able to format it in windows.
If you haven't already Partitioned and made the USB Stick Active you may need to create a Bootable CD with Fdisk.exe on it to prepare the USB Stick if you haven't a Floppy Drive. You will need a DOS Boot Disk which can be downloaded from below. Create the ISO and using a PC that can be booted from USB use fdisk to delete and recreate the Partition. I would recommend disconnecting any hard drives from the PC before continuing.

http://www.bootdisk.com/bootdisk.htm

Download these files and add the new fdisk.exe to the floppy when it is created.

Windows 98 SE Custom, No Ramdrive

Updated fdisk for Windows 98 bootdisks

Because a lot of newer PC's don't have Floppy Drives anymore I use Virtual Floppy Drive. VFD.

http://chitchat.at.infoseek.co.jp/vmware/vfd.html#beta

How to make a bootable CD

http://www.computerhope.com/issues/ch000669.htm

How to Make Bootable CDs

http://www.pcsupportadvisor.com/bootable_%20CD_page1.htm

Burn it to CD using Nero or any other Software that will support the ISO Image.

How to burn an ISO Image:

http://www.ubcd4win.com/burn.htm

< missed a bit >

Keep us informed as to your progress if you require further assistance. ;) :D

by thechas

Here is a link to a Kingston video on formatting your drive.

http://www.kingston.com/support/howtodt/default.asp

If it takes a long time to format, or you get errors after formatting, I would say that the odds are the drive has at least a bad section of Flash.

At 8 GB, I presume that this drive is new enough to still be under warranty. If so, contact Kingston and have them assist you to verify that the drive is bad, and where to send it for repair or replacement.

Chas

This discussion is closed to new replies.