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? |
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.
|
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?) |
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 |
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>.
|
Quote:
Quote:
|
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 . |
Quote:
Thanks for pointing it out :) |
Quote:
|
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.
|
Quote:
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. |
Thanks shadowsnipes.
Now I have one less reason to have to reboot into windows :) |
Quote:
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... |
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.
|
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 :) |
linux writes to ntfs with ntfs-3g
|
|
Quote:
|
I feel like I should make the point again. Not to be stubborn, but I think it is important to Linux users in general. Do as you wish.
http://www.fs-driver.org/ I use this driver with a shared ext3 data partition with no problems. Since I am usually using Linux, this makes sense... why use ntfs (windows stuff) if you don't have to? I only need ntfs-3g if for some reason I want to make changes to the windows root partition from Linux. This is probably what most people are essentially doing. They want to have their My Documents folder (or whatever) available rw in Linux, and is why everyone seems to be recommending this option. Personally, I like to keep OS's seperate. Linux doesn't touch the windows partition (ro is ok) and vice versa, and the shared partition (ext3) is read-write to both Linux and windows. Using an ext3 as a shared partition reduces the amount of windows stuff you have to use. |
mattydee, the problem is that you can't install windows in ext2/3, so you must use ntfs anyway, so why I shouldn't access it (e.g., scanning for viruses).
Quote:
|
Quote:
You're right, the root windows drive must be ntfs (or fat). However, there is no reason why you should set up a shared partition as ntfs. :) |
In fact, if you used ext3 as a shared partition, you could probably have triple acesss to it: win-linux-mac os. All using an open source file system.
|
Quote:
@mattydee as much as I like to promote the use of Linux and its file systems and open source software in general, I personally have a problem with giving Windows the ability to read Linux files. When you have programs or drivers on Windows that allow you to read Linux file systems there is pretty much nothing to stop Windows/Careless users/whatever from messing with your Linux files or even your boot partition for that matter. You have to be really careful how you set it up (perms, etc to the program/drivers). Otherwise, you open a big security hole in your system. That being said, if you are really careful then using the ext3 driver can be great because then you can have correct finely grained permissions in Linux versus the scope offered by mount options. However, the OP already has all his data in interest on a NTFS partition, so using NTFS-3G would be the easiest and (likely) safest option. On the Linux side care just needs to be taken to be sure that only users of a certain group can access the partition. |
When I think about it, the problem might be with non-English file names.
My ntfs-3g is 1.616 and fuse is 2.6.5. |
Quote:
Despite this, being really careful is not a valid point in this case... Say your root linux drive is ext3 (mine is not). Any windows user can dl the driver, double click to install and wreck havoc on your root linux partition no matter how you set it up... Or they can insert a live distro cd and do whatever they please. Having windows (where users run as admin 99% of the time) on the machine is the weakness, not the ext2 driver. You shouldn't try to scare people away from that. Having a home desktop setting where users can control the boot process etc amounts to any user being able to do pretty much anything. Allowing them windows access to a shared ext3 data partition is not a security problem. Allowing them access to your linux root part would be, but as stated above, they can pretty much allow themselves that access anyway, either as windows users with admin privileges or by messing around with the boot process. If you want to be "really careful" you should start with much more fundamental security issues first, like locking down the boot process, and ensuring windows users don't run with admin privileges, but this is probably not worth the trouble for a home desktop. I am assuming this is a home desktop, not a public computer where users get a choice of running either windows or Linux... ;) PS: Sorry if I am distracting from the OP question, but I think it has already been answered, and I'm continuing this because I feel that this is turning into an interesting discussion (for me at least :) ) |
Quote:
Quote:
Even if it is just some plain documents that you like to share there are problems on the Windows side. For instance, say it is a home computer and you have multiple users on Windows and Linux. If you use the ext3 driver permissions on the Linux side are great, of course, but on the Windows side there is no separation. Anybody, can access and modify any of the Linux partitions added to the drives with the Ext2 IFS program (or any partitions if allowed to download a different ext2 driver). This is true even if you had separate partitions to give each user their own shared space. The only thing you could really do is obscure which drives are available to the individual users by hacking the registry to hide drives they shouldn't access from explorer. Now say, instead, you use the NTFS-3G driver in the same scenario. On the Windows side perms are great, of course, but on the Linux side you can pretty much only set perms for whole partitions. In this instance, however, you could at least set different perms for different partitions, thus allowing users to have their own personal shared space. If this Ext2 IFS driver could be updated to allow settings perms on at least whole partitions like Linux does then it would be much more useful. However, in its current state it seems more useful for single user scenarios. As I mentioned before, what you choose depends largely on preference, which OS get used the most, and what setups you have for each. In general, no matter what you do, security is always just a deterrent. If someone really wants to break in they will, though it just might take them longer and they might be more noticeable. |
I would never try to convert any filesystem to any if there was something worthy in it.
well at least not in windows. doing that a long time ago destroyed a lot of good data for me :) windows box just hang up. since that time I always have been using at least 3 partitions one for linux and another for windows the third for all personal data. I don't use windows alot so the data partition is ext3, and the driver works fine. it is always good to keep data on a separate partition anyway, that's not any OS root. my data partition used to be fat32 a long time ago, but that was when i was mostly using windows, I made my life easier on linux by using ext3. |
Quote:
1. ntfsprogs 2. FUSE 3. ntfs-3g You can download the binary in linuxpackages.net, or the source in google.com (sorry :P I forgot) For me it works. I can write in ntfs partition even as a normal user. |
@shadowsnipes
Makes sense. I hadn't thought of that approach. Although you would only see added security if you locked down windows and created separate user partitions. |
i found ntfs-3g 1.1 and 1.8 which one is more stable
and what is Fuse? |
Quote:
Quote:
"FUSE is a simple interface for userspace programs to export a virtual filesystem to the Linux kernel." - exert from the FUSE slackBuild page. The page also links to the source and homepage for FUSE. Similarly, here's the ntfs-3g slackBuild page that includes a link to the homepage and source. Use the slackbuild to build and install fuse, and then do the same for ntfs-3g. You will then need to mount your ntfs drive as ntfs-3g type (versus vfat, ext3, etc). If you are not sure how to use a Slackbuild please read the SlackBuild HowTo. |
Quote:
For simplicity having separate user data partitions can be made transparent to the users using shortcuts and symlinks. I've done this before and people don't think anything about it. I don't generally recommend hacking Windows to point whole user profiles to a shared partition, however. Rather instead I share the "My Documents" and Desktop folders as that is what most users care about the most. Settings for most programs don't transfer over to Linux anyways, so it is pointless to share the rest of the profile. Programs like Firefox and Thunderbird are exceptions and I have developed methods to share those profiles successfully between Linux and Windows. If you have a lot of users then you are talking about using a server that hands out your user profiles/data upon login (using LDAP and whatnot). This is what I've seen and used in University lab settings. |
Quote:
So if you want to advocate the use of the ntfs-3g driver for a home user, then you need to stipulate that these steps must be taken in order to reap any of the security benefits. I doubt Ahmed Gamal (or the average user) will bother with the extra steps, but I may be wrong. :) |
@mattydee
no, I was just saying in general, for added security you need to lock down Windows. It's funny yet true. |
Quote:
I wonder if Vista is more secure... I think you need to enter your password for any admin operations, Ubuntu style, so I'm assuming ntfs perms would be respected. (And like Windows, Ubuntu overwrites your mbr/boot-loader without permission when installing. But that's a whole other topic :) ) |
i tried it
it works very well thanx for all BUT....... really i want to mount my drives so it can read and write automatically without typing Quote:
|
Quote:
|
i am sorry
i opened fstab and see what is inside it i don't know what to change ???????? |
Look at the other lines in fstab and use a similar format. Imagine columns of attributes are separated by spaces of some amount. man mount to learn more about the options.
Here is an example of one I use for an external drive. Code:
/dev/sda1 /mnt/P_COMPBKUP ntfs-3g defaults,noauto,gid=102,umask=007 0 0 For an ntfs drive you can safely use 0's for the last two groups. You can read more about these and other options (including the useful user option) under the man page for mount. So, simply use a text editor (such as pico) to edit the file (as root, of course) and add a single line with the settings you want for your mount point and then you are all set! If you don't use the auto option then you can manually mount the partition without specifying the options such as Code:
mount /mnt/windows |
I know this is out of topics but I want to know can I change my filesystem to another without lose the data on it?
I use ext3 and I want to change to ext2. |
Quote:
If you really must make sure the journal is gone you can Code:
tune2fs -O ^has_journal /dev/your_hdd_partition It is a little more involved to do this if the filesystem in question is / as you have to boot into a LiveCD to take away the journal from /. I suggest reading this document about ext2/ext3 conversions that I found with a quick Google search. You can ignore the initrd stuff unless you don't have the filesystem drivers built in your kernel. |
Thanks, I ask this because I have problem with my harddisk. It always print something about dma error, after I read some posts, there's something about the kernel.
I recompile the kernel and seems no more problems. |
All times are GMT -5. The time now is 03:16 PM. |