Originally Posted by
Tumex
Code:
[snip ...]
Note: sector size is 4096 (not 512)
Disk /dev/sdc: 2017 MB, 2017984512 bytes
63 heads, 62 sectors/track, 126 cylinders
Units = cylinders of 3906 * 4096 = 15998976 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
At the very end, I noticed this:
Disk /dev/sdc doesn't contain a valid partition table
Mm?
You're having problems because your USB stick uses a sector size of 4096 bytes instead of the usual 512 bytes. gparted doesn't support this very well. fdisk does, however. Here's how you get the disk up and running:
Start up fdisk on your USB stick (remember to replace the /dev/sdc part with the device name of your USB stick, if this has changed since the above output was produced):
Code:
sudo fdisk -cu /dev/sdc
Create a new DOS partition table by typing in an 'o' and pressing enter. Now write this partition table to the disk by typing 'w' and pressing enter. fdisk will write the partition table and exit.
Now we'd like to create a partition on that USB stick, so fire up fdisk again on the device as you did before:
Code:
sudo fdisk -cu /dev/sdc
Type in an 'n' and press enter to start. We want to create a primary partition, so type in a 'p' and confirm that by pressing enter. Now it asks for a partition number; how about entering '1' as the partition number, this seems suitable for the first partition. Press enter.
Press enter again to confirm the suggested first sector number, and once again to accept the suggested the last sector number.
Now type in a 'w' and press enter to write what we've just specified to the disk.
Now let's create that file system that we've all been waiting for. I'm not sure if this "Not enough clusters..."-warning is relevant, but assuming it is, we'll create a 16 bit FAT file system on the disk instead.
First we need to know how many sectors are on your USB stick. To do this we use fdisk this way:
Code:
sudo fdisk -cul /dev/sdd
You'll see some output like this at the end:
Code:
...
Device Boot Start End Blocks Id System
/dev/sdc1 512 521087 1041152 83 Linux
The important part here is how many blocks are on the device (in bold). Copy this number so you're ready to paste it for the next and final command.
Now we'll create a 16 bit FAT file system on the disk that fills out the partition on the drive:
Code:
sudo mkfs.vfat /dev/sdc1 -F 16 -S 4096 <blocks>
Just change the <blocks> part to the number of blocks you got from the fdisk command immediately above.
You should be good to go!
Bookmarks