corbinlc / gnuroot

151 stars 29 forks source link

USB Devices #60

Open AngryStyro opened 9 years ago

AngryStyro commented 9 years ago

First off, I just want to say what a great package GNURoot and Wheezy is, it is exactly what I need to complete my Computer Science homework at home, without worrying about installing a full Linux distro on my laptop.

I was recently just playing around on my device (It is a Rockchip 3188 based TV box), trying to install some packages I had on a usb drive. I thought I had installed all of the packages I need to do this in my Rootfs, but I can't seem to access the drive. When I use the "lsusb" command, it returns nothing. I tried mounting the device manually using "mount -t usbdevfs none /proc/bus/usb", but tells me Permission Denied. Any ideas?

Thanks!

ckuethe commented 9 years ago

I'm guessing that it's because gnuroot is a fake root environment. Inside you think you're running as uid=0, but the real/host environment sees you as the gnuroot user.

You can see this by running "top" in gnuroot (which will say that root is running it) and while that's running connect via "adb shell" and checking to see who's running top. For me, that user is"u0_a164"