Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accidental "su"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
GlitteringBlackness
n00b
n00b


Joined: 07 Jan 2015
Posts: 3

PostPosted: Thu Jan 08, 2015 9:30 pm    Post subject: Accidental "su" Reply with quote

Hello guys (and girls), thanks for hearing me.

So i was installing gentoo AMD64 trough the handbook. following it where needed, making adjustments where i wanted them.
Now i'm in a bit of a pickle, i was at the part about chrooting into the new enviroment, when i typed "su" in chroot.
this took me out of chroot.

is there a way to undo what i did, for now i'm stuck with the following:

when i redo the mirror i get:
bash: /mnt/gentoo/etc/portage/make.conf : no such file or directory
(i also get this when i turn back into chroot)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 08, 2015 9:42 pm    Post subject: Reply with quote

GlitteringBlackness,

Welcome to Gentoo.

Your problem stems from a lack of understanding. We can help with that here. There is no shame in learning. We all do in all the time.
The su command does almost nothing as you are already root. It will have opened another shell and perhaps changed the prompt.
To exit the su shell type exit at the prompt and it will take you back to where you were.

If you are no longer in the su shell it will exit the chroot.

Your
bash wrote:
/mnt/gentoo/etc/portage/make.conf : no such file or directory
comes from the fact that you are still in the chroot.
The correct path inside the chroot is /etc/portage/make.conf.
When you chroot, the /mnt/gentoo part is thrown away - you can no longer see or work with any files outside of your growing Gentoo install.
At least, not in the shell inside the chroot.
_________________
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
GlitteringBlackness
n00b
n00b


Joined: 07 Jan 2015
Posts: 3

PostPosted: Thu Jan 08, 2015 9:51 pm    Post subject: Reply with quote

the su command took the (chroot) away in front of my terminal. and i'm really not sure what to do to continue with the handbook other then to start all over again. wich i really don't want to do again
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Jan 08, 2015 10:08 pm    Post subject: Reply with quote

GlitteringBlackness,

There is no need to start over. The contents of the chroot are still there.
If you are lost, by all means reboot.

Hint: run the passwd command. This is outside the chroot. I'll explain why in a second.

Do not partition the disk,
Do not make any filesystems - they are still there, along with the data on them.

Do repeat the filesysnem mounting steps from the handbook
Do mount /proc, /dev and eveything else you will need inside the chroot.

Do the chroot steps and you are back in the chroot.
Do not forget
Code:
env-update
source /etc/profile
and set the prompt if you want to.
Now you are back in the chroot as if you have never left.

There is a risk you will do this sequence of commands several times before your install is complete.
It is a standard Gentoo recovery process whenever your system won't boot because you broke it, or because you stopped the install before it was completed.

I suggested you change the password outside the chroot as it slows things down by having to exit the chroot to do steps you have overlooked.
The liveCD provides five Virtual Terminals called VT1..VT5. You are on VT1 now.
Ctlr-Alt-Fn will switch to VTn where you will find a prompt. You can log in as root, using the password you set above. This will give you a shell outside of the chroot.
When you switch back in VT1 again, it will be as if you have never left. Copy/paste between VTs works too.
_________________
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
GlitteringBlackness
n00b
n00b


Joined: 07 Jan 2015
Posts: 3

PostPosted: Fri Jan 09, 2015 6:40 pm    Post subject: Reply with quote

NeddySeagoon wrote:

Do repeat the filesysnem mounting steps from the handbook
Do mount /proc, /dev and eveything else you will need inside the chroot.


when i rebooted i got nothing but a flickering "-" so i rebooted from livecd.
when i do i get this message if i try to mount
mount /mnt/gentoo/proc does not exist
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 359
Location: the Netherlands

PostPosted: Fri Jan 09, 2015 7:29 pm    Post subject: Reply with quote

GlitteringBlackness wrote:
NeddySeagoon wrote:

Do repeat the filesysnem mounting steps from the handbook
Do mount /proc, /dev and eveything else you will need inside the chroot.


when i rebooted i got nothing but a flickering "-" so i rebooted from livecd.
when i do i get this message if i try to mount
mount /mnt/gentoo/proc does not exist



Better paste the exact output of any error here.


What NeddySeagoon meant to say is that you have to repeat all the mounting steps exactly as before in the handbook again.


First the steps under "mounting " here :
http://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
And only then the steps here, since before the earlier step, indeed /mn/gentoo/proc does not exist:
http://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base)


Basically, my guess is you missed:
Code:
root #mount /dev/sda4 /mnt/gentoo
root #mkdir /mnt/gentoo/boot
root #mount /dev/sda2 /mnt/gentoo/boot



Alex.


PS On a side note : It seems to me that , indeed, the new version of the handbook is confusing in this respect. It would be better to add the first 'mount' to the list of mountable locations in the handbook, since I would expect more people following the handbook for the first time might miss this first mount.......
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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