Formatting USB memory device.

Questions about Wine on macOS.
Locked
Unstable
Newbie
Newbie
Posts: 1
Joined: Thu Dec 29, 2011 4:31 pm

Formatting USB memory device.

Post by Unstable »

I recently deleted my boot camp partition, typically I'm in a situation where I would like to run a .exe file.

a brand new USB pen I bought will not let me write files or format it. Only allowing me to read it.

It's a 16gb HP model that I think has been manufactured by PNY electronics.
I have discovered an exe. from PNY that people in other forums claim can re-format the device.

I have tried Wine but feel hesitant. I don't want to re format my Mac. The program it loads doesn't seem very functional. The drop down menu in the program doesn't show any drives.

Any advice would be greatly appreciated. I could just use a windows computer to try to fix the USB stick but would like to achieve this using Wine.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Formatting USB memory device.

Post by dimesio »

Unstable wrote: a brand new USB pen I bought will not let me write files or format it. Only allowing me to read it.
If it's brand new, why don't you just take it back for a refund or exchange?

I would not attempt to run any disk formatting software under Wine.
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

I'm almost 100% certain your thumb drive has a partition formatted as NTFS.

Stock Mac OS X's NTFS driver only has the ability to read NTFS. It cannot write to NTFS.

You could install the 3G FUSE NTFS driver for Mac OS, which would give that particular installation of Mac OS X on that particular computer the ability to read and write to NTFS. But if you go to another Mac that doesn't have that driver, you would again only be able to read your NTFS partition unless you again installed the 3G FUSE NTFS driver on that Mac, which would require that Mac's administrator password.

Furthermore, NTFS is Microsoft's proprietary filesystem, just like HFS and HFS+ are Apple's proprietary filesystems. This means that open source drivers for those filesystems are more or less based off of reverse-engineering the filesystems, as I understand it. So they currently do not support all their features. And they don't even perfectly support the features they do support. Recently I have had issues with using NTFS on my external hard drive in Linux (don't need to go into detail here).

So even the 3G FUSE NTFS driver (open source) won't give you 100% dependability (i.e, something bad might eventually happen).

The solution is very simple: format the partition as FAT32. That is one of the most compatible filesystems of all time. Linux, Mac, Windows, and just about every OS can read and write and format FAT32 perfectly. It's been out for a very long time and it is well supported.

In fact, just a couple days ago I formatted my mom's new thumb drive to FAT32 so it would be cross-compatible for her. I gave room for primary and secondary GPT headers and room for 33 sectors worth of primary and secondary partition table entries in case she decides to upgrade to GPT in the future, though right now it is pure MBR-structured (the switch could be done without loss of partitions or data therein). I also gave her a 64-sector partition for use as a BIOS Boot partition later on should she go there. Made the partitions align to clusters, and put a 200 MiB area of unallocated space between the partitions and between the partitions and the spaces for GPT stuff.

Note that with FAT32 no one file can surpass 4 GB. That's not to say there aren't creative ways around that restriction.

Jake
Locked