# No access to USB disks/sticks as working dir

**URL:** <https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761>\
**Category:** ROOT\
**Tags:** bug\
**Created:** [January 26, 2025, 10:41am UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761 "2025-01-26T10:41:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![EwanEwart](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/90db22/32.png) [@EwanEwart](https://root-forum.cern.ch/u/EwanEwart)\
**Post date:** [January 26, 2025, 10:41am UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761/1 "2025-01-26T10:41:31Z")

</div>

root [1] .!ls  
ls: cannot open directory ‘.’: Permission denied  
fine : ~/root\_source\_macros  
faulty: /media/user/seagate-usb-drive  
faulty: /media/user/Luxor\_stick  
installation: Ubuntu 24.10 snap container

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [January 26, 2025, 3:44pm UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761/2 "2025-01-26T15:44:31Z")

</div>

Hi,

Welcome to the ROOT Community!  
I am sorry to read you cannot access the USB stick. ROOT does not seem to be involved. Could you please have a look to some online documentation about the way your setup handles containers and mounts?

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [January 26, 2025, 9:07pm UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761/3 "2025-01-26T21:07:30Z")

</div>

The snap requires admin approval to access /media or /mnt

Try `sudo snap connect root-framework:removable-media`

---

<div class="post-metadata">

**Author:** ![EwanEwart](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/90db22/32.png) [@EwanEwart](https://root-forum.cern.ch/u/EwanEwart)\
**Post date:** [January 27, 2025, 9:33am UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761/4 "2025-01-27T09:33:34Z")

</div>

> [@James-Carroll](#):
>
> sudo snap connect root-framework: removable-media

Solved ! It isn’t the ROOT framework, indeed. It’s the snap container configuration. Thank you for your support.

---

<div class="post-metadata">

**Author:** ![EwanEwart](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/90db22/32.png) [@EwanEwart](https://root-forum.cern.ch/u/EwanEwart)\
**Post date:** [January 27, 2025, 9:37am UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761/5 "2025-01-27T09:37:37Z")

</div>

The command is correct, and more needn’t be done.  
One shouldn’t just copy it, though.  
Unwanted chars may creep into the string.  
Just enter the command, and everything will be fine.  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [January 27, 2025, 10:48am UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761/6 "2025-01-27T10:48:30Z")

</div>

Sorry, that was my phone’s autocorrect inserting a space automatically, I’ve updated it now 🙂

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 10, 2025, 10:49am UTC](https://root-forum.cern.ch/t/no-access-to-usb-disks-sticks-as-working-dir/62761/7 "2025-02-10T10:49:17Z")

</div>

Closed on February 10, 2025, 10:49am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
