LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-02-2005, 11:29 AM   #1
ps2cho
Member
 
Registered: Jun 2005
Posts: 36

Rep: Reputation: 15
Gentoo Root question[solved]


Now, if i emerge something as root not using the live-cd will it do it properly? I mean cos none of the directories work when im logged in as root NOT using the live-cd

#dir
and nothing shows up...
cd mnt
no such file or directory

why doesnt it work like this ?

Last edited by ps2cho; 07-02-2005 at 12:23 PM.
 
Old 07-02-2005, 11:34 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
If you have it installed Gentoo correctly it will work.

/usr/portage is where your portage tree is.
 
Old 07-02-2005, 11:53 AM   #3
ps2cho
Member
 
Registered: Jun 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Does the drive have to be mounted to do it?
everytime before i reboot with the live-cd i do this:
#exit
(to get out of the chroot)
#umount /mnt/gentoo
#reboot

is this right?
 
Old 07-02-2005, 12:02 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I think I'm confused... are you trying to do this from your booted install? or from the install CD?
 
Old 07-02-2005, 12:05 PM   #5
ps2cho
Member
 
Registered: Jun 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Im trying to do it from the booted install.
i login as root
enter pw

#dir
shows nothing.

i try lets say cd usr

it says directory not found
 
Old 07-02-2005, 12:09 PM   #6
Baix
Member
 
Registered: Jun 2004
Distribution: Gentoo, LFS, Slackware
Posts: 203

Rep: Reputation: 30
Quote:
Now, if i emerge something as root not using the live-cd will it do it properly?
Yes, when you reboot into your new system you should be able to install programs and run the system without the livecd.

Quote:
I mean cos none of the directories work when im logged in as root NOT using the live-cd

#dir
and nothing shows up...
cd mnt
no such file or directory

why doesnt it work like this ?
Dir (why don't you use 'ls' by the way?) doesn't show anything because the directory your in (probably /root?) is empty. 'cd mnt' doesn't work because its trying to find 'mnt' relative to the directory you are in, since a directory called 'mnt' is not in the directory you're in you won't be able to get there. Try "cd /mnt" to get to the mount directory you're looking for.

Last edited by Baix; 07-02-2005 at 12:10 PM.
 
Old 07-02-2005, 12:11 PM   #7
ps2cho
Member
 
Registered: Jun 2005
Posts: 36

Original Poster
Rep: Reputation: 15
ah that did it, but the gentoo directory is not in mnt, where has it gone ?

cd /mnt
cd gentoo
its not there anymore???

I need to mount /dev/hda3 to /mnt/gentoo so i can chroot it and actually edit files!
 
Old 07-02-2005, 12:18 PM   #8
Baix
Member
 
Registered: Jun 2004
Distribution: Gentoo, LFS, Slackware
Posts: 203

Rep: Reputation: 30
When you were using the live cd, you were chroot'd into the root (/) directory of your new system which was mounted from the cd. Now that you've rebooted you no longer need to chroot in because you've gone directly into the new install.

The gentoo directory was a temporary directory you used to mount the the root (/) directory on, if you do "cd /" you'll find that you're already in what was formerly the /mnt/gentoo directory.

Hope I'm being clear here

EDIT: Maybe this will help you get settled in: Linux Tutorial

Last edited by Baix; 07-02-2005 at 12:20 PM.
 
Old 07-02-2005, 12:23 PM   #9
ps2cho
Member
 
Registered: Jun 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Ahhhh ! Thats it.
cd /
dir
Now its listing everything!
Yay now i can actually get going and edit some portages i want to install now.
Thanks guys
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reiserfsck root partition through SSH (Gentoo) Mil0 Linux - General 3 08-09-2005 12:13 PM
Gentoo> determinig root device Ezzy Linux - Newbie 10 04-17-2005 12:34 PM
Root drive not appending correctly in Gentoo/XP Dualboot Ahad Linux - Distributions 8 05-20-2004 09:59 PM
LVM on root: Kernel Panic: Gentoo Sutekh Linux - General 2 08-17-2003 08:22 PM
Question about Gentoo Slinger Linux - Distributions 3 12-10-2002 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration