| View previous topic :: View next topic |
| Author |
Message |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Fri Jan 20, 2012 5:12 pm Post subject: Gentoo and Windows 7 |
|
|
Hi there. I'm completely new to Gentoo though I've had little prior experience with other Linux distros. Anyway, recently I became interested in building my own Gentoo as it seems to have a lot of promise. So while the handbook seems fairly easy to follow, I am having trouble with the partition section of the guide. See I have one disk with Windows 7 installed and the handbook only covers how to install Gentoo on a completely empty disk and then asks to delete all partitions, which I don't wanna do. So basically the question is how do I go about configuring my Gentoo partitions on a disk with Windows 7 already on it.
I have this other partition called Recovery though i'm sure this doesn't concern the issue right here.
Do I just need to create some free space through Windows and then create the partitions through the Gentoo installation?
Thanks.  |
|
| Back to top |
|
 |
Logicien Guru


Joined: 16 Sep 2005 Posts: 337 Location: Montréal
|
Posted: Fri Jan 20, 2012 6:13 pm Post subject: |
|
|
Hello,
first, save the original partitions table to a file from Linux for a reverse procedure. Be sure you can reinstall the Windows bootloader in the MBR if you decide to go back later. That can be done with the Windows installation cd, cd backup, partition restauration and Linux tools.
The partition table task consist to make free space in the last partition if possible and than use the free space to make an extended partition contigue to the last one in which you can create logicals partitions for Gentoo. You will probably have to make the extended partition where you can get the free space anyway. Windows and Linux can do that task.
By experience, it is not garanty that Windows will boot normaly after things changes in machine, specially if it is tatoo. Less trouble can come form a separate disk or computer or resign from Windows. Can be harder to sell later to a non Linux user.
Edit: some factory partitions tables setup already use all the primary partitions and make harder the task to install an other operating system. My HP netbook is an example.

Last edited by Logicien on Fri Jan 20, 2012 6:35 pm; edited 3 times in total |
|
| Back to top |
|
 |
kite14 Tux's lil' helper


Joined: 07 Nov 2006 Posts: 113 Location: Pordenone/Italy
|
Posted: Fri Jan 20, 2012 6:16 pm Post subject: |
|
|
Yes, basically you need to free up some space for your gentoo installation, resizing the Windows partition.
If you use the gentoo-based "SystemRescueCD" as installation medium (highly recommended), this step
can be semplified using its graphical tool like GParted: just boot the CD (or USB stick) and type "wizard"
to enter the graphic desktop environment.
From there select GParted to resize windows partition and create one or more partitions for gentoo.
Here you can find some guides and advices on partitioning: http://www.sysresccd.org/Sysresccd-Guide-EN-Partitioning |
|
| Back to top |
|
 |
Aquous Guru

Joined: 08 Jan 2011 Posts: 539
|
Posted: Sat Jan 21, 2012 9:15 am Post subject: |
|
|
| kite14 wrote: | | From there select GParted to resize windows partition and create one or more partitions for gentoo. | It's better to resize the system partition from within Windows itself, otherwise Windows may be rendered unbootable. |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Wed Jan 25, 2012 11:11 pm Post subject: |
|
|
Thanks for the info guys. I've managed to get further in my Gentoo assembly.
Namely I've hit a little speedbump with portage snapshot.
I downloaded the latest snapshot, but when hitting the command:
tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr
I get:
tar (child): /mnt/gentoo/portage-latest.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I am so lost here... |
|
| Back to top |
|
 |
penguin swordmaster Guru


Joined: 27 Jul 2010 Posts: 426
|
Posted: Wed Jan 25, 2012 11:35 pm Post subject: |
|
|
try
I believe you will find that portage-latest.tar.bz2 does not exist in that directory. If it does not, you will need to find where you put it the first time or download it again. _________________ There are 10 kinds of people. Those who can think in binary and those who can't. |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Thu Jan 26, 2012 12:02 am Post subject: |
|
|
All I did is go to the website, pressed D to download the latest snapshop. I've no way of knowing where it actually went. How can I look? Not exactly used to a text interface here...  |
|
| Back to top |
|
 |
bobspencer123 Guru


Joined: 19 Dec 2005 Posts: 544
|
Posted: Thu Jan 26, 2012 12:36 am Post subject: |
|
|
I would recommend that you use systemrescue cd to install gentoo as you can do it from a graphical environment which allows you to view the handbook on the same computer and you can use firefox to browse for things like downloading portage snapshots.
if you want to stay where you are you could just do
| Code: |
cd /mnt/gentoo
wget http://mirrors.rit.edu/gentoo/snapshots/portage-latest.tar.bz2
tar -jxvf portage-latest.tar.bz2 -C /mnt/gentoo/usr
|
_________________ Increasingly becoming a 2 channel audio nut! |
|
| Back to top |
|
 |
JESSEJJ89 Tux's lil' helper


Joined: 22 Dec 2011 Posts: 90
|
Posted: Thu Jan 26, 2012 4:09 am Post subject: |
|
|
Be sure to mount the appropriate partitions (boot and root) before installing stage3 and portage. I missed this my first time installing Gentoo and I had to start all over  |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Thu Jan 26, 2012 11:32 am Post subject: |
|
|
| bobspencer123 wrote: | I would recommend that you use systemrescue cd to install gentoo as you can do it from a graphical environment which allows you to view the handbook on the same computer and you can use firefox to browse for things like downloading portage snapshots.
if you want to stay where you are you could just do
| Code: |
cd /mnt/gentoo
wget http://mirrors.rit.edu/gentoo/snapshots/portage-latest.tar.bz2
tar -jxvf portage-latest.tar.bz2 -C /mnt/gentoo/usr
|
|
EDIT: alright I got Portage unpacked but now comes a section in the handbook I'm truly lost in... namely compiling the optimization flags. I've entered the File: /mnt/gentoo/etc/make.conf which I'm supposed to edit somehow, but I don't think the handbook is really giving me a clear message on what to do here. As far as I can make out, this is the part where I optimize Gentoo specifically for my PC's hardware. |
|
| Back to top |
|
 |
bobspencer123 Guru


Joined: 19 Dec 2005 Posts: 544
|
Posted: Thu Jan 26, 2012 4:17 pm Post subject: |
|
|
for use flags you can read up on this: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=2
you are somewhat lucky now that selecting a profile will take care of most general use flags on a system wide level and then you can utilize use flags on a per package basis in the file (but don't worry about this for now): /etc/portage/package.use
as suggested in the handbook this: http://www.gentoo.org/doc/en/gcc-optimization.xml can help you out with gcc optimization.
unless you want to push the limits and potentially break things stick with something simple like:
| Code: |
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
CHOST=DON"T MESS WITH THIS
MAKEOPTS="-j5" **** generally cpu cores +1 is the guide given *****
|
_________________ Increasingly becoming a 2 channel audio nut! |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Thu Jan 26, 2012 4:32 pm Post subject: |
|
|
Alright I think I've gotten the gist of making flags. Just a question:
At the bottom there is a flag called "USE="mmx sse sse2" (not written by me) I read in the handbook that these are for multimedia purpose optimizations, but I was wondering shouldn't it be in "CFLAGS="-mmx sse sse2" like that? Also if I want to optimize for 3DNow (I'm assuming this is for gaming optimization) where should I put these?
So basically my file at the moment looks like this:
CFLAGS="-02 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu" (haven't even touched this, too scared)
USE="mmx sse sse2" |
|
| Back to top |
|
 |
bigbangnet Apprentice


Joined: 11 Jun 2007 Posts: 157
|
Posted: Thu Jan 26, 2012 4:40 pm Post subject: |
|
|
For the portage problem you had before the commands can be case sensitive. So if theres a capital letter in a file be sure to enter it because it will say file not found. Compared to windows, windows dont give a crap if its a capital C or a small c, linux does and can make a man cry if you make that small mistake.
for the make.conf problem. First make sure you read the section of the handbook about make.conf which should be chapter 5. In general, it want you to use your cpu to the maximum so you can compile very fast. You could also read the Compilation optimization guide so you can have a better understanding of it.
For example, I got a quad core amd cpu so i used amdfam10 for my cflag
| Code: | CFLAGS="-march=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}" |
I didn`t put anything else that way theres less chance of problems or breakage. If your not sure about your cpu or architecture you can read this to help you choose and this guide to give you a list of options which can help you.
hope it helps you.
ps: don't be afraid to read the handbook more than once
EDIT: crap, got beaten by bobspencer123 lol _________________ I'm a noob, be gentle with me. TEACH ME |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Thu Jan 26, 2012 4:44 pm Post subject: |
|
|
| bigbangnet wrote: | For the portage problem you had before the commands can be case sensitive. So if theres a capital letter in a file be sure to enter it because it will say file not found. Compared to windows, windows dont give a crap if its a capital C or a small c, linux does and can make a man cry if you make that small mistake.
for the make.conf problem. First make sure you read the section of the handbook about make.conf which should be chapter 5. In general, it want you to use your cpu to the maximum so you can compile very fast. You could also read the Compilation optimization guide so you can have a better understanding of it.
For example, I got a quad core amd cpu so i used amdfam10 for my cflag
| Code: | CFLAGS="-march=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}" |
I didn`t put anything else that way theres less chance of problems or breakage. If your not sure about your cpu or architecture you can read this to help you choose and this guide to give you a list of options which can help you.
hope it helps you.
ps: don't be afraid to read the handbook more than once
EDIT: crap, got beaten by bobspencer123 lol |
The handbook is right in front of me at all times trust me, just having some difficulty interpreting it once in a while.
Well I put it "-march=native" so it will automatically detect my CPU type on its own. |
|
| Back to top |
|
 |
bobspencer123 Guru


Joined: 19 Dec 2005 Posts: 544
|
Posted: Thu Jan 26, 2012 5:56 pm Post subject: |
|
|
| Epiphany wrote: | Alright I think I've gotten the gist of making flags. Just a question:
At the bottom there is a flag called "USE="mmx sse sse2" (not written by me) I read in the handbook that these are for multimedia purpose optimizations, but I was wondering shouldn't it be in "CFLAGS="-mmx sse sse2" like that? Also if I want to optimize for 3DNow (I'm assuming this is for gaming optimization) where should I put these?
So basically my file at the moment looks like this:
CFLAGS="-02 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu" (haven't even touched this, too scared)
USE="mmx sse sse2" |
-march=native will include all safe cflag optimizations based on your cpu and therefore it does the heavy lifting for you.
Honestly, i wouldn't get bogged down in the compile optimizations at this point -- unless you really want to just for fun.
I would concentrate on getting a nice lean system up and running and then you can always optimize and just emerge world to take advantage of any changes. _________________ Increasingly becoming a 2 channel audio nut! |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Thu Jan 26, 2012 9:06 pm Post subject: |
|
|
This is already giving me a headache.
So now I'm here:
http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=7#kernel_modules
configuring kernel modules but the code to view available modules doesn't seem to do anything, I'm talking about
| Code: | | find /lib/modules/3.2.1-gentoo-r2/ -type f -iname '*.0' |
the 3.2.1-gentoo-r2 is the kernel I'm using.
When I enter it, it does nothing. So I don't suppose I can just skip this part?
EDIT: Ok so I THINK i entered the above code somewhat correctly because my screen looks like this:
>
>
>
>
>_
as in no "livecd linux #" just a ">" symbol there now. |
|
| Back to top |
|
 |
bobspencer123 Guru


Joined: 19 Dec 2005 Posts: 544
|
Posted: Fri Jan 27, 2012 12:36 am Post subject: |
|
|
honestly you can probably skip that step for now as udev (i believe) will autoload most necessary modules. _________________ Increasingly becoming a 2 channel audio nut! |
|
| Back to top |
|
 |
whiteghost Guru


Joined: 26 Jul 2009 Posts: 362 Location: north dakota
|
Posted: Fri Jan 27, 2012 12:39 am Post subject: |
|
|
cntrl+c to cancel your present operation.
| Code: | | find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko' | less |
you did not use whole command. modules will be .ko
and if you hand made your kernel and compiled all drivers in kernel it will not show any modules. _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Fri Jan 27, 2012 11:14 am Post subject: |
|
|
EDIT: Oh I'm really loving this.
-bash: /sbin/reboot: Input/output error |
|
| Back to top |
|
 |
bobspencer123 Guru


Joined: 19 Dec 2005 Posts: 544
|
Posted: Fri Jan 27, 2012 7:49 pm Post subject: |
|
|
sounds like something got screwed up.
Don't feel bad it took me about three attempts to successfully install gentoo when I first started out. It gets easier and you really learn a lot from you mistakes. The handbook is great because it is really detailed but sometimes you need to screw up so you can start understanding what all the commands and steps mean and do instead of simply copy and pasting commands.
If you can't get past this error I would try installing with systemrescue cd as suggested earlier. If you are on a fairly modern computer the install doesn't take long once you get it figured out. I think I can get to a bootable system in under 2 hours now. _________________ Increasingly becoming a 2 channel audio nut! |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Fri Jan 27, 2012 8:25 pm Post subject: |
|
|
You're right, I knew this wasn't going to be easy. So how do I start over anyway?
I mean at this point my screen keeps repeating:
livecd login: root (automatic login)
INIT: id "c1" respawning too fast: disabled for 5 minutes.
I can't type anything either. I've tried ctrl alt del but then it says
INIT: cannot execute "/sbin/shutdown".
Think I'm royally screwed.
For future reference, my specs are:
Intel Core2Duo 2.10Ghz
Intel GMA 4500MHD
3GB of RAM
HDD 320GB
So yeah, not state of the art but fairly modern I'd say. |
|
| Back to top |
|
 |
penguin swordmaster Guru


Joined: 27 Jul 2010 Posts: 426
|
Posted: Fri Jan 27, 2012 8:31 pm Post subject: |
|
|
The power button works very nicely when nothing else will. Although, you might want to try alt + F2 or F3 to try and get a new terminal. _________________ There are 10 kinds of people. Those who can think in binary and those who can't. |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Fri Jan 27, 2012 8:37 pm Post subject: |
|
|
| penguin swordmaster wrote: | | The power button works very nicely when nothing else will. Although, you might want to try alt + F2 or F3 to try and get a new terminal. |
Alright, so starting over again. This should be fun.  |
|
| Back to top |
|
 |
penguin swordmaster Guru


Joined: 27 Jul 2010 Posts: 426
|
Posted: Fri Jan 27, 2012 8:46 pm Post subject: |
|
|
In theory alt+<any F key> will switch between a number of shells. If you have a problem with the operating system this probably won't help, but it is useful to say run list your hardware specs on F1 and configure your kernel in F2. It will not erase what is going on in your original shell. You can get back using alt+F1. _________________ There are 10 kinds of people. Those who can think in binary and those who can't. |
|
| Back to top |
|
 |
Epiphany n00b

Joined: 20 Jan 2012 Posts: 12
|
Posted: Sat Jan 28, 2012 12:57 am Post subject: |
|
|
| So in an effort to try again with less mistakes, I've reached the part in the handbook where i'm supposed to "Configure the USE variable". Can someone explain or guide me a little in what I'm exactly supposed to be doing in this part. The handbook is leaving me in the dark a little. |
|
| Back to top |
|
 |
|