Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't boot gentoo rescue mode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
itchanddino
n00b
n00b


Joined: 24 Aug 2007
Posts: 19

PostPosted: Sun Sep 02, 2007 4:24 pm    Post subject: Can't boot gentoo rescue mode Reply with quote

Hello, every time I try to boot into rescue mode, I get the following error:
/bin/bb: can't access tty; job control turned off.

I already read these posts:
https://forums.gentoo.org/viewtopic-t-569975.html
https://forums.gentoo.org/viewtopic-t-562677.html
https://forums.gentoo.org/viewtopic-t-538121.html

One of them fixed it by disabling safe mode (not really a solution), another fooled around with his grub.conf and didn't say what he did, and I'm not sure what happened to the third guy.
The listing that will not properly boot is:

title=Gentoo Linux 2.6.22-r5 (rescue)
root (hd0,0)
kernel /boot/kernel-2.6.22-gentoo-r5 root=/dev/sda3 init=/bin/bb

Does anyone know how to fix this? I can type su, but what I can do is very limited. Thanks!

Edit: I can boot regularly just fine, it's just rescue mode which doesn't work.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54330
Location: 56N 3W

PostPosted: Sun Sep 02, 2007 5:26 pm    Post subject: Reply with quote

itchanddino,

Thats an emergency provide a few shell tools to get you going.
All rescue mode does is mounts root and gives you a busybox root shell.
After that you are on your own.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Habbit
Apprentice
Apprentice


Joined: 01 Sep 2007
Posts: 237
Location: 3.7137 W, 40.3873 N

PostPosted: Sun Sep 02, 2007 5:44 pm    Post subject: Reply with quote

NeddySeagoon wrote:
All rescue mode does is mounts root and gives you a busybox root shell

In fact, in order to protect you from failures in baselayout or dynamic linking issues in the coreutils/grep/whatever, the /bin/bb (busybox) is statically linked, and commands such as ls, cp, mv, grep, etc. are really builtins
_________________
Code:
~ $ objdump -d ./habbit_mind
90      xchg %rax, %rax
EB FD   jmp $-3
Back to top
View user's profile Send private message
itchanddino
n00b
n00b


Joined: 24 Aug 2007
Posts: 19

PostPosted: Sun Sep 02, 2007 9:10 pm    Post subject: Reply with quote

Alright, so I shouldn't worry about the messages? Thanks again!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54330
Location: 56N 3W

PostPosted: Sun Sep 02, 2007 9:33 pm    Post subject: Reply with quote

Habbit,

My busybox isn't static and I don't think its the defualt either.
It would be more use for a rescue if it were.
Code:
$ emerge busybox -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/busybox-1.7.0  USE="pam -debug -make-symlinks -savedconfig (-selinux) -static" 0 kB

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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