Inkscape.org
Beginners' Questions Inkscape does not see my second hard drive
  1. #1
    bassman99.9 bassman99.9 @bassman99.9

    When trying to open a file or save in Inkscape, my second hard drive is not listed as an option.ย  I can't even find it in a search.ย  The drive shows up just fine in my file manager.ย  I am using Ubuntu 20.04

  2. #2
    ronburk ronburk @ronburk

    Where's it mounted? What are its permissions set to?

  3. #3
    Xav Xav @Xav๐Ÿ‘น

    Also, how was Inkscape installed? The Snap version, in particular, imposes restrictions on what paths are accessible (a Snap limitation, not an Inkscape one).

  4. #4
    bassman99.9 bassman99.9 @bassman99.9

    Ronbuk: Installed on my main drive that has Ubuntu.ย  Never set any sort of permissions.ย  This is my own computer, so I have full admin permissions

    Xav: I installed through Ubuntu Software installer.ย  Source does say Snapcraft.io.ย  Is that what you mean by Snap version?

  5. #5
    Xav Xav @Xav๐Ÿ‘น
    bassman99.9

    I installed through Ubuntu Software installer. Source does say Snapcraft.io. Is that what you mean by Snap version?

    It certainly sounds like it's the Snap version. I've only ever installed Snaps from the command line, but I wouldn't be surprised if the Ubuntu Software Installer is providing the Snap version. One of the design goals of Snaps is to confine applications to prevent them accessing resources they shouldn't: this generally means they can only access files in your home directory or on removable drives mounted to /mnt or /media. It would be nice if there was a user-friendly way to open access to other directories, but that's apparently a lot harder to do than it sounds, from the comments I've seen made by a Snap developer.

    If this is likely to present a significant limitation to you, I would try reinstalling that version and instead installing the 'deb' version from the Inkscape PPA: https://launchpad.net/~inkscape.dev/+archive/ubuntu/stable

    Note that doing this will replace the 0.92.x version from the repositories, if you have that installed - but it doesn't sound like you have.

  6. #6
    Nathan Lee Nathan Lee @ainsleo

    I think we can already enable it for Inkscape

    Enabling the hard drive/external media should be an option in the snap store (probably an option for each app, under Permissions?)

    You should be able to connect it manually in the terminal using sudo snap connect inkscape:removable-media

  7. #7
    Xav Xav @Xav๐Ÿ‘น
    ๐Ÿ‘

    @ainsleo The way I read the OP was that they have a second (internal?) drive that's not mounted to /mnt or /media - in which case I don't believe there's currently a good way to enable access to specific paths, or to the whole filesystem, when using Snap.

    That said, they didn't answer ronburk's question about where it's mounted (actually I think they misunderstood the question), so perhaps they do mean an external drive that they're plugging in, and which should hopefully get mounted to a Snap-accessible path.

    ย 

  8. #8
    ronburk ronburk @ronburk
    *

    I've fearfully avoided learning about snap, so decided to just give it a little try.

    Ubuntu 20 offers Inkscape 1.0 as a snap, but 0.92.5 as a "normal" install, so one can see the appeal of going that way. I installed the snap and ran it, producing the following console output:

    ron@OptiPlex-9020:~/src/embedv8/v8$ inkscape
    Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
    Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
    Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
    Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
    Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
    Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
    Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description"

    ** (org.inkscape.Inkscape:102225): CRITICAL **: 07:28:35.920: check_range: assertion 'spell->priv->speller != NULL' failed

    (org.inkscape.Inkscape:102225): GLib-GIO-WARNING **: 07:28:41.173: Error creating IO channel for /proc/self/mountinfo: Permission denied (g-file-error-quark, 2)

    Since the OP was unaware of mounting the disk (yay -- Linux desktop slowly gets less geekier!), I would guess it got mounted in /media. From inside Inkscape, I used File->Open to try to traverse /media. I got a "Could not read the contents of media" error messagebox.

    After trying the suggested sudo snap connect inkscape:removable-media and restarting Inkscape, I was able to access that directory.

  9. #9
    ronburk ronburk @ronburk
    *

    @bassman99.9 could you post the output of running the df command?

  10. #10
    bassman99.9 bassman99.9 @bassman99.9

    @Xav - my data drive is an internal drive.ย  It is listed in Files as /dev/sdb1

    ย 

    @ronburk - Imgur link to results from 'df' command:ย  https://imgur.com/a/cLfsP4S

  11. #11
    Xav Xav @Xav๐Ÿ‘น

    The df output shows two key things, I think:

    1. You've definitely installed the snap version (/dev/loop17 near the bottom of the list)
    2. Your second drive doesn't appear to be mounted - there's no /dev/sdb1 showing in the list.

    Can you open the second drive via the file manager, then re-run 'df' and see if it appears in the output.

  12. #12
    bassman99.9 bassman99.9 @bassman99.9
    *

    @Xav After I run df with my drive open in file manager, it shows it listed under /media/jc/Data

    ย 

    I am still learning Ubuntu and Linux, so a lot of this is new to me.

  13. #13
    Xav Xav @Xav๐Ÿ‘น

    As the drive gets mounted under /media it should be available from within Inkscape once you enable the "removable media" connection for the snap. Quit Inkscape, then in a terminal run the following:

    sudo snap connect inkscape:removable-media

    Then launch Inkscape and see if you can access the drive. If this works, going forward you may have to mount the drive in your file manager before it becomes available to Inkscape.

    ย 

    Note that this limitation is specifically a snap thing, not an Inkscape issue, or even a more general Linux thing. More commonly in Linux you would set things up so that the second drive is always mounted at boot time: if it's mounted to a location accessible by the snap (i.e. somewhere in your home directory) then you would probably be able to access it. The details of how to do that vary a little between distributions and releases, but usually involve editing the /etc/fstab file, either with a text editor or via a graphical tool, The exact details are outside the scope of an Inkscape forum, but a bit of googling should get you to some answers. This link describes one way to do this for 18.04, and I suspect the situation is probably the same for 20.04:

    https://www.fosslinux.com/4216/how-to-automount-hard-disk-partitions-in-ubuntu.htm

    ย 

    If the command above doesn't work, and you don't want to permanently mount the drive in your home directory, I suggest removing the snap package and installing the PPA version I linked to earlier.

  14. #14
    bassman99.9 bassman99.9 @bassman99.9

    @Xav - Ok, I was able to access the drive from Inkscape.ย  It was buried pretty deep in the file structure.ย  I had to select '+ other locations', then 'Computer', then 'jc' (my username), then 'Media', and my data drive showed up.

    I wouldn't mind mounting the drive to my home directory.ย  How can I accomplish that?

  15. #15
    Xav Xav @Xav๐Ÿ‘น
    *
    bassman99.9

    I wouldn't mind mounting the drive to my home directory. How can I accomplish that?

    See the link I posted in my previous message. Basically you create a folder within your home directory, and use that as the mount point. As your username is "jc", your home directory is almost certainly /home/jc. If you create a "data" folder in there, then you need to set the mount point for the drive to be /home/jc/data.

    If the link above doesn't help, perhaps due to changes in 20.04, then you'd be better off seeking help on a Ubuntu forum, where you're more likely to get feedback from users familiar with the specifics of your Ubuntu version (although I run Ubuntu, I use the Mate version and am still on 18.04, so can't directly reproduce the UI you have).

  16. #16
    bassman99.9 bassman99.9 @bassman99.9

    Thanks.ย  Looks like I've got things going.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Inkscape does not see my second hard drive