Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Restarting the computer after finishing chapter 8
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
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Mon Mar 22, 2004 4:02 am    Post subject: Restarting the computer after finishing chapter 8 Reply with quote

I've spent like 12 hours straight (OK, I know it's no big deal) on installing stage 1 Gentoo 2004.0. It was late, my wife wanted to use Windows, so I've shut down the installation.

:roll:

Well, back to work today, I was going to re-run the failed command where I was stuck yesterday, see the error message and ask for enlightement here. I've mounted root and boot partitions, and then 8O
Code:
-bash: emerge: command not found

Why, why, WWWHHHYYYYYY????

How can I recover from shutting down the computer? :oops: I guess I already figured out what was wrong with
Code:
emerge grub
,
but the thing is I can't even start the thing anymore...
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Mar 22, 2004 4:24 am    Post subject: Re: Restarting the computer after finishing chapter 8 Reply with quote

dmvianna wrote:
I've mounted root and boot partitions, and then 8O

... and then you need to chroot.
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Mon Mar 22, 2004 5:28 am    Post subject: Reply with quote

Code:
chroot: /bin/bash: No such file or directory


This is actually weird, because

Code:
# ls /bin/bash
/bin/bash


bash is a file (???), and not a directory, so I don't know how to chroot after that. :(
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Mon Mar 22, 2004 6:12 am    Post subject: Reply with quote

OK, got it from https://forums.gentoo.org/viewtopic.php?t=151527&highlight=chroot. I had to specify the file system when mounting
Code:
mount -t reiserfs /dev/hda6 /mnt/gentoo

, all from /mnt/gentoo. Strangely enough, I could not run chroot, env-update or source except from the same window I mounted reiserfs... Anyway, thanx for setting me in the right track. Now to the next problem...
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Mon Mar 22, 2004 12:59 pm    Post subject: Reply with quote

OK, this is for n00bs like me:

How to get back on track again:

Everywere they say "remount, chroot", fine, but how???

Here's more or less how:

Code:
#mount /dev/hdXX /mnt/gentoo [XX is your / hd]
#mount /dev/hdYY /mnt/gentoo/boot [YY is your /boot hd]
#mount -t proc none /mnt/gentoo/proc
#chroot /mnt/gentoo /bin/bash
#env-update
#source /ect/profile


Actually I got an error message after the #source command last time, but except for that, I got what I wanted, that is, finding my installation files in my HDs after shutting down the computer. I've finished the handbook, and now I'm trying to figure out why the normal boot isn't working as should. Wish me luck! :mrgreen:
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Mon Mar 22, 2004 1:56 pm    Post subject: Reply with quote

This is actually a FAQ, albeit in a different form. http://www.gentoo.org/doc/en/faq.xml#doc_chap3_sect7 contains the instructions how to "rescue" your installation.
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