Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Strange Ubuntu/Vista Compatibility Bug, Solved

Posted by timothy on Thu Aug 14, 2008 08:36 PM
from the love-it-when-a-plan-comes-together dept.
Walter Vos writes "Since I've been running Vista and Ubuntu in dual boot with a shared FAT32 partition for my personal folders, I've been seeing some strange compatibility issues between these two operating systems. Somehow Vista locks the folders on the FAT32 partition that are used for folders like Documents, Downloads, etc. A blogpost I wrote gives a detailed description of the problem and a fix for it."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • FAT32 (Score:5, Interesting)

    by Enderandrew (866215) <enderandrewNO@SPAMgmail.com> on Thursday August 14 2008, @08:38PM (#24609519) Homepage Journal

    NTFS-3G works pretty well. I'm not sure FAT32 is really necessary any more.

    • Re:FAT32 (Score:5, Funny)

      by duckInferno (1275100) on Thursday August 14 2008, @08:47PM (#24609607) Journal
      Stay away from FATMAN239. It nuked my hard drive.
    • Re: (Score:3, Insightful)

      ntfs-3g worked pretty well for me, except for I/O intensive applications. aMule with all its I/O on a NTFS partition of VMware with all the virtual machine's file on a NTFS partition as well were pretty slow. Actually I think VMware was so slow that 99% of the CPU was actually taken up by ntfs-3g, meaning VMware was crawling.
      • Re:FAT32 (Score:5, Interesting)

        by MindlessAutomata (1282944) on Thursday August 14 2008, @09:44PM (#24610099)

        I kept all my mp3s on an NTFS partition, and it made amarok incredibly slow for searching through files and even listing them when I wanted to expand a tree. It, of course, also was using up a ton of cpu power. Other intensive programs were causing me other problems, mostly more cpu usage quirks.

        NTFS-3g is not perfect and I'd recommend steering clear of relying on NTFS on linux for heavy or day-today usage. I haven't used ubuntu on windows but I can imagine it would give a negative impression due to performance issues. For pulling off the occasion file off another partition, though, it works well.

        When I moved all my mp3s to an ext3 partition, all the problems with amarok went away instantly.

        • Re: (Score:3, Informative)

          I kept all my mp3s on an NTFS partition, and it made amarok incredibly slow for searching through files and even listing them when I wanted to expand a tree. It, of course, also was using up a ton of cpu power. Other intensive programs were causing me other problems, mostly more cpu usage quirks.

          I found the default database backend slow, so switching to a better DB could be the solution. Even if your files are on NTFS, try having a postgres DB backend(on your fs of choice) and it should speed up your library searching.

        • Re: Ubuntu and NTFS (Score:4, Informative)

          by szaka (1061180) on Friday August 15 2008, @07:10AM (#24613129)
          NTFS-3G changes rapidly and historically Ubuntu included an old, lower performing version of the NTFS-3G driver. However the one in Ubuntu 8.04 should be ok.

          Amarok has a documented performance issue with NTFS-3G: http://ntfs-3g.org/support.html#dd [ntfs-3g.org]

          The NTFS-3G web site has many tips what could be the problem for high CPU usage: http://ntfs-3g.org/support.html#cpu100 [ntfs-3g.org]

          Sometimes NTFS defragmentation makes a magic.

          The focus of the NTFS-3G development is reliability and functionality over performance. The performance optimizations started only recently and the current development versions perform close or sometimes surprisingly even better than ext3.

    • Re:FAT32 (Score:5, Informative)

      by niteice (793961) <icefragment@gmail.com> on Thursday August 14 2008, @08:54PM (#24609675) Journal
      There's a couple of ext3 drivers for Windows (one open-source, one not) that also work pretty well, so you can go both ways.
      • Re: (Score:2, Insightful)

        by Anonymous Coward

        As far as I know they're only ext2 drivers. Of coarse, you can usually mount ext3 as ext2 without any issues.

          • Re:FAT32 (Score:5, Insightful)

            by kiddygrinder (605598) on Thursday August 14 2008, @10:01PM (#24610225)
            ext2 works pretty well for ext3 drives so they don't care enough to do it. Anyone who does care about ext3 that much i'd guess probably doesn't care that much about windows.
          • What keeps people from implementing ext3 support for Windows? The Linux source code is obviously available, so are Windows ext2 drivers reimplementations that aren't using existing code? Or is there some deeper problem?

            For a while, Microsoft once charged roughly $1,000 for the "IFS Kit" used to develop installable file system drivers. To work around this, programs such as "Explore2fs" had to act like WinRAR and 7-Zip, where you don't really mount a partition but you can still drag files in and out. (The price appears to have dropped since then.) For another thing, 64-bit versions of Windows Vista put an annoying "Test Mode" banner in all four corners of the desktop if the user installs a device driver that hasn't been signed by a publisher who pays an annual fee of at least $200 to a commercial certificate authority trusted by Microsoft.

            • Re: (Score:2, Insightful)

              At least $200! Thats almost two developer hours of money!

              Pretty certain you can chuck whatever cert you want in the trusted root store / disable this behaviour.

              • Re: (Score:3, Insightful)

                At least $200! Thats almost two developer hours of money!

                In what city of what state/province of what country?

      • Re: (Score:3, Informative)

        http://www.diskinternals.com/ [diskinternals.com] they have a freeware ext2/ext3 proggy called 'linux reader' ive had it installed for quite a few months. plays my ext3 mp3storage in winamp just fine.

        • Re: (Score:2, Informative)

          Oddly enough, there's the exact corollary in Linux. Mounting NTFS filesystems often fails because they weren't unmounted properly in Windows. The solution is ... to boot into Windows and mount the filesystem.
    • Re:FAT32 (Score:5, Informative)

      by Ruie (30480) on Thursday August 14 2008, @09:45PM (#24610111) Homepage

      I think he would have the same problem with a ntfs drive.

      The issue is that his Linux user setup and Windows user setup are different.
      So when he mounts the partition all files are owned by root (as shown on the screen), and some files have public permissions turned off - a reasonable thing.

      Thus what he needs to do is specify the owner of the files using uid=value
      option in /etc/fstab (uid value can be found via "getent passwd", it is numeric).

      For more info read "man mount" carefully.

    • NTFS-3G works pretty well. I'm not sure FAT32 is really necessary any more.

      Unless you have an SDHC card that you're sneakernetting between your PC and a digital camera, or you have an external hard drive that you're sneakernetting between a Windows or Ubuntu PC and either a Mac or an Xbox 360. Cameras, Macs, and game consoles tend not to work with NTFS out of the box.

    • Re: (Score:3, Informative)

      NTFS-3G works pretty well. I'm not sure FAT32 is really necessary any more.

      FAT may suck, but it's the only thing understood by a lot of embedded software like BIOSes, device firmware, etc...

      Indeed, for that reason it seems like FAT may very well be more useful than NTFS. FAT will probably stay around for quite a while as a "braindead, but simple and widespread" exchange format, but the only excuse for NTFS is windows.

    • Re: (Score:3, Informative)

      I've had NTFS-G3 totally destroy two NTFS partitions with the Vista version of NTFS 3.1
      This seem to differ a bit from the XP version of NTFS 3.1

  • Damn (Score:5, Funny)

    by MichaelSmith (789609) on Thursday August 14 2008, @08:58PM (#24609701) Homepage Journal
    For a moment there I thought somebody had fixed Ubuntu bug one [launchpad.net].
  • I suspsect that... (Score:4, Insightful)

    by Psychotria (953670) on Thursday August 14 2008, @09:14PM (#24609853)
    if the owner/group permissions were set properly in fstab an easier solution would prevail
  • This isn't a "Vista" bug, as I've seen it happen frequently on a dual boot machine that is only XP+Ubuntu (no Vista)

    I ran into this not that long ago and was really stuck scratching my head for awhile, as the fstab settings were definitely correct. However, after a little "chmod -R" magic on the entire FAT32 partition, it reset the recalcitrant permissions and everything worked fine.

    • Re:Not a vista bug (Score:5, Informative)

      by Qzukk (229616) on Thursday August 14 2008, @09:57PM (#24610199) Journal

      It's not a bug, it's old knowledge getting flushed out of the general awareness of the public. FAT has a read-only bit and Linux knows about it, it's in there along with the system and hidden file bits:

      #define ATTR_RO 1 /* read-only */

      (linux/msdos_fs.h)

      • Glad to see I'm wasn't the only one scratching my head about the claim that FAT32 doesn't support the read-only attribute.

        Damn kids these days, don't remember having to use ATTRIB...

    • Re:Not a vista bug (Score:5, Informative)

      by greg1104 (461138) <gsmith@gregsmith.com> on Thursday August 14 2008, @10:49PM (#24610565) Homepage

      This started in XP actually. The problem is that Microsoft sets the read-only attribute on the special folders that get custom views. See http://support.microsoft.com/kb/326549 [microsoft.com] for information about the root cause of the problem reported on this blog. Fixing it on the Windows side requires one to go all old-school and use attrib; cracked me up.

  • by Anonymous Coward on Thursday August 14 2008, @09:20PM (#24609893)

    ... gets page linked from slashdot.

    Well, at least I adblock.

    • Yeah seriously, why the fuck is this on Slashdot? I'm not the "stuff that matters" whiner type but either timothy never used a Linux distro and thinks this is newsworthy, or this is the slowest news day ever :).
      • either timothy never used a Linux distro and thinks this is newsworthy, or this is the slowest news day ever

        Timothy was last seen putting Ubuntu on an XO. He's been using Linux at least since I met him in 1999.

        It's August, every day is a slow news day :)

      • Ha, I was so thinking the same thing. The gist of this "story" is that they had a problem getting Vista and Ubuntu to work together (*mock gasp* I've never heard of such a thing!) and then proceeded to fix it. *yawn* To top it all off the linked article is a blog post from the submitter. Give me a break.

        • Re: (Score:2, Funny)

          by Anonymous Coward

          You obviously never really did fit in here. I mean, a true slashdotter would have titled his post "Last post!"

  • user discovers chmod ... blogs about it ... boooooring.
  • oh my god. (Score:5, Funny)

    by nawcom (941663) on Thursday August 14 2008, @09:57PM (#24610195) Homepage

    The Effectiveness of the Ubuntu Forums [ubuntuforums.org]

    (The link this person gives in his blog post)

    I swear to christ, reading that page made me want to kill a kitten.

    • by Anonymous Coward on Thursday August 14 2008, @08:45PM (#24609591)
      It actually cannot suck dick. That's my main issue with it. I downloaded and installed Ubuntu with the full expectation of some dick sucking and it never came to pass. What the fuck is that about? You, sir, are a liar and a fraud.
      • by teh moges (875080) on Thursday August 14 2008, @08:53PM (#24609665) Homepage
        Ubuntu can easily handle a FAT16, but has trouble handling a FAT32. It needs more practice I suppose.
      • by Anonymous Coward on Thursday August 14 2008, @08:54PM (#24609673)
        Well, at least it doesn't fuck you in the ass like Vista does.
        • Re: (Score:2, Funny)

          by Anonymous Coward
          Vista fucks you in the ass, and Ubuntu fails to suck your dick...

          Good thing I stick to good ol' DOS, the only OS that won't sexually abuse you, it seems.

        • Re: (Score:3, Funny)

          I've gotten used to putting up with all sorts of nasty behavior from Windows over the years, and I guess I could eventually reluctantly learn to get used to the ass fucking.... but I had to dump Vista when it insisted on shitting in my mouth after each ass fucking.

          -

    • by Anonymous Coward on Thursday August 14 2008, @09:30PM (#24609983)

      Hmm, I'm having a problem with permissions between Vista and Ubuntu. What should I do?

      Adopt a philosophy of ideological inflexibility, intolerance, ignorance, immaturity, and narcissism?

      ...or...

      Run a shell script or two?

      Decisions, decisions...

    • I am wondering why dual boot is "lame"... I dual boot for a couple of reasons. A) For games; B) For Windows apps that I need for work (although, I avoid this now by having XP in vmWare); C) For cross-platform debugging/test (again, vmWare to the rescue); and D) my microscope software, which, alas I can't get to find the scope using vmWare... I have no idea why.

      I have 3 machines at home plus my laptop. And I still dual boot on my main machine. Living life in two worlds aint that bad.
      • Re:you are hollow, (Score:4, Insightful)

        by grantek (979387) on Thursday August 14 2008, @09:54PM (#24610177)
        It's lame because games should work under linux. It's not necessarily you being lame, it's either game developers being lame by not porting their games, Windows being lame that it's hard for the Wine crew to implement it with the exactness needed for games, or both, if the lame games are using bits of Windows that are lame when stuff like OpenGL could help.

        It's lame that people feel like they're being held hostage by an operating system that they don't otherwise want, and it's lame that MS is making money off that. If you actually want Windows for one reason or another, then it's not lame at all.

        • This is why I really think a version of XNA ported to Mono would be totally awesome. Ideally, it'd allow binary compatibility between games written against that API on any platform.

          Of course, this is probably a pipe dream.

        • It's not necessarily you being lame, it's either game developers being lame by not porting their games

          Up until very recently, it was also video card manufacturers being lame by not making OpenGL drivers for Linux that the community can help debug. But ATI, one of the two makers of chipsets for video cards,[1] plans to stop being lame [linux.com]. And some people would claim that it's distribution maintainers being lame by not providing more thorough binary compatibility across multiple families of GNU/Linux distributions. ("What's an LSB again?")

          [1] Intel GMA is not available on a card.

    • But Ubuntu is the most used distros and it can be easily said that it is a Ubuntu bug rather than testing default installs of Gentoo/Slackware/SuSE/Fedora/Arch/etc.
        • But which is easier to test for someone who isn't a kernel hacker, A) a default Ubuntu or B) the latest kernel. But what about compile-time flags, who's kernel tree, etc. By basing it on a standard Ubuntu install, the average person can still report kernel bugs without messing around with kernel hacking.