Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open usb drive on crouton #4330

Closed
Jonyk56 opened this issue Aug 14, 2020 · 5 comments
Closed

open usb drive on crouton #4330

Jonyk56 opened this issue Aug 14, 2020 · 5 comments

Comments

@Jonyk56
Copy link

Jonyk56 commented Aug 14, 2020

this issue has since been closed, but if you'd like to see how to do such as what the title says, please refer to: https://github.com/dnschneid/crouton/wiki/Access-external-drive-from-crouton

@DennisLfromGA
Copy link
Collaborator

DennisLfromGA commented Aug 14, 2020

In CrOS external media shows up under /media/removable/ so check there to make sure it's mounted.
On my system in the croutn chroot it didn't show up under /media/removable/ but it did show up under /var/host/, see below:

(bionic)dennyl@localhost:~$ ll /media/removable
lrwxrwxrwx. 1 root root 25 Aug 13 14:58 /media/removable -> /var/host/media/removable/
(bionic)dennyl@localhost:~$ 
(bionic)dennyl@localhost:~$ mount|grep sda
/dev/sda on /var/host/media/removable/Pop_OS 20.04 amd64 type iso9660 (ro,nosuid,nodev,noexec,relatime,utf8,uid=1000,gid=1000)
(bionic)dennyl@localhost:~$ 
(bionic)dennyl@localhost:~$ ll /var/host/media/removable/
total 2.0K
dr-xr-xr-x. 1 dennyl dennyl 2.0K Jul  2 16:58 'Pop_OS 20.04 amd64'/
(bionic)dennyl@localhost:~$ 

Hope this helps,
-DennisLfromGA

@Jonyk56
Copy link
Author

Jonyk56 commented Aug 15, 2020

ok, so, i have seen this aswell..... any time i try to access it, no matter what, i always get 'permission denied'
Screenshot_2020-08-14_20-27-35

Edit: sorry for late reply, but, I have been very busy all day

Edit 2: Sudo works, but how can i do this so i don't needa use sudo, i needa use git/jetbeans on the usb, and that will mess everything up with sudo

@DennisLfromGA
Copy link
Collaborator

DennisLfromGA commented Aug 15, 2020

@Jonyk56,

Check out the ownership and permissions of the root directory in the external media with:

  • ls -ld /var/host/media/dstorage
  • or just if it works for you -
  • ls -ld /media/removable/dstorage

You may have to change at least the ownership to 'jonyk5' with:

  • sudo chown jonyk5:root /media/dstorage

You can use the '-R' option to chown to change the ownership on all subdirectories too.
If the permissions aren't set to executable in the directories you need then use chmod to change them too.

Also, if /media/removable/dstorage is mounted 'noexec' you may need to remount with exec permissions.

Hope this helps,
-DennisLfromGA

@Jonyk56
Copy link
Author

Jonyk56 commented Aug 15, 2020

ok, also, one quick question, do i do the chown in crouton, or shell?

Edit: i figured it out, I'ma be adding a bit of a wiki post here to make it easier for folks like me =P

@Jonyk56
Copy link
Author

Jonyk56 commented Aug 15, 2020

the entirety of this is explained here:

https://github.com/dnschneid/crouton/wiki/Access-external-drive-from-crouton

@Jonyk56 Jonyk56 closed this as completed Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants