Slashdot Mirror


Which Filesystem Do You Use On Portable Media For Linux Systems?

An anonymous reader writes "Most people use MS filesystems on Disk-On-Keys, and portable hard drives, as these are readable from most machines. But this way you lose the files' permission information, which many times is very inconvenient (you must agree that having Ubuntu asking you whether to execute or display every text file or image you open from a DOK is annoying). Using 'regular' Linux filesystems like ext keeps the permissions, but may require using the superuser when switching machines (as the UIDs are different). So do any of you have a creative solution for this problem?"

91 of 569 comments (clear)

  1. ext3 by Dice · · Score: 3, Insightful

    I don't use OSes other than Linux, so the choice is simple. If I did have to interact with Windows or OS X I'd probably use FAT32.

    1. Re:ext3 by bluelip · · Score: 3, Insightful

      Or possibly get a stick that supports U3 on it. Put the windows drivers for reiser on the CD portion of the drive and format the storage are as reiser. Self-contained, multi-platform, permission preserving solution.

      One such example of reiser drivers for windows.
      http://rfsd.sourceforge.net/

      --

      Yep, I never spell check.
      More incorrect spellings can be found he
    2. Re:ext3 by Kwiik · · Score: 2, Informative

      Of course each oft the systems have to have their own passwd file, wtf.. unless you're authenticating to ldap or another service.

      The solution is to have the folder you are mounting to in fstab, and tell it to always mount media as a specific UID/Group

      Also, the "display or execute" message isn't a problem with the OS, it's a file manager issue. I'm guessing if it annoys you that much, then somebody would have by now submitted it as a bug/idea, and the project admins could decide whether to make it not display that message & just do what's right, or to put an option in somewhere to disable the message. It shouldn't have to ask since it can look up the file extension and then pass it through the binary wrappers

      --
      Vehicle Stars used car search is my current project
    3. Re:ext3 by DigDuality · · Score: 4, Insightful

      umm, the defaults (fat32 formatted keys) work just fine in every distro automatically. Gnome and KDE are great at giving a way to automount in their file managers. What's the problem?

    4. Re:ext3 by PopeRatzo · · Score: 2, Informative

      Which Filesystem Do You Use On Portable Media For Linux Systems?

      The best answer is: "It doesn't matter."

      I use whatever file-system happens to be on the portable media I happen to be using. I move data from Windows to Macs to Linux machines all day long and I never, ever have to think about which filesystem is on the portable media.

      This is a good thing.

      --
      You are welcome on my lawn.
    5. Re:ext3 by Abalamahalamatandra · · Score: 4, Funny

      Not sure I'd use Reiser - I hear it's murder on your USB drive.

    6. Re:ext3 by timeOday · · Score: 4, Informative
      I was thinking, perhaps incorrectly, the poster has a bootable linux on USB, and he wants to boot up different computers with it, and access his home directory on those computers, but is having trouble because his files have a different UID on each computer. The idea was the bootable USB linux could adapt to different disks by having a different passwd file for each, which his username mapping to the appropriate UID on each.

      OK, that was probably too much to assume, but I have been facing this particular problem a lot lately with accessing the host filesystem on VMs that I move around.

    7. Re:ext3 by raddan · · Score: 3, Insightful

      Threads like this remind me of why Linux will never make it as a mainstream OS.

      I converted two people in my office to Ubuntu recently. One is an accountant. The other is an attorney. Both of them were shocked at how reliable and low-maintenance Ubuntu was. Both of them wanted to know why no one else knows about this. The only thing they needed help with was installing the proprietary media codecs (and I should point out all I did was send them links). They installed Ubuntu themselves, and they regularly tell me how happy they are with their computers now.

      How many people have you converted to Linux recently?

    8. Re:ext3 by Waffle+Iron · · Score: 2, Interesting

      The only complaints I have with FAT32 are:

      4 GB limit - an actual issue now.

      IOW: crappy. It can't even hold a single ISO for a 35-cent DVD+RW.

      Possible corruption when power is cut - don't cut power in the middle of a write, design a hardware solution for when it does happen.

      IOW: crappy, but you can avoid stepping in the crap if you're extra careful

      MS owns it - deal with it.

      IOW: Every time you buy a gadget that can write FAT32, you get to pay a crappy little tax to Microsoft.

      Face it, FAT32 *is* just plain crappy, especially compared to the dozen or so available alternatives.

    9. Re:ext3 by selven · · Score: 3, Insightful

      Now this is something I don't understand. How do these jokes cause any harm to Reiser's wife's children or family? Every time someone makes a joke about something that, for some reason, "shouldn't be taken lightly", there are people expressing their outrage about how it was wrong to make it. Everything is offensive to someone, we should all realize that being offended doesn't harm you in any way and you can just skip over to the next comment and let people who want to laugh about something do so.

    10. Re:ext3 by mrchaotica · · Score: 4, Insightful

      This thread is not evidence of Linux being deficient compared to Windows; portable media doesn't usually have intact and correct permissions on Windows systems either! The difference here is that Linux users are pickier about the issue while Windows users, on average, don't care (if they even know about and understand the problem to begin with).

      --

      "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz

    11. Re:ext3 by Runefox · · Score: 2, Interesting

      You do realize that you lose NTFS permissions when copying from a Windows machine to external FAT-based storage, too, right? It's an issue that plagues every platform due to the inherent incompatibility with ACL's/UNIX permissions in FAT. This really has nothing to do with Ubuntu or any Linux distro, or even Mac OS - It's a common issue, and I believe Windows (XP and later) will also prompt to run anything from a FAT-based device, since the "this program is trusted" flag (I can't recall the proper name for it) cannot be set.

      The prompts are desired behaviour due to the ease with which a virus can taint this sort of storage.

      Going back to the main topic, though, while it in itself isn't a secure way of dealing with it, a text file describing the permissions could feasibly be used to restore the permissions after copying to/from a FAT-based FS, through either a script or other automated method. This of course isn't a very secure way of doing it and would be quite rudimentary, but would allow to maintain the permissions if you're the only one making use of the file when you copy it back and forth. The problem then becomes actually doing the scripting and whether or not it's actually that useful.

      A longer-term solution would be to actually lobby for adoption of a newer file system for use in removable storage, rather than the de facto adoption of FAT/FAT32 (a thoroughly obsolete file system today thanks to the widespread use of security/permissions features) due to it being free as in beer and entirely ancient. It doesn't even really have to be EXT2/3, so long as it's free (as in beer) to use (which is essential if any other file system were to be even considered for adoption).

      --
      Screw the rules, I have green hair!
    12. Re:ext3 by Omnifarious · · Score: 3, Insightful

      It bothers me because it hurts innocent code. The code didn't do anything wrong. The software he wrote didn't murder anybody. But now the only thing anybody ever talks about when they talk about the code is murder. The code deserves better than that.

      That sounds like a joke, and it sort of is, but it also really isn't.

    13. Re:ext3 by H3g3m0n · · Score: 2, Informative

      One worrying thing is the new exFat filesystem in use in newer version of Windows. You can be sure after the patent lawsuites suit's on normal Fat that there is patented stuff in exFat. Unfortunately a a new FS is going to be required soon as flash drives start to hit the larger sizes. With every desktop running Windows and most of the population not even knowing what a filesystem is, everyone will end up using it. It's also the standard for SDXC.

      This will of course leave Linux users screwed and every one ever who wants to make a windows compatible device like an mp3 player will need too pay a MS tax.

      It's unfortunate that we couldn't switch to some open system. I believe UDF is fairly open and is the BluRay standard so should work on many systems. Anyone know if UDF support writing under Windows Vista/7? Can it even be read off flash media?

      About the only thing I can say about the filesystem is that it won't be long befoure USB drives go the way of floppy drives as everything moves online.

      Looks like Windows 7/Vista do support writing: http://en.wikipedia.org/wiki/Universal_Disk_Format#Native_OS_support so it might be the best FS to choose from in future for compatibility when you don't need to use older XP era systems as latest Linux and OSX both seem to have write support. The only thing is I can't find any information about patents or license fees so I don't know if its an open standard or not. Still won't help with every digital camera manufacturer, SDXC and mp3 player switching to the MS system.

      --
      cat /dev/urandom > .sig
    14. Re:ext3 by H3g3m0n · · Score: 2, Informative

      Most newer OSes seem to support UDF writing, so hopfully it will work in future: http://en.wikipedia.org/wiki/Universal_Disk_Format#Native_OS_support

      --
      cat /dev/urandom > .sig
    15. Re:ext3 by Rick17JJ · · Score: 2, Informative

      When installing Linux on more than one computer at home, I always make sure that I have the same UID number, on each computer. That way I avoid having permission problems, when accessing my files from an EXT3 formatted external hard drive, using one of my other Linux computers.

      On all three of my computers, my user name is Rick and my UID number is 1000. With most recent versions of Debian or Ubuntu, the first user created is assigned the UID number of 1000. So in most cases, I would get the same user ID by default. But if that was not the case, there are are ways to assign myself a specific UID number or to change my UID number.

      As someone pointed out in another comment elsewhere, the command below could be used to change a user's SUID number. I modified his example to use my user name.

      usermod -u 1000 Rick

      When assigning a new user from the command line, I have used something like this to create my user name from scratch, which the UID of 1000:

      useradd -u 1000 Rick

      Using the chown command, with the correct extra parameters, could be used to recursively change the ownership of all files, within a user's home directory, if that should be necessary after the change.

      I do have an external hard drive and several USB keys formatted as EXT3. Because I have the same UID number on each Linux computer, I do not have any permission problems when accessing the files.

      I can look inside my passwd file to see what my UID is by typing this:

      cat /etc/passwd

    16. Re:ext3 by X0563511 · · Score: 5, Insightful

      Hah, using NTFS actually causes MORE problems for the Windows user?

      Format a usb drive NTFS, and put some files onto it. Now, attempt to use this drive on another windows machine.

      Notice anything funny about the file permissions? Heh, this is the same problem Linux has with UID/GIDs on removable media!

      Interesting how the 'correct' fix for both is to use an antiquated filesystem.

      I wonder if and when we will ever see an equivalent of FAT64, to get around file size issues.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    17. Re:ext3 by cadeon · · Score: 4, Funny

      Is your password 17JJ?

    18. Re:ext3 by JWSmythe · · Score: 2, Insightful

      Everything is offensive to someone

      False equivalency. You've just equated Nazis and the KKK with Teletubbies in terms of offensiveness. Bravo.

          That really depends on who you ask. Ask a proud KKK member, and they'll probably say the Teletubbies. Well, after the blacks, jews, and ... well, anyone not white. I'd say ask a Nazi, but ... well ... all that's left are very old men and the "neo-nazi"'s.

          Not that I'm expressing any support or opposition for any of your selected choices. I'm just clarifying that it's all in the individuals perspective.

          As for the offense that you took towards his message, wouldn't your own statement be taking light to what the first two groups listed have done in the past? But who am I to say that a group with millions of deaths accounted towards them could be viewed wrong as a comparison to the Teletubbies, or to Hans Reiser?

          But, I shouldn't even be writing this, since you've clearly stepped into Godwin's law territory.

          [ducking from massive -100 Godwin Violation moderations]

      --
      Serious? Seriousness is well above my pay grade.
    19. Re:ext3 by JWSmythe · · Score: 2, Funny

          Amazing, that's the same as my luggage combinati..... oh....

      --
      Serious? Seriousness is well above my pay grade.
    20. Re:ext3 by Eskarel · · Score: 2, Insightful

      It was pretty mediocre code to begin with. Interesting, but not anywhere near as revolutionary in practice as people seem to think. Add to that the fact that Reiser was it's primary maintainer and core developer and it's probably not worth bothering with. Especially since SSD's are likely to change the design of file systems rather dramatically in the next few years.

      Plus, slashdot has a lot of karma to make up for all of their "just because they found his car with the seat ripped out and a huge spot of her blood in it doesn't mean he killed her, he's just misunderstood" crap they spouted when he was being tried, so a little criticism of him and his works even things out a bit.

    21. Re:ext3 by Anonymous Coward · · Score: 2, Interesting

      I'm reminded of the Dutch tv comedian Paul de Leeuw. I haven't really watched his shows in years, but he used to have groups of handicapped/diseased/otherwise vulnerable people in his audience and he would ridicule them in a pretty rude way. In an interview he was once asked why he was being so offensive. He answerd that the people he was making fun of were never the ones who were offended. The offended people were always others assuming someone was being hurt. The "victims" themselves were having lots of fun. You just had to watch those shows to see how true that was. Humor is a pretty powerful aid in coping with bad situations.

      I'm pretty sure Nina Reiser isn't capable of being hurt by this joke anymore. There's a very good chance the children won't read the joke. And even if they do, a mild joke like this (I do think it's mild, you can be much more offensive than this) might hurt, but it might also help them find out how easily they recover from it, which could make them stronger. Don't assume it's all negative, you just don't know that.

    22. Re:ext3 by bit01 · · Score: 5, Insightful

      I hear this bullshit often, and thats what it is, bullshit.

      You're the bullshitter. Get out into the real world. There are billions of people, thousands of languages, thousands of accounting standards. Many are not supported by windows, many are in the third world where the price of windows is a deal breaker, many are conforming to standards you've never heard of, many want software they control, many detest DRM and all it stands for, and many are thinking long term and not the short-term, blinkered thinking you're professing.

      M$ marketing and people sucked in by their propaganda like to claim Windows is the only possible alternative however it's just a dishonest attempt to create a self-fulfilling prophesy.

      In reality windows is only one of a number of alternatives, nothing lasts forever, and one size does not fit all.

      ---

      I never look at alternatives because I'm going to be running the same OS for the rest of eternity.

    23. Re:ext3 by Aim+Here · · Score: 3, Insightful

      Innocent code? ReiserFS? You cannot be serious!

      I've trashed more than one Linux install (okay, two) by attempting to use reiser's own utilities to undelete some accidentally rmstarred files or other. Hang, draw and quarter the sonovabitch, that's what I say! Death's too good for him!

      Oh and apparently he killed someone. Maybe he should pay a fine for that too, or something.

    24. Re:ext3 by MikeBabcock · · Score: 2, Informative

      Oh man, you mean the accounting database system we maintain on Linux for our customers doesn't actually exist? I hate parallel realities.

      --
      - Michael T. Babcock (Yes, I blog)
  2. Well, now ... by ScrewMaster · · Score: 3, Insightful

    So do any of you have a creative solution for this problem?

    Isn't the whole point of this "problem" that there shouldn't be a solution to the problem?

    --
    The higher the technology, the sharper that two-edged sword.
    1. Re:Well, now ... by rale,+the · · Score: 3, Insightful

      How does requiring the UID to match prove any more secure than requiring a username match, for a portable drive?  If I have the drive in my hand, I can plug it into any computer I want and access it as root anyway.

    2. Re:Well, now ... by causality · · Score: 2, Informative

      So do any of you have a creative solution for this problem?

      Isn't the whole point of this "problem" that there shouldn't be a solution to the problem?

      That was my thoughts exactly, I don't think the guy understands how security works. If you remove the qualifications to access a file to perseve only -- say -- the need for user name to match, then what the hell kind of nonsense security is that?

      This may be a case where the physical security (possession of the portable media) is much more important than the filesystem permissions. Generally speaking, the portable media itself is a storage-only device and does not have the mechanisms in place to enforce file permissions, relying entirely on the machine to which it is connected for such tasks. Therefore, if you are not using encryption, then you should always assume that anyone with physical control of the media is going to be able to obtain the files on it. If nothing else, they can plug it into a machine that they own/control and copy the files as the superuser. If you are using encryption, then the filesystem permissions should be moot when talking about portable media.

      --
      It is a miracle that curiosity survives formal education. - Einstein
    3. Re:Well, now ... by Bent+Mind · · Score: 2

      If you remove the qualifications to access a file to perseve only -- say -- the need for user name to match, then what the hell kind of nonsense security is that?

      True. However, there are other systems that use user name and key. NFSv4 uses user name and kerberos. Does a similar cross-platform solution exist for removable media?

      Personally, I just mount vfat with my UID. Granted, that means no security for my files. However, there isn't anything currently on the key that I care about. If I were to put something sensitive on it, I'd encrypt the drive.

      I have thought about using ext2, as it has a driver for Windows. However, you do get into the UID matching problem.

      --
      Request a Linux Shockwave player here: http://www.macromedia.com/support/email/wishform/
    4. Re:Well, now ... by Hognoxious · · Score: 2

      Well thanks for that, I feel much more reassured. I thought I was missing something.

      Other than the point of the original question, that it. Zen again, can one miss what isn't there?

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    5. Re:Well, now ... by node+3 · · Score: 2, Insightful

      File permissions security isn't all that useful on removable media like it is on the boot drive (and other internal drives).

      If a drive is portable, you can bypass any security permissions by simply plugging it into a computer where you are root, or compiling your own kernel or filesystem driver to ignore permissions.

      The default behavior for external drives (esp. flash drives) should be to completely ignore ownership permissions, with the option to enforce them if you really want to. Anything more strict and you make things harder for you, but no harder for someone with their own box.

  3. Poratibility by IANAAC · · Score: 4, Interesting
    Since we're talking about portable media, I want it portable and use fat32. That way I know I'll be able to use it pretty much everywhere.

    All my systems at home are Linux-based, ext3. NONE of my neighbors, family, or work associates have that, so it's a no-brainer.

    1. Re:Poratibility by Petrushka · · Score: 2, Interesting

      Since we're talking about portable media, I want it portable and use fat32.

      I use FAT32 even on the HDD partition shared between Linux and Windows on my office machine. Other file systems have just caused me headaches with permissions in the past, though I suppose that's just because I wasn't managing them properly. I suppose I could change my ways, but it's easier just to use FAT. If that's ill-advised of me, maybe someone will tell me so :-)

      I'm not sure what I'm going to switch to when >4 GB files become more prevalent ...

    2. Re:Poratibility by eapache · · Score: 4, Insightful

      The Linux NTFS drivers are working well now. That's what I use on my shared partition.

    3. Re:Poratibility by Simetrical · · Score: 2, Informative

      The Linux NTFS drivers are working well now. That's what I use on my shared partition.

      Except if the portable drive is pulled out of the machine without being properly unmounted. Then the filesystem is unclean, and the Linux NTFS driver doesn't know how to replay the journal. So the thing becomes unusable until you stick it into a Windows machine and then remove it properly. Of course, you shouldn't be pulling it out without unmounting . . . that can cause serious data loss on some cheap USB drives, apparently, regardless of journaling.

      --
      MediaWiki developer, Total War Center sysadmin
  4. I just use by Darkness404 · · Score: 4, Insightful

    I just use FAT32 because the main point of my USB drive is to transfer data between computers and provide a backup of my most important documents. To be perfectly honest I don't know why anyone would need permissions on a USB drive. Most programs on Linux are easy enough that with your .whatever directory in your home folder simply just copy that to your drive and paste it on the new machine. With APT and such most software is easily accessible (making portable binaries like on Windows needless). So why would you even need it?

    --
    Taxation is legalized theft, no more, no less.
  5. NTFS by mrcaseyj · · Score: 5, Funny

    Use NTFS?

    1. Re:NTFS by Nimey · · Score: 5, Informative

      Mods: not funny. I've formatted large USB sticks as NTFS before. Works fine for r/w on Linux and Windows, not so much for Macs, because OSX doesn't have native write support for NTFS.

      --
      Hail Eris, full of mischief...

      E pluribus sanguinem
    2. Re:NTFS by novakreo · · Score: 4, Informative

      NTFS-3G works just fine on Mac OS X with MacFUSE.

      --
      O frabjous day! Callooh! Callay!
    3. Re:NTFS by novakreo · · Score: 2, Interesting

      Native, as in I can toss a stick over to a Mac-loving coworker and expect it to work without intervention.

      If Apple includes ntfs-3g in OSX 10.7, that's different.

      On that criterion, NTFS on Linux fails too, since not all distributions include r/w NTFS support by default. At least in both cases it's fairly simple to install the necessary software.

      Hopefully future versions of OS X will have read/write NTFS support built-in.

      --
      O frabjous day! Callooh! Callay!
    4. Re:NTFS by Hal_Porter · · Score: 2, Informative

      True that. This free tool can format hard disks bigger than 32GB as FAT32, upto 2TB in fact

      http://www.ridgecrop.demon.co.uk/guiformat.htm

      There's also a command line version

      http://www.ridgecrop.demon.co.uk/fat32format.htm

      There a 4GB per file limit, which is a fundamental limit of FAT32. The 32GB per volume limit is just Microsoft's way of encouraging people to use NTFS.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  6. HFS+ by binary+paladin · · Score: 3, Informative

    For the most part, I still use FAT32 since everything can read it. Simple as that.

    However, Linux has no issue reading HFS+ and my main machine is a Mac so it does the trick too.

  7. uid issue by james_shoemaker · · Score: 3, Insightful

    Ever think of just making the uid's on your various machines match?

    James

    1. Re:uid issue by dbIII · · Score: 2, Insightful

      Permissions are irrelevant any when you can assume that whoever picks the thing up by accident or theft has root or Admin on their machine.

  8. Mount noexec by MBCook · · Score: 4, Informative

    If you don't want things to look executable, mount it with the noexec option (which you could put in fstab). That way nothing on the device, even with FAT, will appear executable.

    Since you are moving the files between computers, is the permissions loss really a problem? Aren't you just going to copy things off anyway?

    If you need to limit access to certain users, you could use encrypted loopback file systems. But really, why not just use separate USB keys for different sets of permissions.

    FAT is a lowest common denominator for a reason. If you want to interact with Windows, your only other real choice is NTFS, which isn't a bad option.

    Sure you could use Ext3, or Reiser, or BTFS, or something else, but then you can't use your flash drive on any machine, thus defeating it's purpose.

    --
    Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    1. Re:Mount noexec by massysett · · Score: 2, Informative

      If you don't want things to look executable, mount it with the noexec option (which you could put in fstab). That way nothing on the device, even with FAT, will appear executable.

      I just tested this out, and it does not work. mount(8) says that mounting something noexec means that execution of files on the filesystem is not allowed. However, that does not necessarily mean that the execute bit will be unset. Instead, on my system the execute permission bit is set, but attempting to execute something gives me "permission denied."

      I've had the problem the questioner asks about before; the cleanest solution is to use "fmask=133" in the mount options, as described in mount(8). (There are also umask and dmask options, but I find fmask=133 is sufficient. umask=133 will screw you up because then you can't enter directories.)

      This solution works well for me because I just mount everything from the command line and using the settings in fstab. (This actually is not as bad as it sounds, although I do most work in the command line shell anyway.) Setting the fmask for GNOME in Ubuntu likely would involve editing some HAL XML file somewhere in order to say what fmask options you want, though I'm surprised Ubuntu hasn't done this already.

      Before I figured out how to use the fmask option, I had a little script to chmod the files on my photo memory cards as I copied them to my computer.

  9. UID's by aashenfe · · Score: 4, Interesting

    One of the annoying things about User ID's is that most Distros user utilities start at some number and count up. Then when you use nfs or removable media you find that the files are now owned by another user.

    It would be nice if the default was to pick a random arbitrary and large UID so the chance of UID clashes would be remote.

    1. Re:UID's by imroy · · Score: 5, Informative

      It would be nice if the default was to pick a random arbitrary and large UID so the chance of UID clashes would be remote.

      You know what would be great? If someone made a daemon for mapping UID's between machines. That'd be fantastic, but I'm sure no one else has thought of such a thing.

  10. I use the FAT filesystem most sticks come with by C3ntaur · · Score: 5, Informative

    Then, if I need to preserve Linux file settings I'll zip, tar, or cpio and store them on the stick that way.

    --
    Loading...
    1. Re:I use the FAT filesystem most sticks come with by mrcaseyj · · Score: 4, Insightful
      C3ntaur wrote:

      I invite anyone who claims CO2 is not a pollutant to sit in a room full of it for 10 minutes.

      I invite anyone who claims pure water is not a pollutant to sit in a room full of it for 10 minutes.

    2. Re:I use the FAT filesystem most sticks come with by _Sprocket_ · · Score: 2, Insightful

      I invite anyone who claims pudding is a pollutant to sit in $240 of it for 10 minutes. Aaawww yeah.

    3. Re:I use the FAT filesystem most sticks come with by harry666t · · Score: 3, Insightful

      sofar wrote:

      >mrcaseyj wrote:
      >>
      >>> C3ntaur wrote:
      >>> I invite anyone who claims CO2 is not a pollutant to sit in a room full of it for 10 minutes.
      >>
      >> I invite anyone who claims pure water is not a pollutant to sit in a room full of it for 10 minutes.
      >
      > I invite anyone who claims pure oxygen is not a pollutant to sit in a room full of it for 10 minutes

      I invite anyone who claims pure vacuum is not a pollutant to sit in a room full of it for 10 minutes.

  11. DOK by Anonymous Coward · · Score: 5, Insightful

    What? Who on earth calls it a Disk on Key?

    1. Re:DOK by frovingslosh · · Score: 2, Funny

      I have a red one. What would the acronym for that be?

      --
      I'm an American. I love this country and the freedoms that we used to have.
    2. Re:DOK by etnoy · · Score: 2, Interesting

      In Norwegian and Swedish you can call it "minne pinne".

      That's outrageously bad grammar. "Minnespinne" would be the correct colloquial term for it.

      --
      Quantum hacker.
    3. Re:DOK by spazdor · · Score: 2, Insightful

      um, RDOK?

      --
      DRM: Terminator crops for your mind!
    4. Re:DOK by jrumney · · Score: 2, Funny

      In keeping with the conventional naming scheme for storage devices; floppy disk, hard disk..., I propose that it should be called a pointy disk.

  12. tarballs by kwiqsilver · · Score: 4, Interesting

    I use tarballs. I have Macs and Linux boxes, and I occasionally need to share with windows users, so I use Fat32 as my flash drive FS. But when switching files between two of my boxes, or another Unix-like box, I use tar jcvf foo.tbz <files>, then tar jxvf foo.tbz on the other side. It works great. I suppose now that I have a 32gb flash drive, I could drop the j and avoid the slight time delay of the compression, but it's an old habit.

    1. Re:tarballs by josath · · Score: 3, Informative

      Maybe if he used z instead of j...bzip2 is a notoriously slow compression algo.

      --
      sig? uhh, umm, ok
    2. Re:tarballs by schmiddy · · Score: 2, Informative

      Solution: pbzip2. With 4+ cores it should be comparable to gzip.

      --
      http://cltracker.net -- powerful craigslist multi-city search
  13. FAT32 out the window by jamyskis · · Score: 4, Interesting

    Until very recently, I had a 32GB USB flash card formatted with FAT32. Not that I find FAT32 particularly nice, but it was practical, as it enabled me to easily swap my stuff between my home Windows game PC, my Linux PC, my work Linux laptop and my work Windows PC. The problem was never Linux - the problem was Windows and a lack of ext3 support (I develop under Linux and need the chmod permissions, which all turns to crap when I copy it over to FAT32, which doesn't retain them)

    Focus on the WAS. It WAS practical, until I was faced with the rather interesting prospect of copying an 7.5GB dual-layer DVD master image onto the stick. As we know, FAT32 has a file size limit of 6GB which causes all kinds of interesting problems.

    1. Re:FAT32 out the window by sardaukar_siet · · Score: 3, Informative

      The file size limit in FAT32 volumes is 4GB (http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32) and not 6GB.

  14. AES256 encrypted NTFS by flyingfsck · · Score: 2, Interesting

    NTFS with LUKS and FreeOTFE does the trick for me.

    --
    Excuse me, but please get off my Pennisetum Clandestinum, eh!
  15. Hardly a Linux-only problem. by Yaztromo · · Score: 5, Informative

    This is hardly a problem unique to Linux, although as you point out Linux does have its own special requirements that may make using FAT32 a bit problematic.

    My home network is a combination of Mac OS X clients and Linux servers (Debian is so easily made so Mac friendly...). I have a USB key that I don't tend to use too often (online storage has removed much of that need), but I did decide at one point that easy interoperability between OS's was important, while at the same time needing OS-specific support from time-to-time, for specific applications and data.

    My solution? I formatted my key for FAT32, and then created some disk images on the key formatted them to whatever OS-specific format was suitable (HFS+, ext3, etc.). By leaving sufficient room on the main FAT32 volume, I can readily store platform-neutral data, and inside the images I can store whatever OS-specific data (such as applications) that don't need to be accessible on every system I encounter.

    This does require an extra mounting steps. In OS X, it entails plugging in the key, and then double-clicking on the DMG file to mount it. In Linux, I have to mount the ext3 image using the loop pseudo-device. Of course, this is only necessary if attempting to access data in one of the OS-specific formatted images: accessing shared data merely requires mounting the key itself (generally automatically handled by the OS).

    It's hardly perfect, but it does mean you can have one key that can have both shared and OS-specific data on it for as many OS's as you'd like to have at your disposal.

    Yaz.

  16. ntfs-3g for mac by Anonymous Coward · · Score: 5, Informative

    Sure it does.

    http://macntfs-3g.blogspot.com/

    1. Re:ntfs-3g for mac by slimjim8094 · · Score: 2, Informative

      You need to mount it async; I don't know if there's an alternate driver for it (or just a mount option) but it speeds up transfers by about 30x

      --
      I have developed a truly marvelous proof of this comment, which this signature is too narrow to contain.
  17. Explore2fs by Pow.R+Toc.H · · Score: 4, Informative

    If you don't want much hassle, just use explore2fs (http://www.chrysocome.net/explore2fs). It's an userland application which does not install any drivers or the like on Windows, and as such will execute as any user. However, you'll still need to transport it to the machines you'll want to use, and thus you'll need a tiny space of FAT32 for doing the trick.

    If you have rights to install drivers on the windows machines you use, you can try the EXT2 driver available on www.fs-driver.org. It will mount your EXT2/EXT3 volume as a drive letter so you can transfer files between partitions.

    --

    --------
    Fighting the herd since 1985.
  18. native filesystem by digitalhermit · · Score: 5, Interesting

    I prefer to just dd my data to the raw device. If there's more than one file, I might pipe it through tar first. This process makes it much more portable and universal.

    1. Re:native filesystem by julesh · · Score: 2, Interesting

      What? You run Windows without a full Cygwin installation?

      Jules@minerva ~
      $ ls /dev
      fd stderr stdin stdout

      How do I access raw devices using cygwin?

  19. ext3 by mukund · · Score: 2, Interesting

    I have 3 Seagate FreeAgent 1 GB USB disks. They come with NTFS by default on them. Per disk:

    1. I make a LUKS dm_crypt volume on it (for which support is well integrated into GNOME and hal in Fedora and Ubuntu.. just plug in and it pops up a dialog asking for the password).

    2. I mkfs an ext3 filesystem on the encrypted volume.

    I use this encrypted setup out of experience, having dropped an older 750GB USB disk from a height. It works from time to time and I have to physically destroy it because contents on it are not encrypted and otherwise anyone who finds this disk in the trash can mount and browse it.

    --
    Banu
  20. Forget FAT/VFAT, make your own. by strredwolf · · Score: 2, Informative

    First of all, FAT is patent encumbered and Microsoft's willing to go to court to protect it; so that's out. That includes the old UMSDOS file system Linux had at one time.

    Someone needs to make a good file system that matches FAT, but is more extensible. A good choice is ext2 now... if we dropped a few things that wouldn't work nicely. Like device nodes, pipes, and Unix sockets. Like ownership, since it's assumed that the person mounting the system would own the files on it, along with groups. Simply access restrictions; they wouldn't apply.

    This will simplify the structure a bit, which is a nice bonus and could let it be put on floppies. In other words, it's a light, anonymous, extended file system. LAEFS.

    I got an .h file. Anyone want to help develop it as a FUSE driver?

    --

    --
    # Canmephians for a better Linux Kernel
    $Stalag99{"URL"}="http://stalag99.net";
  21. Re:easy.. by spazdor · · Score: 2, Funny

    0% of the time, it works every time.

    --
    DRM: Terminator crops for your mind!
  22. Installable File System by Jahava · · Score: 5, Informative

    I had the exact same problem a while back. My solution was a little less straightforward than some, but is still simple enough. Basically, I leverage the freeware software Ext2 IFS, which installs software onto Windows that allows it to recognize the contents of Ext2/3 partitions.

    Basically, I have my disk formatted with two partitions:

    • A 1GB FAT32 Partition
    • The rest as an Ext3 Partition

    On the FAT32 partition, I place the latest version of Ext2 IFS. When I access the system on my main Linux box, I just mount / use the Ext3 partition.

    When I visit friends or family and I plug it into their Windows box for the first time, Windows recognizes the FAT32 partition, so I can install the Ext2 IFS software that I put onto that partition. From then on (and every subsequent access), Windows automatically mounts it!

    Windows doesn't reflect the Ext3 permissions, but if you have physical, portable access to an unencrypted hard drive, those mean nothing anyway. And, of course, make sure to ask friends and family before installing filesystem drivers :)

  23. What about UDF? by xororand · · Score: 5, Insightful

    UDF doesn't have a 2 GB file size limit like FAT32 and seems to be well supported by most operating systems. I don't really have any experience with it but I just formatted my USB stick with UDF just to see how it goes.
    mkudffs --media-type=hd --vid=MyDiskLabel /dev/disk/by-id/usb-LEXAR_JUMPDRIVE_ELITE
    It works fine in Linux.

    1. Re:What about UDF? by imroy · · Score: 5, Informative

      I experimented with UDF a couple of years ago. As always, Windows is the problem. No matter what I did, Windows did not see the thumbdrive as a drive letter. And Google didn't show up any useful pages either.

  24. I have 5 thumb drives, 2 are ext2 by grege1 · · Score: 2, Interesting

    You need at least one ext2 formatted thumb drive. When I move source code around I need to preserve symlinks. Can't do that with fat32 without zipping. USB drives are so cheap now you can easily have as many file systems as you want. I also have a 160gb external drive formatted as ext3 for backups - no brainer as it is never going to be read by a Windows machine and permissions and symlinks are preserved. Having two partitions is a neat solution if you only have one drive.

  25. Re:easy.. by Drinking+Bleach · · Score: 2, Informative

    It was called UMSDOS, but it hadn't been maintained for years and was eventually removed from the kernel around 2004.

  26. Re:How do you deal with Linux destroying file date by Rick17JJ · · Score: 4, Informative

    When I use the rsync command, none of the dates or permissions is altered. I use rsync from the command line, about once a week to back up my files onto an external USB hard drive. There is also at least one point-and-click GUI type front end for rsync, which I have not yet tried.

    I used GParted to reformat my external hard drive as an EXT3 partition. GParted is an easy to use, free point-and-click GUI type front end for free Parted partitioning program. I have also used GParted to reformat several small USB keys as EXT3. GParted will can also create other types of partitions, such as FAT16, FAT32, NTFS, EXT2, EXT3, JFS, XFS, Reiserfs, and Reiser4 partitions.

    If I were using the tar command to bundle my directories and files up into a tar ball or a compressed tar ball, the permissions and dates and everything would have been preserved inside the tar ball. In that case I could have stored the tar ball on a FAT32 partition, without loosing permissions or the correct dates. But instead of doing that, I have been using the rsync command to create a backup copy of all the directories and files and everything onto the external USB hard drive.

  27. But... there IS a solution! by mcrbids · · Score: 2, Informative

    It's like the OP asks for a solution to a problem when using Linux, and then there's a grand cacophony of people denying that there is a problem! (when there is, why else was it presented?)

    There are two solutions that I use:

    1) Use tar to zip up the files with attributes, Then copy the .tar or .tgz file to the USB drive. Both Winzip and Archiver read tar files, so they can still be read on Win/Mac. Disadvantage? You can't easily save changes...

    2) create a loopback file on the USB drive, format Ext3, then mount when it's needed. You get easy writes on Linux, but you can't read on Win/Mac w/o special drivers.

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
  28. Partition the disk and use both by Artefacto · · Score: 2, Interesting

    Or you could partition the disk, format the first partition (the only one Windows sees on removable media) with FAT32 and the other one with ext3/whatever when you want to keep the meta-data. The best of both worlds.

  29. pollutant? It's the room by kipling · · Score: 5, Funny

    sofar wrote:

    >mrcaseyj wrote:
    >>
    >>> C3ntaur wrote:
    >>> I invite anyone who claims CO2 is not a pollutant to sit in a room full of it for 10 minutes.
    >>
    >> I invite anyone who claims pure water is not a pollutant to sit in a room full of it for 10 minutes.
    >
    > I invite anyone who claims pure oxygen is not a pollutant to sit in a room full of it for 10 minutes

    I invite anyone who claims pure vacuum is not a pollutant to sit in a room full of it for 10 minutes.

    You are all wrong: in all these fatal scenarios, the common element is the room. Those do-gooders in Copenhagen should be negotiating an agreement on room reduction.

    --
    -- open source? sounds like the real book --
  30. They're talking about fixing this by kabloom · · Score: 2, Interesting

    At present you run into an issue where you could mount an ext2 or ext3 drive as a certain user, write files to it, and be unable to do anything with those files if you have a different UID on a different system.

    A kernel patch has been proposed to allow you to remap ext2/3 UIDs when mounting a disk so that a standard UID can be mapped to whoever mounts the drive. This way, you'll be able to use ext2 or ext3 as your flash filesystem, preserve capitalization (another vfat weak point) and permissions (modulo the remapping) and still have decent interchange between different Linux boxes where you have different UIDs.

  31. Re:How do you deal with Linux destroying file date by sznupi · · Score: 2, Funny

    So there is no straightforward way to keep track of file creation times under POSIX systems? (nevermind translating between the conventions, if some obscure one is possible for POSIX, under dualboot scenario) That's a very dissapointing to me, since I find absolute file creation dates very usefull when navigating the filesystem...

    --
    One that hath name thou can not otter
  32. Can't format MS FS with non-admin in Mac OS X 10.5 by antdude · · Score: 2, Informative

    Has anyone notice TrueCrypt v6.2a won't let you format MS FS (for a container) in a non-admin account? It only works with full administrator account. That doesn't makes sense!

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  33. ext2 for FLASH, ext3 for HD by jomcty · · Score: 2, Interesting

    I use ext2 on my USB flash thumb and ext3 on my portable HD along with http://www.fs-driver.org/ for mu WinXP work machine.

  34. Re:Use the same UID on both/all machines? by Rick17JJ · · Score: 2, Interesting

    I always make sure that my user name is assigned the same UID number on both of my Linux computers, so that I avoid the permissions problem of my files supposedly belonging to a different user. In recent versions of Debian or Ubuntu, the first user created is assigned the UID number of 1000 (by default). So if Rick is the first user created on each computer there is not problem.

    However, I also have a third, even older computer, which uses some older version of Slackware. By default, it assigns a UID number of something like 500 to the first user. To make sure that I had the same UID number on that computer, I had to manually assign myself the UID number that I wanted, when using useradd to create my user name. Just like you, I used this command:

    useradd -u 1000 Rick

    Then when I looked inside my passwd file, I could see that I had been assigned the number 1000. To check that on most Linux distros, I would have typed this:

    cat /etc/passwd

    I had overlooked, how that was actually his main concern. I guess I should read more carefully, instead of speed reading.

    I actually do have an external USB hard drive and several USB keys formatted as EXT3. Having the same UID number on each of my Linux computers, means that each computer knows that those are my files, and that I have my normal permissions for accessing and using those files.

  35. UFS/FFS by evilviper · · Score: 2, Funny

    Far superior to FAT32 and Ext2 is the Unix File System (UFS). Unparalleled reliability, extended from the early days, and still going strong. Also known as the Berkley Fast Filesystem (FFS).

    Damn near everything supports it. Solaris/SunOS, HP-UX, Linux, BSD, MacOS, etc. And thanks to a couple of projects on SourceForge.net dedicated to writing UFS/FFS drivers for Windows, it's available there, too.

    Unfortunately, there are a lot of minor variations on the format... Differing types of disklabels (partition tables), big/little-endian byte-swapping, et al. I find sticking to BSD-created UFS/FFS file systems works best.

    Still, it's an incredibly solid filesystem, widely compatible, available, and just generally has everything you could want.

    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  36. Don't be retarded, there are no alternatives by Colin+Smith · · Score: 2, Informative

    Look up the network effect.

    Any filesystem which doesn't have universal availability is useless for this purpose. FAT works everywhere.

    --
    Deleted
    1. Re:Don't be retarded, there are no alternatives by Waffle+Iron · · Score: 2, Insightful

      That doesn't mean it isn't crappy. It especially isn't "in no way crappy", as the GP post asserted.

      There are plenty of abysmal widely used "standards" we are stuck with for no other reason than the fact that everybody uses them. FAT32 is one of them.

  37. Use HFS+ by williamyf · · Score: 2, Interesting

    HFS+ Can be read by both Linux and Mac. Preserves permisisons and such, and in SnowLeopard, Apple gently provided bootcamp drivers so that XP/Vista/7 can read HFS+ too. No hacks requiered, no big risk involved. There, solved that for ya!

    --
    *** Suerte a todos y Feliz dia!
  38. Think of the Chilluns! by Tetsujin · · Score: 2, Insightful

    Not sure I'd use Reiser - I hear it's murder on your USB drive.

    It's easy to make fun of Reiser, the murderer, but don't forget, your laughs are at the expense of an innocent woman who was brutally murdered as well as two orphaned children.

    If one cannot laugh about the bad things in life, then the world becomes a very bleak place.

    --
    Bow-ties are cool.