Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo and Windows 7
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Fri Jan 20, 2012 5:12 pm    Post subject: Gentoo and Windows 7 Reply with quote

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
View user's profile Send private message
Logicien
Guru
Guru


Joined: 16 Sep 2005
Posts: 337
Location: Montréal

PostPosted: Fri Jan 20, 2012 6:13 pm    Post subject: Reply with quote

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.

:lol:


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


Joined: 07 Nov 2006
Posts: 113
Location: Pordenone/Italy

PostPosted: Fri Jan 20, 2012 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aquous
Guru
Guru


Joined: 08 Jan 2011
Posts: 539

PostPosted: Sat Jan 21, 2012 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Wed Jan 25, 2012 11:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
penguin swordmaster
Guru
Guru


Joined: 27 Jul 2010
Posts: 426

PostPosted: Wed Jan 25, 2012 11:35 pm    Post subject: Reply with quote

try
Code:
ls /mnt/gentoo/

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Thu Jan 26, 2012 12:02 am    Post subject: Reply with quote

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... :? :P
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Thu Jan 26, 2012 12:36 am    Post subject: Reply with quote

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
View user's profile Send private message
JESSEJJ89
Tux's lil' helper
Tux's lil' helper


Joined: 22 Dec 2011
Posts: 90

PostPosted: Thu Jan 26, 2012 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Thu Jan 26, 2012 11:32 am    Post subject: Reply with quote

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
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Thu Jan 26, 2012 4:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Thu Jan 26, 2012 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
bigbangnet
Apprentice
Apprentice


Joined: 11 Jun 2007
Posts: 157

PostPosted: Thu Jan 26, 2012 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Thu Jan 26, 2012 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Thu Jan 26, 2012 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Thu Jan 26, 2012 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Fri Jan 27, 2012 12:36 am    Post subject: Reply with quote

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
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 362
Location: north dakota

PostPosted: Fri Jan 27, 2012 12:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Fri Jan 27, 2012 11:14 am    Post subject: Reply with quote

EDIT: Oh I'm really loving this.
-bash: /sbin/reboot: Input/output error
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Fri Jan 27, 2012 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Fri Jan 27, 2012 8:25 pm    Post subject: Reply with quote

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. :lol:

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
View user's profile Send private message
penguin swordmaster
Guru
Guru


Joined: 27 Jul 2010
Posts: 426

PostPosted: Fri Jan 27, 2012 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Fri Jan 27, 2012 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
penguin swordmaster
Guru
Guru


Joined: 27 Jul 2010
Posts: 426

PostPosted: Fri Jan 27, 2012 8:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Epiphany
n00b
n00b


Joined: 20 Jan 2012
Posts: 12

PostPosted: Sat Jan 28, 2012 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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