![]() |
How to best rid of the vfat filesystem on ~/MyDocs?
Hello,
I'm wondering what's the best way to get rid of the vfat filesystem used on Maemo on N900 for /home/user/MyDocs. I particularly want to solve the following problems: 1. Small files take up too much space, in particular OpenStreetMap tiles for Mappero (and FoxtrotGPS under Easy Debian) take up 10 times more space than they should. 2. I can't use symlinks. 3. For me vfat filesystems tend to break a lot (though I can't be certain other filesystems are better) 4. The file size is limited to 4 GB (not really significant to me, but nevertheless I might want to transfer some huge files) There's also another issue: If I plug the phone to someone else's system in mass storage mode they can access all the files, including GPS tracks and possibly mailbox folders (say I move them there). It would be great if the solution could also help with this one, though I'm willing to live with it. I'd like to be able to retain the ability to access the files from Windows. Will I be able to change the file system and/or partitioning easy, without too much modifications? I.e. would it be as easy as changing the filesystem and the fstab entry? So far I've considered the following: 1. Format to ext3, install a DHCP, FTP and/or Samba server that start with PC suite mode. Sounds like an overkill, and I'm afraid that starting PC suite mode when the phone is connected to someone else's PC might be a grave security issue. Otherwise it does all that I need, and any suggestions on the possible issues would be welcome. 2. Repartition, have a main ext3 partition and a vfat partition for the mass storage My main issues here are that 1) I don't know if it is possible, 2) partitioning is difficult, i.e. the choice of partition sizes is always an issue, and 3) I'm not familiar with how the USB mass storage mode works, and how easy it would be to change the behaviour. Suggestions on whether it can be done, and possible divisions are welcome. 3. Format as UDF UDF seems to be the best choice for a partition. It works under all operating systems, appears to be a fine filesystem, I can use files of any sizes – small and big, symlinks work, permissions work. Only downside I can see is that I can't really separate sensitive files from the rest, but I can live with this. Are there any issues with this option at all, or should I just go ahead and try it? 4. Install NTFS-3G and use NTFS I don't like this as an option, because NTFS is proprietary, NTFS-3G takes too much resources on my desktop (it would be too much for the phone), and still asks you to check it on Windows if there are any errors. But it's been my filesystem of choice for external drives (because Windows XP doesn't see UDF on partitions – it does on whole disks) 5. Leave it as is, create another ext3 image in MyDocs and use it for the maps, etc. The biggest issue is that I can't use symlinks on vfat, so I have to create many images if I want to use it for more than maps. Also, the solution I found for this is a sloppy (i.e. it waits 40 seconds until everything mounts, and mounts .maps), and I doubt I can think of a better one. For comparison, 172 MB map tiles take up: - 221 MB on ext4 - 236 MB on udf - 1.4 GB on vfat P.S. I already use Kernel Power. |
Re: How to best rid of the vfat filesystem on ~/MyDocs?
There's an article on the wiki that may be useful, especially the part about GParted.
http://wiki.maemo.org/Repartitioning_the_flash It seems that you're leaning towards the 3rd option. Go ahead and give it a go. Anyway, the 2nd best would be the 2nd option (because the others seem like much of a hassle). I did some partitioning before with the n900, (actually only shrink /MyDocs and grow /home). Thing went well with GParted. According to the wiki, everything should go fine if the partitions are left in the same order and the created partition is the 4th one. |
Re: How to best rid of the vfat filesystem on ~/MyDocs?
Take a look at this
|
Re: How to best rid of the vfat filesystem on ~/MyDocs?
Thanks for the replies.
I had to give up on UDF (for now), because tar hangs when it's trying to extract ".sounds/Ringtones/Low.aac" to an UDF filesystem. Ugh. :( It appears that my GNU/Linux laptop practically can't write to UDF. :( I was expecting a failure much later on... And a more subtle one... :) Code:
[ 360.652166] tar D ffff880051635020 0 3570 3121 0x00000000 |
Re: How to best rid of the vfat filesystem on ~/MyDocs?
Isn't UDF a file system for re-writable CDs?
I cannot imagine UDF being suitable for standard disks, not even for solid state. |
Re: How to best rid of the vfat filesystem on ~/MyDocs?
Quote:
That doesn't mean it's unsuitable for other uses, and I know of no reason not to use it on a hard drive or a flash drive with a flash translation layer. It should be a better choice than VFAT, and I've heard it being cited as better choice than NTFS (which when you have to use NTFS-3G must be true). And it's the only other filesystem that works on all modern operating systems out of the box. Which is why I inquired about any known issues here. :) Apparently I stumbled on an unexpected kind of issue though: It's hugely unpopular except for optical media, and nobody is using rewritable optical media any more, so I apparently I stumbled on a rare bug that nobody ever noticed, and there are probably more to come. That's unfortunate, since from the little research I did, UDF promised to be the best filesystem for any kind of removable storage. |
Re: How to best rid of the vfat filesystem on ~/MyDocs?
How did you manage format the internal MMC (~/MyDocs) into UDF? I cannot find UDF formatting tools that run in N900 and formatting the volume when mounted as "Mass Storage" does not work.
Thanks! |
Re: How to best rid of the vfat filesystem on ~/MyDocs?
I had the same question after installing modRana (a map application). After downloading a few of maps, Windows explorer said size 800 KB, size on disk 4.5 MB. Ouch!
My solution was simple: copy everything to the PC, reformat from Windows using the smallest allocation unit size available, copy everything back. I kept the format at FAT32 but changed the cluster size from default 64 KB to 8 KB (the smallest Windows let me) and my map overhead dropped from 4.5 MB to 1.2 MB. That's a number I can live with. After copying everything back to the phone, I also noticed that my free space increased from about 5.5 GB before to about 7.5 GB after the reformat. Needless to say, the N900 can still access the partition happily :) |
All times are GMT. The time now is 09:31. |
vBulletin® Version 3.8.8