View previous topic :: View next topic |
Author |
Message |
papapenguin l33t
Joined: 20 Sep 2005 Posts: 694 Location: Bellevue
|
Posted: Sat Nov 05, 2011 7:45 pm Post subject: locked out of system on upgrade..how do I get back? [SOLVED] |
|
|
ok, so I lost my keyboard and touchpad on last upgrade...
I have X set to log into kdm, and on startup I lose the keyboard as soon as it starts...
I'm pretty sure that I have to rebuild xorg and it's dependencies...
...how do I get back into the system to do this?
thanks _________________ --------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Last edited by papapenguin on Sat Nov 05, 2011 9:54 pm; edited 1 time in total |
|
Back to top |
|
|
tclover Guru
Joined: 10 Apr 2011 Posts: 516
|
Posted: Sat Nov 05, 2011 7:51 pm Post subject: |
|
|
If you have ssh access, you could log in and... an easy way would be if you have a livecd/dvd or even an initramfs with a minimal shell: with an initramfs with minimal shell you could do something like `exec switch_root /newroot /sbin/init 2' and you'll be at console in no time (in single mode), rebuild your stuff... or just boot with a livecd/dvd and remove xdm from default runlevel. There're numerous manners to do it, just take one that fit your issue at hand. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Nov 05, 2011 7:58 pm Post subject: |
|
|
if you use grub change your kernel command line to add S at its end, and you'll boot in single mode |
|
Back to top |
|
|
papapenguin l33t
Joined: 20 Sep 2005 Posts: 694 Location: Bellevue
|
Posted: Sat Nov 05, 2011 8:28 pm Post subject: |
|
|
thanks,
Ok, I edited my kernel command line and I'm booted it single mode, but at the (none) root...not 'my' root...I'm in a read only file system...
is there anything I can do from here? or do I have to chroot with a live cd? _________________ --------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------ |
|
Back to top |
|
|
papapenguin l33t
Joined: 20 Sep 2005 Posts: 694 Location: Bellevue
|
Posted: Sat Nov 05, 2011 8:31 pm Post subject: |
|
|
I can't remember, but isn't there a way to stop X from starting (during startu) and enter at root? _________________ --------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------ |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Nov 05, 2011 8:42 pm Post subject: |
|
|
mount -o rw,remount /
and rc-update del xdm |
|
Back to top |
|
|
Aquous l33t
Joined: 08 Jan 2011 Posts: 700
|
Posted: Sat Nov 05, 2011 8:58 pm Post subject: |
|
|
Or just boot normally and press alt+sysrq+r to take control of the keyboard away from X. Then you can switch to a VT/TTY (I never understood the difference; just press Ctrl+Alt+F1) and rebuild your x11-drivers. (emerge -1 xf86-{input-evdev,video-YOUR_GPU_DRIVER}) |
|
Back to top |
|
|
papapenguin l33t
Joined: 20 Sep 2005 Posts: 694 Location: Bellevue
|
Posted: Sat Nov 05, 2011 9:53 pm Post subject: |
|
|
thanks all,
I added S to the end of my kernel command line in grub
then
Quote: | mount -o rw,remount / |
then
Quote: | papapenguin ~ # emerge x11-drivers/nvidia-drivers && emerge x11-drivers/xf86-input-evdev && emerge x11-drivers/xf86-input-keyboard && emerge x11-drivers/xf86-input-mouse && emerge x11-drivers/xf86-input-synaptics && emerge x11-drivers/xf86-video-v4l |
then revdep-rebuild
and I'm back in my system... _________________ --------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------ |
|
Back to top |
|
|
|