LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ntfs->fat32 (https://www.linuxquestions.org/questions/slackware-14/ntfs-fat32-613955/)

ahmed gamal 01-16-2008 07:06 AM

ntfs->fat32
 
hi every body
i have a problem
i want to changa a windows drive (ntfs) to fat32 from my slackware
without losing the files on the ntfs drive
i know that i can make this with partion magic
but i want to make it on my little slack
any suggestions?

acid_kewpie 01-16-2008 07:16 AM

converting two proprietary file systems based on reversed engineernig of protocols, if you would trust that, you're nuts, and i'm pretty sure it's also totally impossible within linux anyway, as it should be.

pixellany 01-16-2008 07:27 AM

I am not sure it is possible from anywhere to change the filesystem while preserving all the data.

Please tell us why you want to do this. There might be a better way to get to the final goal. (In American slang: What swamp are you trying to drain?)

mcnalu 01-16-2008 07:58 AM

It is possible, but you need to do it from Windows using
an app like Partition Magic. I've done fat32->ntfs that way
on an empty, brand new USB drive.

If going the opposite way, remember that fat32 has various
restrictions that ntfs doesn't have. For example,
there's a file size limit on fat32 (2Gb or 4Gb, can't remember which?).

A better approach would be to create a fat32 partition and then copy
files from your existing ntfs partition. I don't know if that
can be done from linux.

Good luck!

Andrew

Dinithion 01-16-2008 08:12 AM

Another thing worth mentioning is the size limit of fat32 itself. One fat32 partition cant be larger then 32GB. And that isn't very much these days. So if your NTFS partition is larger then 32GB it will be impossible with linux, windows, <insert os/application here>.

drumz 01-16-2008 08:17 AM

Quote:

Originally Posted by Dinithion (Post 3024481)
Another thing worth mentioning is the size limit of fat32 itself. One fat32 partition cant be larger then 32GB.

That isn't true.

Quote:

Originally Posted by http://support.microsoft.com/kb/154997
FAT32 provides the following enhancements over previous implementations of the FAT file system:
• FAT32 supports drives up to 2 terabytes in size.

NOTE: Microsoft Windows 2000 only supports FAT32 partitions up to a size of 32 GB.

If you create the fat32 partition in linux, you won't have any problems. If you try to create it in Windows, then you might have problems (I've run into this before).

duryodhan 01-16-2008 08:28 AM

yeah, FAT32 limits the size of 1 FILE to 4gb .. so you can't keep all your 9gb dvd images in that drive.

Why do you want to convert ? Is space such a big issue? Copy it to a external drive (beg/borrow/steal from your friends) , and run mkfs.ntfs on that partition. That should be enough .

Dinithion 01-16-2008 09:03 AM

Quote:

Originally Posted by drumz (Post 3024487)
That isn't true.

Ops, my bad. I just remembered that is was a case back in the days when I used windows. That was before XP, and I used NT 4.0 until i changed, so I wasn't aware of that fix.

Thanks for pointing it out :)

Melkor 01-16-2008 09:39 AM

Quote:

Originally Posted by ahmed gamal (Post 3024410)
hi every body
i have a problem
i want to changa a windows drive (ntfs) to fat32 from my slackware
without losing the files on the ntfs drive
i know that i can make this with partion magic
but i want to make it on my little slack
any suggestions?

By far your best bet is to copy the stuff you want to save to a different drive or partition and format that NTFS drive and start fresh.

mattydee 01-18-2008 11:43 AM

My guess is that the op wants to setup a shared drive to be used with windows. If this is the case I would recommend using an ext3 partition and get the (open source) ext3 driver for windows.

shadowsnipes 01-18-2008 10:47 PM

Quote:

Originally Posted by mattydee (Post 3027272)
My guess is that the op wants to setup a shared drive to be used with windows. If this is the case I would recommend using an ext3 partition and get the (open source) ext3 driver for windows.

If the OP really just wants a shared drive I would instead recommend NTFS-3G. It works wonderfully. The only snag is that you need to make sure that Higher level folders on the partition have permissions set in Windows and that they will be inherited. This is because NTFS-3G doesn't do perms correctly. In Linux they are set as you set them for the partition, but in Windows new files and folders will by default be open for everyone. If you create a top level directory in Linux it is easy to fix the perms in [Edit] Windows later. If you use Linux mostly and care what Windows can access then this is the best way to go. If you use Windows mostly and don't care that it can touch your linux files then the ext3 driver would be the way to go.

Back to the original question, I don't think you can easily convert from NTFS to Fat32 directly in Linux. However, if you don't have partition magic and have a mostly empty NTFS partition you could use gparted (in Slackware if you want) to:

1) shrink the NTFS partition
2) create a fat32 partition with the new extra space (must be > size of data)
3) copy over the files from the NTFS partition to the fat32 partition
4) delete the NTFS partition
5) expand the FAT32 partition to reclaim the space you want

If I were to do this I would just use the gparted live cd, but you can use gparted in Slackware, so there you go.

mcnalu 01-19-2008 02:50 AM

Thanks shadowsnipes.

Now I have one less reason to have to reboot into windows :)

mattydee 01-19-2008 03:24 AM

Quote:

Originally Posted by shadowsnipes (Post 3027760)
If the OP really just wants a shared drive I would instead recommend NTFS-3G.

Closed source file system with a reverse engineered driver.

If you use ext3 you get an open FS with an open source driver.

Just something to think about... I'm assuming the OP was looking for a shared data drive, but who knows...

jay73 01-19-2008 04:15 AM

Using Linux file system drivers brings its own limitations. Good luck finding them for Windows XP64. Maybe ext2 but that's about it. I've been using ntfs-3g for over a year because it's the only option I have to access my xfs partitions. And it's not just XP64, similar limitations apply to Solaris and FreeBSD. FAT - and possibly ext2 - are the only failsafe options. I wish I had known that before as wiping and redoing several hundreds of gigabytes of data is not something that makes me go wild with enthusiasm.

ahmed gamal 01-19-2008 06:07 AM

i want to change the ntfs driver to fat32 so i make a share partition between my ntfs drivers of windows and linux
coz linux don't write to ntfs
:)


All times are GMT -5. The time now is 08:59 AM.