LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-13-2006, 03:42 AM   #1
osio
Member
 
Registered: Jun 2005
Posts: 70

Rep: Reputation: 15
link two files in different partitions Operation not permitted


I would like to replicate my Firefox bookmarks in a partition to it can feed other boxes. The partition is a mounted vfat one (/etc/fstab reads: /dev/hda5 /mnt/common vfat user,defaults,umask=000 0 0)

Creating a hard link does work across partitions. I tried a symbolic link:

Quote:
$ ln -v -s ./.mozilla/firefox/9wter1xl.default/bookmarks.html /mnt/common/bookmarks.html
ln: creating symbolic link `/mnt/common/bookmarks.html' to `./.mozilla/firefox/9wter1xl.default/bookmarks.html': Operation not permitted
/mnt/common is drwxrwxrwx root root and /mnt/common/bookmarks.html doesn't exist yet.

Why is the operation not permitted?
Thank you.
 
Old 07-13-2006, 03:52 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
/mnt/common is vfat, I guess? Good luck with symlinks.
 
Old 07-13-2006, 03:55 AM   #3
osio
Member
 
Registered: Jun 2005
Posts: 70

Original Poster
Rep: Reputation: 15
Yes, /etc/fstab mounts it as vfat.
Why, is there a problem with symlinks in vfat partitions?
Is there an alternative to symlink?
 
Old 07-13-2006, 08:44 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
File is a named block of data. Symbolic link is a named block of data, containing name of another file and marked specially. First property is easily achieved on any FS, but the second fails on vfat. An alternative is maybe just copying script in .bashrc/.bash_logout (maybe you should better wrap running firefox in script: copy here - run - wait for finish - copy there)
 
Old 07-13-2006, 09:20 AM   #5
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Rep: Reputation: 15
one solution

Sorry, what do you mean by 'wrap running firefox in script: copy here - run - wait for finish - copy there'?

I setup cron job that run hourly with this
rsync -ruv --modify-window=1 --delete-after /.mozilla/firefox/*.default/bookmarks.html /mnt/vfat/bookmarks.html

Is this what you mean?

Last edited by Melsync; 07-13-2006 at 09:35 AM.
 
Old 07-13-2006, 01:47 PM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Nearly. It's one of the options, one of the best.
I meant to write script so instead of launching FireFox directly you launch the script, which copies fresh bookmarks from shared drive before launching FireFox and copies them back later, after FireFox finishes. But your solution should work also, except when you run FireFox on two machines within an hour, which is probably unreal in your conditions, right? So don't bother.
 
Old 07-14-2006, 03:30 AM   #7
osio
Member
 
Registered: Jun 2005
Posts: 70

Original Poster
Rep: Reputation: 15
Understood. If one box wants fresh bookmarks, firefox has to restart. Thanks a lot.
Osio.
 
Old 07-14-2006, 06:44 AM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, and possibly rsync has to be run - or not??
 
Old 07-14-2006, 08:27 AM   #9
osio
Member
 
Registered: Jun 2005
Posts: 70

Original Poster
Rep: Reputation: 15
Yes, basically the croned rsync refreshes the bookmark but if the user does want to have the latest ones there and then, there is no other alternative than restarting Firefox. Then the script launching Firefox that you suggested should test whether the shared bookmarks.html is accesible (if the network, samba partition are available) before rewritting the home one.
I think it is the maximum sync that can be attained.
 
Old 07-15-2006, 08:50 AM   #10
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
I guess that to refresh bookmarks you need both restart Firefox and copy bookmarks. Also, do you think about merging, not just copying over? If you have two Firefox instances with bookmarks newer than common carrier version - you'll run into trouble.
 
Old 07-15-2006, 09:16 AM   #11
osio
Member
 
Registered: Jun 2005
Posts: 70

Original Poster
Rep: Reputation: 15
merging bookmarks from different boxes or users

Quote:
Originally Posted by raskin
do you think about merging, not just copying over? If you have two Firefox instances with bookmarks newer than common carrier version - you'll run into trouble.
My problem is that I wouldn't know what to use to merge. The command 'diff', maybe?

Another problem is that I don't understand the structure of Firefox's bookmarks.html. It is not a simple <ul><li> thread.
 
Old 07-15-2006, 02:02 PM   #12
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
You don't need complete understanding, I guess diff with adding diff'ed lines where they should be (before added in other file) will work, really. But that's some processing.
 
Old 07-15-2006, 11:09 PM   #13
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Have you thought about configuring firefox to use the same profile in all cases? There are a few howtos on this, but this one should get you started: http://www.ubuntuforums.org/showthread.php?p=1251810
 
Old 07-19-2006, 01:54 PM   #14
osio
Member
 
Registered: Jun 2005
Posts: 70

Original Poster
Rep: Reputation: 15
centralised mozilla profile

Yes, instead of merging, I decided to feed the profiles of different boxes from only one by editing .mozilla/firefox/profile.ini.

I hope it works.
 
Old 07-19-2006, 04:28 PM   #15
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Umm...why not just make the symbolic link go the other way? In other words, you store bookmarks.html on /mnt/common, and you link from ~/.mozilla/firefox/adsf789213/bookmarks.html to /mnt/common/bookmarks.html.

There's no problem with creating a symbolink link pointing TO a file on a fat32 partition.

However, I don't think there exists a pleasant solution to sharing firefox's bookmarks.html on multiple computers. Sure, you can point things to share bookmarks.html or even the entire profile directory--but then that means you can only run Firefox on one computer at a time. If you leave Firefox running on one computer, and then try and run Firefox on another computer, it forces you to choose a different profile.

Basically, Firefox just isn't suited to being run in a multi-computer environment. AFAIK, there aren't any web browsers suitable for sharing bookmarks in a multi-computer environment.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"creating symbolic link" "operation not permitted" wheni Linux - Newbie 3 05-08-2011 01:36 AM
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:58 PM.

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