LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-27-2006, 05:57 PM   #1
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Rep: Reputation: 15
Subversion shared repository under both Windows and Linux?


I have a Window/Linux dual boot laptop. I was wondering if I can install subversion on both platform and have it access the same partition (probably on Fat32).

I don't seemed to see an answer on this group about this. Has anyone tried it?

Paul
 
Old 06-28-2006, 02:06 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Here's the short version:
Quote:
Originally Posted by www.catb.org/esr/faqs/smart-questions.html
Q: Can I convert an AcmeCorp document into a TeX file using the Bass-o-matic file converter?
A: Try it and see. If you did that, you'd learn the answer.
Here's the slightly longer version: try it and see. My guess is that there'll be no problems. The only potential for problems, AFAICT, is that FAT32 is a shit file system and svn won't work with it--but I don't think this is the case.
 
Old 06-29-2006, 06:33 AM   #3
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
The answer is apparently a flat no. Berkley DB are not compatible across platforms. If you use the Linux and Windows to access the same DB, you'll get data corruption errors.
 
Old 07-02-2006, 02:02 PM   #4
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
Update: Versions of Subversion 1.1 or later can use a flat file repository name FSFS. Version 1.2 or later apparently use FSFS by default. One advantage of FSFS is that you should be able to share the repository between Linux and Windows.

Unfortunately, when I tried this on a fat32 partition, I get:

svn: Can't chmod '/media/hda3/dual/duality/db/transactions/9-1.txn/rev': Operation not permitted

This only happen on Linux. Something in Subversion is apparently attempting to perform a chmod on a fat32 volume (which does absoluately nothing on a fat32). Running as root apparently bypass the problem but is not a geat workaround.

Anyone have any ideas?
 
Old 07-03-2006, 05:35 AM   #5
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Idea: if you're not accessing the repository concurrently, you could copy it to an ext2 partition, do your hacking, then copy it back to the fat32 partition. Clunky, but better than nothing.
 
Old 07-20-2006, 04:25 PM   #6
paulsiu
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
Cause located

The error message is rather deceptive. It would appear that svn is attempting to chmod on a vfat volume and failed because vfat doesn't really support permissions. What is really happening is that it is attempting to chmod the vfat volume, which is owned by root. This of course fails because yiou can't chmod a root unless you are root. This is true even if you have read and write permission to the vfat volume. The failure is not because svn does not have write permission to the vfat volume, it's because it does not have ownership of the vfat.

To get it to work, one mount it as yourself. Example:

> id paulsiu
> 1025

As root, mount the vfat drive as:

> mount /dev/hda2 /mnt/hda2 -ouid=1025

Once the drive is "owned" by you, the chmod error goes away and you can use svn properly.

Anyone know how I can set up fstab to mount a file under the user's uid? I could set it to uid=myid, but then the vfat volume will be owned by me for everyone else on the system.

Paul
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared Ram from Linux to Windows m_simin Programming 5 06-13-2005 11:19 AM
How do I let Linux see Windows Shared Dirctories Wolfy Linux - Networking 25 07-27-2004 01:53 PM
How to install Subversion(Version Control with Subversion) under RedHat Linux. netkiller Linux - Networking 1 07-01-2004 05:45 AM
Shared Windows and Linux Partition chrisfirestar Linux - Hardware 7 12-11-2003 07:58 PM
Windows and Linux shared disk jrpretz Linux - Newbie 3 07-30-2003 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration