Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: WARNING: Not enough clusters for a 32 bit FAT!

  1. #11
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: WARNING: Not enough clusters for a 32 bit FAT!

    Quote Originally Posted by Tumex View Post
    How would I go about deleting the partition if gparted doesn't detect it? Thanks for the help till now.
    fat32 formatting is better done with windows tools, or partedmagic into linux http://partedmagic.com/

    to deal with partitions and devices, install mountmanager, and set your prefs (system admin mountmanager)

    pmount and usbmount have to be installed too (see into synaptic)

  2. #12
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: WARNING: Not enough clusters for a 32 bit FAT!

    Quote Originally Posted by Tumex View Post
    [code]
    ........
    At the very end, I noticed this:
    Disk /dev/sdc doesn't contain a valid partition table
    Use dd to wipe the whole device, and if you still cannot use gparted to write a new Partition Table after that then you may well have a faulty USB device.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  3. #13
    Join Date
    Apr 2007
    Location
    Copenhagen
    Beans
    146
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: WARNING: Not enough clusters for a 32 bit FAT!

    Quote Originally Posted by Tumex View Post
    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!

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •