Score:1

Access Files on shared partition from within an Application in a Dual Boot Setup

in flag

I recently switched to Linux Ubuntu 20.04 in a dual boot scenario for the sake of videogaming in a restricted hardware setting.

I have Windows on my large 1TB SSD, and Ubuntu on another SSD, and they both share a partition for media such as music, videos, photos and of course documents.

Therefore I created Links in the /home directory that redirect to the shared folders on the shared partition. Using the GNOME File app, this seems to work rather flawless, but it's the other applications that keep stirring things up.

Ie, when I want to use the Signal Desktop App to share some files, I click on the "add"-button and end up with the view of the folder structures below. screenshot signal upload window The links appear to be broken in the left column, and the Bookmarks in the left column that also should direct to the shared partition within the "Documents"-Folder do not work. In particular, the Links are interpreted as files rather than folders. It seems that the application doesnt understand that there is another partition it should be able to access.

Another example with similar effects would be the foobar2000 music player that I cant get to add the music files on the shared partition. It doesnt even show up in the app's file manager, and neither do the links in the /home directory.

Overall, this is an annoying situation. How can I make these third party programm get that there is a partition full of fancy stuff for them to access?

Only silverlight here is the necessiated use of the fantastic bandcamp website in order to get some music pumping, shout out ;-)

I'm happy for any advice, thank you!

ChanganAuto avatar
us flag
I think both apps mentioned are snaps and what you're seeing is the consequence of the characteristic snap confinement. Try searching for both in Ubuntu Software, open each respective page and you should see a big red "Permissions" button. Use it to enable mass storage support and that should give you access to anything under /media or /mnt as well which should cover your needs. A separated data partition and links is a sound and smart strategy (and makes you a commendable above average user) but it doesn't work for snaps.
Peter Sanctus avatar
in flag
Well, thanks for flattering me :) snaps seem like a whole new rabbit hole to go down to. I did what you suggested and checked the box "Read/Write files on removable storage devices", which comes closest to what you described, and I think that Ubuntu views all partitions as external which can be auto-mounted by suited protocols. However, the problem persists, at least with the shared partition, which, following some tutorial, I mounted at /data instead of /media. Should I just remount the partition? Does the snap confinement also happen when I use the `sudo apt-get install`-command?
ChanganAuto avatar
us flag
Only userspace and /media and /mnt for snaps I'm afraid. And traditional debs aren't confined but there's at least one exception where the deb actually installs a snap: Chromium.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.