-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Auto-mounting of USB stick failed #27
Comments
If you run There's no reason the trackpad click shouldn't work; that's odd. Does that happen every time you start xfce for the first time? When mounting a USB drive, I imagine you get a "permission denied" message? I've been looking at that off and on, but haven't figured out what's missing yet. You can safely mount things manually using Moving a chroot is as simple as moving a folder. If that's your only chroot, then something along the lines of |
As for the mounting a USB drive: try creating a file called
And then try mounting again, and see what happens. |
My version of crouton complains on -V as illegal option. Thanks for the hint how to move the installation. I will give a try to a new version later today. The physical click on the touchpad actually works. The tapping and tapping with two fingers do not work when I do a fresh start from crosh. Without two-finger tapping I do not know how to get a right-click. After I logout from xfce and start the session again from the same shell the touchpad gestures are working. When switching forth and back between Chrome OS and xfce sometimes the tapping stop working. The manual mount of the usb drive works normally. My stick is mounted by Chrome OS as kulagin@localhost: I also tried to restart the xfce session but again the automounting does not work. By the way, mount with no arguments does not give me anything. |
Sweet, that means you should definitely upgrade your chroot with the latest version of crouton. I also just pushed a fix for an issue you were about to run into when running from a USB drive. Tapping not working at first is even stranger. That probably deserves a separate bug. mount with no arguments won't give you anything because the chroot has a different /etc/mtab that doesn't really reflect reality. Check the permissions of the |
Thanks for a new version of crouton, it worked just fine with the USB installation of a chroot. Tapping not working at first is still persistent. As for a USB drive auto-mount, I could not get 10-mount-crosh.pkla method to work. The USB drive icon appears on the desktop, but if I try to open it in the file manager the latter will try to do it forever without particular error messages. My /media directory is empty in the chroot. However, I am quite fine with manual mounting of a usb drive, it works just fine. A question about something different. Is there a (simple) way to pass the content of the clipboard between Chrome OS and a chroot? Say if I want to pass some piece of memory (text or simple graphics) in the clipboard from Chrome OS to a chroot or back, what should I do. So far I could not get that work. |
Are you just double-clicking it on the desktop, or are you going to Thunar (the file manager) and selecting it from the list on the left? As for clipboard, there's currently no method to sync (Chromium OS doesn't even use the standard X11 clipboard), but there's probably a way to interface with it via dbus or something (the hidden benefit of Chromium using separate processes for everything is that whatever it uses to communicate between tabs, we can use as well...in theory). I'll look into it sometime soon. |
I try to open the drive in Thunar from the list on the left. |
Could you try to collect some data for me on the auto-mounting issues?
Thanks; hopefully we can track this down quickly. |
chronos@localhost / $ sudo startxfce4 |
kulagin@localhost: ** (polkitd:25027): WARNING **: skipping unknown tag <_description> at line 15 ** (polkitd:25027): WARNING **: skipping unknown tag <_message> at line 16 |
That all looks normal. I'll look into this more. Thanks! |
Wait a sec, that's not actually normal ( |
Ah, it turns out that since ARM uses the Xephyr approach, the USB stick gets mounted by Chromium OS the moment you attach it, and udisks misinterprets the fact that it's already been mounted. I think this can be fixed by doing a shared-bind-mount of the /media directory, but it'll require a few steps of changes. |
Same error here, David, Acer C7 running your latest, as of this morning. Fantastic work, man, thank you!!! (note that this is not an ARM lappie) |
Okay! I've prepared a solution that I believe makes external drive mounting and sharing between Chromium OS and the chroot sane, but it could use more testing before I merge it into master. If the problem is bothering you, grab this release of crouton and update your chroot ( The main behavior is as follows:
Good luck! If it seems like all is good, I'll merge it into master in the coming days. |
Dude! This works like a charm on my Acer C7! Fantastic work! I can On Wed, Mar 6, 2013 at 6:16 PM, David Schneider [email protected]:
|
Updated to support udisks (precise) as well as udisks2 (quantal). |
Works for me on a Pixel with quantal. |
This also works for me on Samsung ARM chromebook. |
Merged into master. Let the bug reports start rolling in! |
I've been having trouble using a USB stick that is formatted as EXT4 (npm needs symlinks) in ChromeOS. A ChromeOS doc says EXT4 is 'supported' (whatever that means), but it says otherwise when I plug it in. I don't much care about it working form ChromeOS since I only really want to use it inside Crouton, but I guess the latter needs the former. |
@davidmaxwaterman You are probably on dev channel, ext2/3/4 support is dropped in chromeos File app. See #954 . |
Ah, thanks a lot :)
The scripts are there though, and chmod +x :
What did I miss? |
You do have the scripts on chromeos in /usr/local/bin? So not in the chroot /usr/local/bin. |
doh :) Yes, that did it. Awesome! Thanks :) |
Forgot to mention, you will get a notification "Whoa, there. Be careful" if you have notifications enabled for the Files app, although the device is unmounted and you remove the disk. Maybe the new commit will fix this in the future, but I haven't had a change to dig through the code yet. BTW if you notice any other issues with the scripts I appreciate if you mention them on #954 |
Hi, I wonder if you have a reference for the dropping of extfs support? How can I complain or suggest they rethink? My feeling is this is yet another case of them ignoring the needs of developers, and I'd like to be able to add my +1 to the voice against such moves. Is there a 'bug' or 'issue' on this? Where are such things documented? |
The only reference I got is https://code.google.com/p/chromium/issues/detail?id=315401 , however I don't think it will help to complain. They dropped it mainly for security reasons which I can understand, not that I am happy about it. At least we still have support for mounting it on the command line and with some tricking also in the File app by using loop devices. |
Well, thanks for that. Yes, I think that's it. I do think it is a case of they being over-zealous since the security issue quotes was hypothetical, or so it seemed to me. I can understand, but if they don't agree to reinstate it (unlikely) there are other solutions. They can at least not make it so fiddly to get working inside crouton. |
[was: Installation of chroot to USB stick failed]
I tried to install xfce chroot on the external USB stick (not SD card) using
sudo su
cd /home/chronos/user/Downloads/
sh -e crouton -t xfce -p /media/removable/USB\ Drive/
but the installation failed with the messages:
.........
I: Extracting xz-utils...
I: Extracting zlib1g...
Moving bootstrap files into the chroot...
Preparing chroot environment...
x11 target does not work on ARM. Substituting in xephyr.
Installing brightness into the chroot...
Installing host-dbus into the chroot...
Installing croutonpowerd into the chroot...
Installing croutonwheel into the chroot...
Installing croutonwm into the chroot...
Installing xinit into the chroot...
x11 target does not work on ARM. Substituting in xephyr.
x11 target does not work on ARM. Substituting in xephyr.
Installing startxfce4 into the host...
Installing enter-chroot into the host...
Installing delete-chroot into the host...
Installing mount-chroot into the host...
Installing unmount-chroot into the host...
/tmp/crouton.BML/host-bin/enter-chroot: 167: readlink: Argument list too long
/tmp/crouton.BML/host-bin/enter-chroot: 167: mountpoint: Argument list too long
/tmp/crouton.BML/host-bin/enter-chroot: 167: mkdir: Argument list too long
Unmounting /media/removable/USB Drive//chroots/precise...
localhost Downloads #
I noticed that similar messages appeared in issue #21 in somewhat different context.
The installation to the local disk was fine. Playing with this installation I noticed that the click on the touchpad does not work when I just start xfce with sudo startxfce4. I need to cycle between Chrome OS and xfce using Ctrl-Alt-Shft--> in order to get it working.
Also, I realized that I am not able to mount usb drives when in xfce. Is it the feature of this chroot or just my problem? It would be nice to have usb drives available...
At some point (when the issue with external installation will be fixed) I'd like to move the chroot from the local drive to a usb drive (or SD card). What would be a reasonable way to do that?
The text was updated successfully, but these errors were encountered: