[SOLVED] format 64Gb usb drive to Fat32 only gives 32Gb?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have to format approx 200 USB drives to Fat32. On my mac, no problem but in Linux from the command line it only gives me 32Gb instead of the full capacity.
Here is what I am doing:
Code:
sudo su
umount /dev/sda
mkfs.vfat -n 'round01' -I /dev/sda
this formats nice and quickly, but only gives me a 32Gb partition and as I am a little new to this, I am struggling somewhat to understand what the "-n" means and the "-I" means.
you got Gparted? use that --- if something wrong with the usb normally it can be fix within that too --- just incase partitons maybe screewed up-- that should let you know.
I have to format approx 200 USB drives to Fat32. On my mac, no problem but in Linux from the command line it only gives me 32Gb instead of the full capacity.
Take one USB drive that you formatted correctly on your Mac.
Plug that in to your linux box.
Plug in the unformatted USB drive.
Discover the device designations >
Code:
sudo fdisk -l
Clone /dev/sdc to /dev/sdd (or whatever the correct device designations are...)
Code:
sudo dd if=/dev/sdc of=/dev/sdd
Last edited by TxLonghorn; 12-22-2015 at 07:04 AM.
Reason: to edit
I am struggling somewhat to understand what the "-n" means and the "-I" means.
"-n" means set the volume name (label) of the file system.
"-n 'round01' " - set the label using the chosen text inside the quotes.
"-I" - means you are doing a "superfloppy" format. That is formatting the entire disk, not partitions. The -I tells the format command to ignore the fact that you have no partitions.
It can probably be done using the -S option in your command:
mkfs.vfat -n 'round01' -I /dev/sda
to increase the logical sector size.
I will try to figure out the exact parameters.
You haven't created a partition yet, you're just trying to create a filesystem on the raw device. Use fdisk or parted or gparted to create a partition on the device first, then create the filesystem on the partition (sda1, not sda).
As for gparted and fat32, yes absolutely gparted supports fat32, it would be ridiculous for it not to.
As for wearing out your USB port, use a $5 extension cable and plug your drives into that.
Last edited by suicidaleggroll; 12-22-2015 at 11:09 AM.
Ok, tried to use fdisk, now I only have 32K of space, that's much worse, can someone please point me at a tutorial that will make it so I can format a 64Gb Drive from exFat format to FAT32 please.
I have to format approx 200 USB drives to Fat32. On my mac, no problem but in Linux from the command line it only gives me 32Gb instead of the full capacity.
Here is what I am doing:
Code:
sudo su
umount /dev/sda
mkfs.vfat -n 'round01' -I /dev/sda
this formats nice and quickly, but only gives me a 32Gb partition and as I am a little new to this, I am struggling somewhat to understand what the "-n" means and the "-I" means.
Formatting a 64GB drive will require some waiting, about 10 minutes depending on the machine's capabilities.
Oh I remember way back when they had this meddium that was called a floppy, it came in 3 sizes, 8" , 5 1/4" and3.5". the little one that wasn't really a floppy, it was hard plastic. NeverTheLess my friend that truned me on to Linux (Slackware) showed me a command line that all I had to do was write something giving it the prams, hit inter then that 3.5 floppy was fotmated instead of waiting for it to format under the format command. it was done as soon after hiting enter.
Linux wasn't support that well back then had to go back to Windows and forgot what it was that he showed me. maybe it only worked on 3.5 floppies. either way it was was really fast when used. just type size of drive - sectors and where it was at then hit enter (maybe missing a few prams) but whatever it was, It was done as soon as enter was hit. hit that arrow on the keyborad and do another one, it went faster then the old waiting for it to format every sector slowly
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.