Symlink Advice


Recommended Posts

OK, I've got Windows 7 on one HDD and Kubuntu 9.10 on a different HDD. I'm trying to get my Firefox profile in Kubuntu to use the places.sqlite bookmarks in my Windows 7 Firefox profile.

Both profiles are for Firefox 3.5.5 and have a places.sqlite file which stores history, bookmarks, etc

Can I write a symlink in the Kubuntu Firefox profile that would make it utilize the places.sqlite file in the Windows 7 Firefox profile?

If so, any guidance or hints as to what the syntax would look like?

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/
Share on other sites

I'm sure you've got a good reason for doing so, but wouldn't xmarks be better? Used to be called FoxMarks

Anyway...

First you need to have your Win7 partition mounted.

Second, the command would look something similar;

ln [options] source destination

ln -s /path/to/source/places.sqlite /path/to/destination/places.sqlite

Edit:

Careful doing this, as when you open Firefox it copies places.sqlite to places.sqlite-journal and zeroes the .sqlite file. And does vice versa when closing.

So if Firefox crashes in Windows and you don't re-open it, when you switch to Kubuntu the file will essentially be empty.

Edited by YaZoR
Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591885838
Share on other sites

ln [options] source destination

ln -s /path/to/source/places.sqlite /path/to/destination/places.sqlite

Thanks for the speedy response! I'm currently using Xmarks and it works fine - I'd just rather not have to rely on something having an internet link to sync my bookmarks on the same computer.

I'll try doing the link when I get home! Thanks for the Caution too!

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591885892
Share on other sites

It does work for me, 2 Linux and one windows. But sometime, new file are created with the wrong permissions. chmod 777 -R is needed sometime.

Elv13, thanks for the confirmation and advice but I have no clue where I'd put that in the syntax below, but feel free to educate me further.

Ok, here's what I'm thinking I'll need to do to get my Linux profile to use my Windows places.sqlite file (little confused on which is 'source' and which is 'destination' :unsure: ). Can one of you Linux veterans give it a look and let me know if I've got it right? Do I need to use sudo for this?

Open terminal

# Get to the right directory

cd /home/<me>/.mozilla/firefox/<profile>.default

# Rename the original file for backup in case I screw it up

rename places.sqlite bak_places.sqlite

# Create the symbolic link so linux profile uses windows profile places.sqlite

ln -s /media/NTFS_Windows_7/Users/<me>/AppData/Roaming/Mozilla/Firefox/Profiles/<profile>.default/places.sqlite places.sqlite

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591902620
Share on other sites

You can share the complete .mozilla folder between different OSes (windows and Linux, in this senario). But when one operating system create a new file, it will set the write permissions to itself. In both windows and Linux, only the current user can write in his/her personal files. The "chmod" command is the linux command to ajust permissions. You will have to give read and write permissions to those files. The "safe" line would +rw, but most peoples give "every" rights to file when they have those kind of problems. "777" is the short command to "everything for me", "everything to my user group" and "everything for everyone else". Its binary:

1 = read, 1 = write and 1 = execute. So:

7 = 111 = read, write and execute

6 = 110 = read and write

5 = 101 = execute and read

4 = 100 = read only

3 = 011 = write and execute (you will never see this one)

2 = 010 = write

1 = 001 = execute

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591903418
Share on other sites

# Rename the original file for backup in case I screw it up

rename places.sqlite bak_places.sqlite

No such command rename (unless you have it aliased). To rename you use the move command (mv). But you don't want to rename it you want to copy it (cp) to another filename so you have the original

# Create the symbolic link so linux profile uses windows profile places.sqlite

ln -s /media/NTFS_Windows_7/Users/<me>/AppData/Roaming/Mozilla/Firefox/Profiles/<profile>.default/places.sqlite ./places.sqlite

I'd put a ./ infront of the destination link for best practice since you've cd into it. Simply means 'current directory'

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591904080
Share on other sites

UPDATED - Open terminal

# Get to the right directory

cd /home/<me>/.mozilla/firefox/<profile>.default

# Rename the original file for backup in case I screw it up

cp places.sqlite bak_places.sqlite

# Create the symbolic link so linux profile uses windows profile places.sqlite

ln -s /media/NTFS_Windows_7/Users/<me>/AppData/Roaming/Mozilla/Firefox/Profiles/<profile>.default./places.sqlite places.sqlite

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591904388
Share on other sites

I'd put a ./ infront of the destination link for best practice since you've cd into it. Simply means 'current directory'

No, for symlink it is better to avoid relative path. "./" will not be converted, it will stay as it is, so if the symlink is interpreted the wrong way, it will brake, and it will not will full path.

Salgoth:

ln -s /media/NTFS_Windows_7/Users/<you>/AppData/Roaming/Mozilla/ /home/<you>/.mozilla

Don't mess with profiles, its much easier to share the whole thing.

Link to comment
https://www.neowin.net/forum/topic/848486-symlink-advice/#findComment-591905310
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Samsung Galaxy Z Fold 8, Flip 8, Z Fold Wide: Everything you need to know The ONLY thing I need to know is the price, which I know will be way higher than I (and most people) are willing to pay for a phone... so basically nothing here I need to know. PS: Nice job getting that Apple reference to a non-existent and unrevealed product as "competition" in there. Cheque is in the mail.
    • Well I really think the repasting helped if your higher clocks have returned, maybe the next thing to look at is if there is a problem with your case airflow? I guess this because your 3080 has returned to optimal state, but is still staying too warm, which might suggest it was thermal throttling before you repasted, of which the only logical conclusion could be outside factors.
    • Samsung Galaxy Z Fold 8, Flip 8, Z Fold Wide: Everything you need to know by Hamid Ganji Galaxy Z Fold 7 - Image via Samsung The next generation of Samsung foldables is set to be unveiled next month at the second Unpacked event of the year. Samsung’s 2026 foldables are not expected to offer significant upgrades over their predecessors, with the Korean firm instead focusing on design refinements and conventional upgrades such as faster processors and better cameras. However, Samsung is reportedly planning to unveil an all-new passport-style foldable this year to rival Apple’s first foldable iPhone, which is expected to debut this September. Here’s a roundup of everything we know about Samsung’s upcoming foldable devices ahead of their official debut. When can we expect Samsung’s new foldables? The Galaxy Z Fold 7 and Z Flip 7 series were unveiled in July, and Samsung is expected to maintain this timeframe in 2026. Based on previous reports from Korean sources, Samsung will hold its Unpacked event on July 22 in London, UK, to pull back the curtain on the Galaxy Z Fold 8 series. The devices are also expected to hit the shelves a few weeks after launch. However, Samsung has yet to announce an official date. A new naming scheme? One of the most interesting changes we might see this year is a new naming scheme for Samsung’s latest foldables. SamMobile reported that since Samsung is expected to unveil three foldables this year, it has adopted a new naming strategy to simplify product identification for customers. Accordingly, the standard Galaxy Z Fold 8 will reportedly be called the Galaxy Z Fold 8 Ultra and will serve as the direct successor to last year’s Galaxy Z Fold 7. The “Ultra” suffix suggests the phone could feature higher-end specifications, such as additional rear camera modules. Samsung’s new passport-style foldable is expected to carry the Galaxy Z Fold 8 name without any suffix. This model is reportedly equipped with two rear cameras. No major changes are expected for the Flip model. Galaxy Z Fold 8 Ultra and Z Flip 8 anticipated specs Rumors over the past few months suggest Samsung is preparing several upgrades for its upcoming foldables, although the devices may continue to rely on larger batteries and faster charging speeds rather than dramatic design changes. The primary focus this year is expected to be the Galaxy Z Fold 8 and its wide-screen design. Galaxy Z Fold 8 Ultra official CAD renders - Image via AndroidHeadlines Here are the anticipated specifications for the Galaxy Z Fold 8 Ultra based on previous leaks: 6.5-inch outer display and 8-inch inner display, 120Hz refresh rate, and 2,600 nits peak brightness Snapdragon 8 Elite Gen 5 processor, paired with 12GB or 16GB of RAM and 256GB, 512GB, or 1TB of storage 4.1mm thickness when unfolded and a weight of 210g 200MP main camera, 50MP ultrawide camera, 10MP or 12MP telephoto camera, 10MP cover camera, and 10MP selfie camera 5,000mAh battery with 45W wired charging Android 17 and One UI 9 As for the Galaxy Z Flip 8, the device is not expected to be a major departure from its predecessor, although it could become slightly slimmer. Expected specifications include: Snapdragon 8 Elite Gen 5 or Exynos 2600 processor 12GB of RAM with 256GB and 512GB storage options 6.9-inch Dynamic AMOLED 2X inner dispaly and 4.1-inch Super AMOLED outer dispaly 50MP main camera, 12MP ultrawide camera, and 10MP selfie camera 4,300mAh battery with 25W wired charging Android 17 and One UI 9 Samsung’s foldables are also expected to launch with Gemini Intelligence, Google’s AI suite for automating tasks in Android ecosystem. Moreover, given current memory and component costs, some Galaxy Z Fold 8 Ultra and Z Flip 8 variants could see a price hike. Galaxy Z Fold 8 adopts a wide-screen design The centerpiece of the upcoming Unpacked event could be the Galaxy Z Fold 8, previously rumored as the Galaxy Z Fold Wide. This model adopts a passport-style form factor and is expected to compete directly with Apple’s iPhone Fold. Galaxy Z Fold 8 official CAD renders - Image via AndroidHeadlines Here’s what to expect: 7.6-inch primary OLED display and 5.4-inch cover display, 120Hz refresh rate, 2,600 nits peak brightness, and 4:3 aspect ratio Snapdragon 8 Elite Gen 5 processor, 12GB or 16GB of RAM, and 256GB, 512GB, or 1TB storage options 4,800mAh battery with 45W wired charging 50MP main camera, 50MP ultrawide camera, and 10MP selfie camera Android 17 and One UI 9 The three new foldable phones are unlikely to be the only devices unveiled at Samsung’s Unpacked event. The company is also expected to introduce the Galaxy Watch Ultra 2 and the Galaxy Watch 9 series.
    • Thanks
  • Recent Achievements

    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
    • One Month Later
      agatameier earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      +Edouard
      196
    3. 3
      PsYcHoKiLLa
      140
    4. 4
      ATLien_0
      88
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!