Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
locked out of system on upgrade..how do I get back? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sat Nov 05, 2011 7:45 pm    Post subject: locked out of system on upgrade..how do I get back? [SOLVED] Reply with quote

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
View user's profile Send private message
tclover
Apprentice
Apprentice


Joined: 10 Apr 2011
Posts: 298

PostPosted: Sat Nov 05, 2011 7:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4270

PostPosted: Sat Nov 05, 2011 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sat Nov 05, 2011 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sat Nov 05, 2011 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4270

PostPosted: Sat Nov 05, 2011 8:42 pm    Post subject: Reply with quote

mount -o rw,remount /
and rc-update del xdm
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 646

PostPosted: Sat Nov 05, 2011 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sat Nov 05, 2011 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum