LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2009, 09:30 PM   #1
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool Help to Install Gentoo !!!


I was installing gentoo on my box , thru graphical mode , after creating specific partition (7GB) , i was supposed to perform mount operation .

In the form of mount options ,selected from a combo box that its /dev/sda2 which is this 7GB ,and filesystem as ext3 , i've done mount point : / , mount options :/mnt/gentoo , i was not sure whether this was correct or not any way i get the info as , gentoo not installed on this partition .
When i changed both mount point as well as mount options as '/'an error pops up saying u need to mention mount at / ?

I cudnt figure what this error , and why it occured ?
Can anybody help me out
Thanks in advance !!!!!!!
 
Old 03-26-2009, 10:18 PM   #2
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Need to know what steps you've finished.. and how far your into the install.

You say graphical..? Are you using the Gentoo livecd..? If so I would try a chroot install instead. Its more reliable and will prevent any further portage problems. You can download the latest stage3 autobuilds and portage snapshots from there mirrors.

I would use a livecd to create partitions needed. Then chroot install. Here is an example of boot partition and root partitions.

Code:
e.g.  

Boot /dev/sda1
Root /dev/sda2
swap /dev/sda3

"Assuming you have made the directories with mkdir and extracted the current Stage3 into /mnt/gentoo"

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

# mount -t proc none /mnt/gentoo/proc

# mount /dev/sda2 /mnt/gentoo

# mount /dev/sda1 /mnt/gentoo/boot

# chroot /mnt/gentoo /bin/bash

# env-update

# source /etc/profile
EDIT: here is an example link of a current gentoo Stage3 autobuild http://gentoo.mirrors.easynews.com/l...86/autobuilds/

Last edited by manwithaplan; 03-26-2009 at 10:35 PM.
 
Old 03-27-2009, 09:40 PM   #3
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool

Quote:
Originally Posted by manwithaplan View Post
Need to know what steps you've finished.. and how far your into the install.

You say graphical..? Are you using the Gentoo livecd..? If so I would try a chroot install instead. Its more reliable and will prevent any further portage problems. You can download the latest stage3 autobuilds and portage snapshots from there mirrors.

I would use a livecd to create partitions needed. Then chroot install. Here is an example of boot partition and root partitions.

Code:
e.g.  

Boot /dev/sda1
Root /dev/sda2
swap /dev/sda3

"Assuming you have made the directories with mkdir and extracted the current Stage3 into /mnt/gentoo"

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

# mount -t proc none /mnt/gentoo/proc

# mount /dev/sda2 /mnt/gentoo

# mount /dev/sda1 /mnt/gentoo/boot

# chroot /mnt/gentoo /bin/bash

# env-update

# source /etc/profile
EDIT: here is an example link of a current gentoo Stage3 autobuild http://gentoo.mirrors.easynews.com/l...86/autobuilds/

Yes definitely i've working with livecd . I had clicked graphical version frm that desktop and created partition from first provided form and second this mount form appeared to get filled , this invoked problem.
I was supposed to install in /dev/sda2 will that above method can be used to get installed ?

OK so i need to create boot partition and root partition , right? Why this is used for Ubuntu doesnt made me to do so , a hand of help would be handy !!!!!!!
 
Old 03-27-2009, 10:58 PM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
No problem. I only posted an example of a chroot install. If I where you I would not use Gentoo Livecd. Use your Ubuntu Livecd.

And you dont need a boot partition. I was posting this as an example

Steps that need to be taken to chroot install of Gentoo, from Ubuntu, or any other x86 distro.

1) Reference Gentoo install handbook for questions, disregard ambiguity.

2) Use gparted to make 2 partitions one swap about equal too your ram, & one primary root partition (the rest of the disk you wan to use for Gentoo)
Code:
/dev/sda1  (ROOT) /
/dev/sda2  (SWAP)
3) Download latest Stage3 autobuild and save it, which can be found here.

4) Download latest portage build and save to the same folder, it can be found here.

5) make directories for chroot install
Code:
# mkdir /mnt/gentoo
6) Copy Stage3 too /mnt/gentoo directory, and then:
Code:
# cp -v stage3*.tar.bz2 /mnt/gentoo
# cd /mnt/gentoo
# tar -xvf stage3*.tar.bz2
7) Copy Portage too /mnt/gentoo/usr, and then:
Code:
# cp -v poratge*.tar.bz2 /mnt/gentoo/usr
# cd /mnt/gentoo/usr
# tar -xvf portage*.tar.bz2
8) Mount drives and bind devices, and copy over resolv.conf
Code:
# cp -L /etc/resolv.conf /mnt/gentoo/etc/
# mount /dev/sda1 /mnt/gentoo
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
9) Chroot into new enviroment
Code:
# chroot /mnt/gentoo /bin/bash
# env-update 
# source /etc/profile
# export PS1="(chroot) $PS1"
10) Edit your make.conf file, you'll need to reference the Gentoo handbook for further details on your make.conf. Here is a good example site you can use for reference http://www.gentoo-install.com/install

11) set locales reference handbook from link above in step 1

12) setup timezones

13) setup network interfaces

14) edit fstab file to add swap and your root partition

15) install kernel (I suggest genkernel & gentoo-sources) reference install handbook in step 1

16) install grub & edit, or edit existing grub install to add gentoo. located in /boot/grub/menu.lst reference handbook in step 1

17) create root password, and add user w/ groups, example
Root passwd
Code:
# passwd  [enter passwd for root twice]
# adduser -g users -G wheel,cron,cdrom,users,audio,video -m <yourname>
# passwd <yourname> [enter passwd twice]
18) reboot & check for grub and kernel errors, make sure the grub parameters are correct from install. You might have to re-chroot to correct errors. (hint: write some bash scripts to automate these steps)

19) emerge X enviroment of choice, reference http://www.gentoo-install.com/frontpage for additional help


That pretty much sums up an install... any questions just ask. I truly hope you read the Gentoo chroot install guide. And check out the additional websites I refer too for any help. Also Gentoo has a great install forums help. There quick too answer your questions about installing.

cheers

Last edited by manwithaplan; 03-28-2009 at 01:59 AM.
 
Old 03-28-2009, 01:43 AM   #5
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool

Quote:
Originally Posted by manwithaplan View Post
No problem. I only posted an example of a chroot install. If I where you I would not use Gentoo Livecd. Use your Ubuntu Livecd.

And you dont need a boot partition. I was posting this as an example

Steps that need to be taken to chroot install of Gentoo, from Ubuntu, or any other x86 distro.

1) Reference Gentoo install handbook for questions, disregard ambiguity.

......

cheers
OK will follow every step buddy , when i try to get Stage3 link isnt working . But i have livecd of gentoo which i've downloaded , can u help me out .

I have made space of 7GB for gentoo in /dev/sda2. The mount options is the only problem i'm facing , if its solved i think everything will be fine ..

Thanks for help man

ANy way i'll try u said ..

Last edited by vibinlakshman; 03-28-2009 at 01:54 AM.
 
Old 03-28-2009, 02:04 AM   #6
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
The link is fixed, it should work now.

I am suggesting is that you start over completely. Because I have know idea where you left off with the livecd install. And besides you will have a much harder time trying to update Gentoo from a gui install. You'll run into multiple problems

That's why I suggest using my simple guide to start over using your livecd to do a chroot install instead. More time consuming, but you'll get a better and up to date Gentoo install. Your errors will be minimal.

Take note, the first time I installed Gentoo it took several try's. With the link fixed, I'd follow the handbook and my guide and also use those other links as a reference.

Happy Gentoo'ing

Last edited by manwithaplan; 03-28-2009 at 03:51 AM.
 
Old 03-29-2009, 06:05 AM   #7
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool

Quote:
Originally Posted by manwithaplan View Post
The link is fixed, it should work now.

I am suggesting is that you start over completely. Because I have know idea where you left off with the livecd install. And besides you will have a much harder time trying to update Gentoo from a gui install. You'll run into multiple problems

That's why I suggest using my simple guide to start over using your livecd to do a chroot install instead. More time consuming, but you'll get a better and up to date Gentoo install. Your errors will be minimal.

Take note, the first time I installed Gentoo it took several try's. With the link fixed, I'd follow the handbook and my guide and also use those other links as a reference.

Happy Gentoo'ing
One doubt , plz forgive if i'm wrong , why is this stage3 and other is used .. Is it replaced for livecd ,or this is can be used only with livecd ?, this different steps can be done from my Ubuntu itself , right?
 
Old 03-29-2009, 06:38 AM   #8
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
If you have two computers use one to bring up the Gentoo Handbook and any other info you may need.

Download and burn the latest minimal cd, and start the install. As has been said, Gentoo will take some time to install and get working as you would like. The first time I installed Gentoo it took me about 4 weeks to get the system how I wanted it. My last install took me about three days (a record for me) to get a fairly good working system.

I would say use the genkernel to start, then on a later install compile your own kernel. Take some time to read up on how to setup your /etc/make.conf and the USE flags.

I can say one thing for Gentoo, it helps a person learn, oh and if the handbook says something like "go get some coffee" it's going to be awhile before the next step.
 
Old 03-29-2009, 03:33 PM   #9
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
I wouldn't use the minimal, cd and use another computer. No need for that. Use a Ubuntu, Sabayon, or Mint, or any other distro's livecd. Better yet, if you have a USB device its much faster. There you can browse the web, and search google to get you answers. It takes me on average about 5 hours too get a good distro going. Thats with emerging gnome-light & and addign extras. I have my hardware down tight. I compile kernels in just a few minutes.

If you send your hardware specs, I could give you a sample make.conf file to use. Then when your ready for an X windows environment I have a couple of templates that can be edited to fit your computer. Keep the make.conf file small at first then grow it as you emerge a desktop.

"Thin too Win"

Here an example of a good starting point.
Code:
ACCEPT_KEYWORDS="x86"
CHOST="x86-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
PORTAGE_NICENESS="8"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia"           #pick your vid card
FEATURES="parallel-fetch"
LINGUAS="en"                   #Whatever languages you want to support

USE="X bzip2 threads -ldap multilib"

Last edited by manwithaplan; 03-29-2009 at 03:34 PM.
 
Old 03-30-2009, 10:00 PM   #10
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Talking

Quote:
Originally Posted by manwithaplan View Post
I wouldn't use the minimal, cd and use another computer. No need for that. Use a Ubuntu, Sabayon, or Mint, or any other distro's livecd. Better yet, if you have a USB device its much faster. There you can browse the web, and search google to get you answers. It takes me on average about 5 hours too get a good distro going. Thats with emerging gnome-light & and addign extras. I have my hardware down tight. I compile kernels in just a few minutes.

If you send your hardware specs, I could give you a sample make.conf file to use. Then when your ready for an X windows environment I have a couple of templates that can be edited to fit your computer. Keep the make.conf file small at first then grow it as you emerge a desktop.

"Thin too Win"

Here an example of a good starting point.
Code:
ACCEPT_KEYWORDS="x86"
CHOST="x86-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
PORTAGE_NICENESS="8"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia"           #pick your vid card
FEATURES="parallel-fetch"
LINGUAS="en"                   #Whatever languages you want to support
http://mail.google.com/mail/?shva=1#inbox/120558c1945f2298
USE="X bzip2 threads -ldap multilib"
Plz clarify this too sir , coz i wont land in trouble , can i perform all these version from my Ubuntu itself !!!!!
 
Old 03-30-2009, 11:05 PM   #11
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
The make.conf file is key to the success of your Gentoo install. It is very important. I listed above in my previous post in step10, on examples to get a good starting point of a good make.conf file.

I posted just an example of one of my make.conf files, for you to use as a starting point and reference to start emerging packages and building your Gentoo box.

First I can tell your confused at where to start. So I want you to list your hardware specs for me.

1) your processor type

2) How many partitions you use for install & if there any other linux distro's installed

3) What steps have you taken following the Gentoo handbook guide? And if you have referenced my guide?

If you have more trouble.. and I am always looking to help. I am soon working on re-writing an install script for beginners. Also going to start a blog. To reference simple install errors that we all encounter with installing Gentoo.

As we know all the Gentoo handbook is so ambiguous that it drives the new Gentoo users crazy (it did me at first) with unanswered questions. That's why they have a great Gentoo install forum to help.


Tell me step by step how you want to install gentoo? I am currently doing an install from a Ubuntu livecd following the instructions I have above.

Your more then welcome to PM me in my profile. I am usually online. Click on my name and there is the info to contact me through msn messenger, I use pidgen. So If you need step by step walkthrough there is even rdesktop through VNC. easy stuff... do it all the time..

Last edited by manwithaplan; 03-30-2009 at 11:07 PM.
 
Old 04-01-2009, 09:29 PM   #12
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool

Quote:
Originally Posted by manwithaplan View Post
The make.conf file is key to the success of your Gentoo install. It is very important. I listed above in my previous post in step10, on examples to get a good starting point of a good make.conf file.

I posted just an example of one of my make.conf files, for you to use as a starting point and reference to start emerging packages and building your Gentoo box.

First I can tell your confused at where to start. So I want you to list your hardware specs for me.

1) your processor type

2) How many partitions you use for install & if there any other linux distro's installed

3) What steps have you taken following the Gentoo handbook guide? And if you have referenced my guide?

If you have more trouble.. and I am always looking to help. I am soon working on re-writing an install script for beginners. Also going to start a blog. To reference simple install errors that we all encounter with installing Gentoo.....

..
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 01)
02:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
02:06.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
02:0e.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
08:00.0 Network controller: Broadcom Corporation BCM4312 802.11a/b/g (rev 01)


Is this about processor info u needed , i dont knw hw to retrieve it , i just googled and got "lspci"
Partition /dev/sda2 .. 7GB
I've in /dev/sda1 .. FAT32 for win
/dev/sda5 .. 34 GB for Ubuntu

Last edited by vibinlakshman; 04-01-2009 at 09:31 PM.
 
Old 04-02-2009, 03:53 AM   #13
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Sorry my machine has been down for updates...

lspci... isnt actually what I was saying, but its useful

In the make.conf file in gentoo, you need to know the processor type.
Code:
e.g. core2 dou, opteron, pentium4, amd
Also what kind of video card.

I can help build your make.conf file. Though when it comes to kernel compile and others it is recommend to follow gentoo's handbook. Go here to this site http://www.gentoo-install.com and use it as an example along with the handbook to get you going.

I am rebuilding a Gentoo install from a new Ubuntu install. I am trying out the new beta Juanty on ext4.

I downloaded the updated autobuild from a Gentoo mirror, and then mkdir and extract the stage3 file into there. make all my mounts and chroot. then extract portage and emerge --sync. Then edit my make.conf file. Then emerge -DuNav world. Then I edit my make.conf file again and add gnome USE flags and emerge gnome.

Its all about your make.conf file and USE flags. I can share you my templates I use. Or just go the site I posted above, it has a great reference to USE flags for KDE and Gnome.
 
Old 04-03-2009, 09:28 PM   #14
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Cool

Quote:
Originally Posted by manwithaplan View Post
Sorry my machine has been down for updates...

lspci... isnt actually what I was saying, but its useful

In the make.conf file in gentoo, you need to know the processor type.
Code:
e.g. core2 dou, opteron, pentium4, amd
Also what kind of video card.

I can help build your make.conf file. Though when it comes to kernel compile and others it is recommend to follow gentoo's handbook. Go here to this site http://www.gentoo-install.com and use it as an example along with the handbook to get you going.

I am rebuilding a Gentoo install from a new Ubuntu install. I am trying out the new beta Juanty on ext4.

I downloaded the updated autobuild from a Gentoo mirror, and then mkdir and extract the stage3 file into there. make all my mounts and chroot. then extract portage and emerge --sync. Then edit my make.conf file. Then emerge -DuNav world. Then I edit my make.conf file again and add gnome USE flags and emerge gnome.

Its all about your make.conf file and USE flags. I can share you my templates I use. Or just go the site I posted above, it has a great reference to USE flags for KDE and Gnome.
Its OK , can i have a luk of ur make.conf file and that USE fags plz , i'll build mine accordingly and post it for correction ..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Gentoo install CD doesn't install gentoo ! doraimom Linux - Distributions 5 03-30-2006 09:52 AM
Dual G5 PowerPC: Install Gentoo/Gentoo on OSX? MadSkillzMan General 9 06-29-2005 03:17 PM
gentoo file manager install issues (not Gentoo) windeath Fedora 2 03-01-2004 08:17 PM
How to install pppd on new Gentoo install. l0f33t Linux - Distributions 2 09-06-2003 08:53 AM
Gentoo Install RonB Linux - Newbie 7 08-03-2003 11:00 AM


All times are GMT -5. The time now is 03:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration