Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about DevFS and Live (Bootable) CDs [answered]
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
Ridley
n00b
n00b


Joined: 07 Aug 2003
Posts: 50
Location: Orlando, FL

PostPosted: Fri Jan 30, 2004 7:59 am    Post subject: Question about DevFS and Live (Bootable) CDs [answered] Reply with quote

I am installing Gentoo via PCLinuxOS, a liveCD based on MandrakeMove. (I am doing this because this and MandrakeMove are the only distros I can get to load and read my SATA drive [yes, I tried a 2.6 experimental LiveCD])
The Installation Guide says
Quote:
Knoppix users (and people that install Gentoo from an installation medium that does not use DevFS) should now bind-mount the /dev structure. If you use one of our LiveCDs you can skip this step.

Code listing 3: Bind-mounting /dev

# mkdir /mnt/gentoo/dev
# mount -o bind /dev /mnt/gentoo/dev


Whereas the Alternative installation method HOWTO says
Quote:
...At this point, you can pick up with the standard install documentation at step 6. However, when you're asked to mount the proc system, issue the following commands instead:

Code listing 3.1: Bind-mounting two important filesystems

# mount -o bind /proc /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev

(I didn't follow the other steps because PCLinuxOS lets you login as root and uses /root as root's home directory)

My Question is, how do I determine whether or not the system which I am using to install gentoo uses the /dev filesystem and which method do I use (once I find out) in order to successfully and correctly chroot into the new gentoo system?
[/quote]

My Hardware:
P4 on an ABIT IS7 Board (Intel ICH5)
512M Ram
80G SATA


Last edited by Ridley on Fri Jan 30, 2004 6:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ridley
n00b
n00b


Joined: 07 Aug 2003
Posts: 50
Location: Orlando, FL

PostPosted: Fri Jan 30, 2004 8:46 am    Post subject: Reply with quote

Typed dmesg and found
Code:
Mounted devfs on /dev

So I guess that answers my question, however I found no instances of "proc" in the dmesg, so I don't know what to do about that.
If anyone has any ideas or completed a similar installation, I would appreciate any input
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Fri Jan 30, 2004 4:25 pm    Post subject: Reply with quote

Well, you're always going to mount proc. I don't think it really matters if you bind mount your existing proc, or just to a
Code:
# mount -t proc /mnt/gentoo/proc

Either way it should have the same effect. In the UNIX world, proc isn't really a filesystem, its just a handy way of representing system information as if they were files, so you can do things like cat and grep them.
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
Ridley
n00b
n00b


Joined: 07 Aug 2003
Posts: 50
Location: Orlando, FL

PostPosted: Fri Jan 30, 2004 5:30 pm    Post subject: Reply with quote

Thanks for the reply
should I mount proc before or after I chroot?
_________________
Linux sucks twice as fast and 10 times more reliably, and since you have the source, it's your fault. -Ca1v1n
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Fri Jan 30, 2004 5:38 pm    Post subject: Reply with quote

you should mount everything you're going to mount to /mnt/gentoo/whatever before you chroot.
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
Ridley
n00b
n00b


Joined: 07 Aug 2003
Posts: 50
Location: Orlando, FL

PostPosted: Fri Jan 30, 2004 5:53 pm    Post subject: Reply with quote

Ok, before I emerged the system without mounting proc, and there was no proc folder in /mnt/gentoo (which, after chrooting was / of course)
Will this be a problem later, or did I just not have my processes represented as files during that time, therefor I couldn't grep them etc?
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Fri Jan 30, 2004 6:01 pm    Post subject: Reply with quote

I honestly don't know what that will do to you. If any of the ebuilds try to look at proc, they would complain, so if you have completed the install without error, you should be okay.
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
Ridley
n00b
n00b


Joined: 07 Aug 2003
Posts: 50
Location: Orlando, FL

PostPosted: Fri Jan 30, 2004 6:59 pm    Post subject: Thanks Reply with quote

Had a power outage sometime after the emerge completed, so i don't know if I had errors. I guess my best bet is to continue as normal, and if I run in to any problems with packages/programs, I'll know I probably have toi re-emerge the package... or everything. Thanks though
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