-
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
How to start the DE automatically? #582
Comments
You still need to |
I ran |
@TahaYassen - Did you run
as suggested earlier and reboot? It looks like it may have updated and switched active partitions since you first started. |
I ran the command again with |
You have to reboot once before remount will start working. |
Nice, it worked! For anyone in the future:
I created /etc/rc.local and chmodded it but it doesn't seem to execute on startup. Has anyone gotten startup scripts to work on ChromeOS? @DennisLfromGA I see you attempted this months ago. Any success? |
You don't have to use the trial & error method above - to determine which active kernel to modify use 'rootdev -s'. It will report the active root partition is either '/dev/sda3' or '/dev/sda5'. If it's '/dev/sda3' then your active kernel is partition 2, if it's '/dev/sda5' then your active kernel is partition 4. You can then run the 'make_dev_ssd.sh' command with the correct active kernel partition number. Also, I think the above order of events should be - 1., 2., 4., 5., 3. You need to reboot before you issue the mount command. |
I just came across this in an attempt to edit my hosts file. Great success! I wanted to confirm that @DennisLfromGA is correct that the order of @ghost's steps should be 1, 2, 4, 5, 3. |
@lightstrike - You might want to check out a few scripts I have -
Also, Chrome OS doesn't run or use the /etc/rc.local file so you may have to use a /etc/init/*.conf script to do what you want - I did. |
Thanks for script links @DennisLfromGA, I'll check them out! :-) |
Hi. I'd like verify the status of these instructions and the script. In the virtualbox integration writeup for Crouton, it involves copying the new vb udev rules to a directory on the CrOS root fs (at least, that's my interpretation). Of course that fs is ro. Before I start mucking with the partition flags and such to gain rw access, I'd like to minimize the chances of some of the problems noted above (this is on an Asus Chromebox, by the way). Any suggestions appreciated. Thanks! |
@UT99310 - Unfortunately, I don't have a Chromebox to test on but I think the problems stemmed from the I haven't heard from any Chromebox users since I modified the script to unset the flag so your on your own I guess - sorry. -DennisL |
Understood. Guess I'll back up ye ol' chroot and give the script a try. L On Mon, Apr 13, 2015 at 12:58 PM, DennisL [email protected] wrote:
|
Looks like it worked OK on my Asus Chromebox. The script did throw an error On Mon, Apr 13, 2015 at 1:07 PM, Lauren Weinstein [email protected]
|
That's great news. |
@UT99310 For the udev rules you don't have to make the system rw. /var/run is writable, however you will need to redo it on a reboot. |
Having to manually do that on reboots isn't a viable option (to me, anyway). I used /etc/udev/rules.d which is at least stable through boots. |
@UT99310 Well, I just thought I should mention. Also when other people come across this. |
Definitely. Thanks. On Tue, Apr 14, 2015 at 8:19 AM, Maurice van Kruchten <
|
Yes, that's good info. I think since probably most crouton users don't or won't remove rootfs. |
If the mount/script sequencing is such that .bashrc can routinely copy the On Tue, Apr 14, 2015 at 1:14 PM, DennisL [email protected] wrote:
|
I may be missing something, but it appears that this isn't going to work for VirtualBox loading. You need to change the kernel flags to enable module loading, and I don't see any way to do that without taking the system rw first. Is there another way? Thanks. |
@UT99310 You don't need to make the system rw to change kernel-flags. You can follow the wiki instructions or my script change-kernel-flags See the first part of the README.md for the usage. The script will also let you revert the changes of the kernel flags by dd back an old backup kernel. Also it will handle automatically the crossystem variable settings. |
I should have been more explicit. The point I was trying to make is that On Thu, Apr 16, 2015 at 12:19 PM, Maurice van Kruchten <
|
FYI if you make the system rw, you don't need to change kernel-flags. The sysfs path to disable module_locking should be visible again on a rw rootfs. |
Quick question: In the course of this testing, looks like I ended up with a On Thu, Apr 16, 2015 at 12:47 PM, Maurice van Kruchten <
|
@UT99310 - I think you can login to your Google account and then, without opening a shell in that session, open the Developer Console via <Ctrl+Alt+Forward>. Then log in as root and cd to the chronos home folder |
Bingo! Thanks! On Thu, Apr 16, 2015 at 2:59 PM, DennisL [email protected] wrote:
|
Been there, done that... ;) |
Looks like there may be more damage of a sort. Even though the partitions On Thu, Apr 16, 2015 at 3:11 PM, DennisL [email protected] wrote:
|
Have you rebooted since running the script? |
Yeah. Still getting: mount: cannot remount /dev/dm-0 read-write, is write-protected On Thu, Apr 16, 2015 at 3:29 PM, DennisL [email protected] wrote:
|
Got it rw now. Took a few more boots. Something must have been out of On Thu, Apr 16, 2015 at 3:38 PM, Lauren Weinstein [email protected]
|
@UT99310, I had a similar issue, I think, a while back with my Acer C710, which has since bit the dust. Hopefully this hasn't reared it's ugly head again... |
Oh, cool! I should have refreshed the page, I didn't see your last reply. |
There clearly were changes that had unexpected (to me) effects in the last On Thu, Apr 16, 2015 at 4:49 PM, DennisL [email protected] wrote:
|
For the record, this didn't end well. Something in the new CrOS update On Thu, Apr 16, 2015 at 4:53 PM, Lauren Weinstein [email protected]
|
I got VB running on the previous CrOS version under Crouton w/o much difficulty, but when CrOS updated yesterday I ran into trouble. In fact, I ended up unbootable and had to restore from my most recent Crouton backup. Now I'm back to the point where VB starts but I'm getting the VT-x is Disabled error (which I did not see on my previous install of VB). I'd prefer not to blow away the system again if possible. Any suggestions? Thanks! |
Got VT-x working again. Even though the kernel flags were already changed appropriately, the partition was back in a locked state -- this prevented VT-x from functioning. Unlocked partition again using the script for making root writeable -- and VT-x popped back in. |
First, I tried disable rootfs_verification with this command:
But I get this output:
So I took the computer's advice and I ran:
It seemed to work. I then did
cd etc
and then I didvim rc.local
. I enteredstartunity -b
into vim and then I tried to exit with:wq
but it says that it doesn't have permissions to save. I triedsudo
but same error.When I try to run this command again:
The computer now suggests to run:
The text was updated successfully, but these errors were encountered: