Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Major Help Wanted: Installing From Existing Ubuntu
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
1337455 10534
n00b
n00b


Joined: 10 Dec 2007
Posts: 12

PostPosted: Fri Dec 21, 2007 11:53 pm    Post subject: Major Help Wanted: Installing From Existing Ubuntu Reply with quote

Ubuntu is running on my computer, and I very much want to try Gentoo (http://uncyclopedia.org/wiki/Gentoo, was hooked). I have made a previous post asking about the details of building Gentoo, but that doesn't worry me as much as the process required to get to that state does. The directions at (http://www.gentoo.org/doc/en/altinstall.xml) are vague, and I need pointers.
Firstly, I have enough experience with Linux to do most things with the terminal (mkdir, cd, mv etc. etc.) and I'm not scared of editing sensitive files. Second, the DVD wont boot for me, so I am choosing this alternate method.

So this is what I really am stuck on;
I have parted (the recommended partitioner), and the extracted files from the Gentoo FullDVD.iso. Em, do I resize /dev/sda1 (my one and only primary partition)? Yes? Then what do I do??
The instructions go on about Mininux, but from what I understood that step is unnecessary if you can resize and unmount your / (which I can do with gparted (which is parted for GNOME with a GUI)).
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Sat Dec 22, 2007 12:34 am    Post subject: Reply with quote

The only purpose of the minix steps are to get a bootable floppy with parted. If you've already got a bootable CD with gparted, then feel free to use that instead to resize /dev/sda1.
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Sat Dec 22, 2007 12:46 am    Post subject: Reply with quote

Heh. You sound exactly like me. I installed Gentoo directly from Ubuntu as well. Now, I'm hoping your road to getting Gentoo is a lot smoother than mine, because I'll be honest, it was HELL, but I persevered, and now I've got a working system, with still a whole lot of bugs to work out. It took ME three attempts to finally get it right, each time better than the last.

Anyway, I put all that there because I can relate to your route of installing gentoo, and to your apparent experience with linux before wanting to try gentoo (i.e. not much :P)

That said, don't bother with the CDs or whatnot. If you have an internet connection, start here:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=4

Happy Linuxing, and I'll keep an eye to give ya help if I can (although I am a noob, so we'll see how much *I* can actually help :P)

EDIT: Oh, and keep your Ubuntu install around so you have a fall-back and a medium to install from. I know the handbook does the partitioning thing by wiping the slate clean. DON'T DO THAT. At least not yet. What *I* did when installing gentoo was create the following partitions:

/boot
/
swap
extended
Ubuntu

Can't remember how I managed that while keeping ubuntu on, but that was a good starting point. Be sure to give your root partition about 20 GB too. I made the mistake of alloting only <5 GB for it, and consequently, a few days ago, had to get rid of my ubuntu install in order to resize my root partition. Luckily I didn't use ubnutu for too much though.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Sat Dec 22, 2007 2:06 am    Post subject: Reply with quote

My last 3 gentoo installs have been on Dell laptops with ubuntu pre-installed, and in each case I used parted and a bootable CD to shrink the ubuntu just like "1337455" is doing :)
Back to top
View user's profile Send private message
1337455 10534
n00b
n00b


Joined: 10 Dec 2007
Posts: 12

PostPosted: Sat Dec 22, 2007 4:39 pm    Post subject: Reply with quote

Right, so I have 1 major Ubuntu partition (which I do aim to keep around for a while) that needs to be shrunken. After I resize, to say, half my HDD, I have to make a /boot, /, swap, and root for Gentoo. Apply a FS to each, activate the swap, then Mount.

After I have done all of this (hypothetically) I still have a working Ubuntu. So, I boot into Ubuntu and follow the steps from the normal handbook about installation!

Thank-you so much!
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Sat Dec 22, 2007 11:59 pm    Post subject: Reply with quote

Here is another suggestion for your filesystem layout, based on what I have done:

1. ubunto /, shrunk
2. ubuntu swap, unchanged but now shared with gentoo
3. gentoo /, new
4. shared /home, new

You don't really have to have /boot as a separate partition on gentoo any more than you do with ubuntu.
If you already had one with ubuntu, I'd suggest sharing it, but keeping /boot dir inside the big / partition is ok too.

Swap is swap, don't need to create another.

I like to share my user files between both distros, and keep them separate from both
so I can redo either root partition without having to restore all my user files from backups.
Back to top
View user's profile Send private message
1337455 10534
n00b
n00b


Joined: 10 Dec 2007
Posts: 12

PostPosted: Sun Dec 23, 2007 5:15 pm    Post subject: Reply with quote

You guys are awesome!
Well, I didn't read this post in time (to avoid doing research) but as predicted, Gparted could not Unmount /. Makes sense. So instead of doing the whole Mininux thing I justed flashed out my Ubuntu LiveCD (as Wormo wisely suggested) and divided my /dev/sda1 into;

1. /dev/sda1: ext3: 53 GB: Ubuntu (Boot Flag is on it)
2. /dev/sda3: ext2: 32 MB: (Future) Gentoo Boot
3. /dev/sda4: ext3: 20 GB: Gentoo Root/Home/Storage
4. /dev/sda2 --> /dev/sda5: extended --> linux-swap; 2.9 GB

So I shrunk Ubuntu from 73 GB to 53 GB. Swap is unchanged, although I do not know how to tell Gentoo to use it (or activate it I think). Gentoo New is my reiserfs, but what does "shared /home, new" mean? Should I not create a separate boot partition? Will I be able to access my files in the Ubuntu partition if I do?

In any case, my computer just finished making the partitions. What you see above is my scheme. Have I done something catastrophically wrong? I made backups, but before I try to boot back into *buntu I'd like some confirmation...
Here's what I plan to do next;
Code:

# boot into Ubuntu
mkswap /dev/sda5
swapon /dev/sda5
mount /dev/sda4 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda3 /mnt/gentoo/boot

# I think these come later after the building starts
chmod 1777 /mnt/gentoo/tmp
sudo mount -t proc none /mnt/gentoo/proc
sudo cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
net-setup eth0

Gparted is not showing my reiserfs (Gentoo) as having a boot flag... Mmm... yet it does for ext3 (Ubuntu)....

I right-clicked on my ext3 (Gentoo) and picked "Manage Flags". I set it to boot. This removed the boot flag from my Ubuntu partition. I will change it back in order to boot into Ubuntu, but if I can set my Gentoo partition to boot, why do I need a separate boot partition? As suggested I will remove the extra partition.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54302
Location: 56N 3W

PostPosted: Sun Dec 23, 2007 5:39 pm    Post subject: Reply with quote

1337455 10534,

If you look in your ubuntu install and do
Code:
ls /
you will find a directory called /home.
Its good idea to make /home a partition, so you can reinstall things without endangering your user data.
With /home being a partition, you can mount it in Gentoo or Ubuntu (or another distro) and have your user data there.

A separate /boot is a good idea on a system that will have several distros on it as you may have at most one grub install per drive.
At the moment, /boot is a directory within ubuntu and you will have to edit its grub.conf to add your gentoo boot instructions to it.
Its good to collect grub and all your kernels in the same place but its nut needed.

To make Gentoo use your swap, you do
Code:
swapon /dev/sda5
and later, list /dev/sda5 in /etc/fstab as swap.

2.9Gb is huge for swap, unless you need that much space for a hibernate file too.
I would have made partitions as follows:-
Code:
sda1 shrunk Ubuntu
sda2 /boot
sda3 extended - rest of drive
sda5 /swap (used by both Ubuntu and Gentoo)
sda6 /home (used by both Ubuntu and Gentoo)
sda7 / for Gentoo

Having written that, I can see that you can move /home out of Ubuntu and shrink Ubuntu further. How you do that depends on what other disk space you have, if any.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Sun Dec 23, 2007 5:47 pm    Post subject: Reply with quote

1337455 10534 wrote:
You guys are awesome!

1. /dev/sda1: ext3: 53 GB: Ubuntu (Boot Flag is on it)
2. /dev/sda3: ext2: 32 MB: (Future) Gentoo Boot
3. /dev/sda4: ext3: 20 GB: Gentoo Root/Home/Storage
4. /dev/sda2 --> /dev/sda5: extended --> linux-swap; 2.9 GB

So I shrunk Ubuntu from 73 GB to 53 GB. Swap is unchanged, although I do not know how to tell Gentoo to use it (or activate it I think). Gentoo New is my reiserfs, but what does "shared /home, new" mean? Should I not create a separate boot partition? Will I be able to access my files in the Ubuntu partition if I do?

In any case, my computer just finished making the partitions. What you see above is my scheme. Have I done something catastrophically wrong? I made backups, but before I try to boot back into *buntu I'd like some confirmation...


Well... I would have done it differently, but it's not catastrophically wrong.

What I meant by "shared /home, new" was that I made a new partition and moved files from /home in ubuntu into it, then added it to the /etc/fstab of both ubuntu and gentoo roots. So it's a new partition, and it's shared between distros. Sorry I was too terse the first time. To me, having the separate /home is even better than the separate /boot partition: /boot partition lost a lot of its importance now that modern motherboards can boot from kernels located anywhere on a large hard drive, not just near the beginning.

Also, I don't understand why you moved your swap partition into the extended partition, since the existing one would have been just fine. Don't forget to update /etc/fstab in ubuntu with the new swap partition before you try to boot back into it.

Quote:

Gparted is not showing my reiserfs (Gentoo) as having a boot flag... Mmm... yet it does for ext3 (Ubuntu)....

Don't worry about boot flag; your grub bootloader doesn't care about that.
Back to top
View user's profile Send private message
1337455 10534
n00b
n00b


Joined: 10 Dec 2007
Posts: 12

PostPosted: Sun Dec 23, 2007 6:27 pm    Post subject: Reply with quote

Right, still in Live Mode, Seeing as I only have Ubuntu and Gentoo, I won't make another /boot. Gparted does not allow me to make extended partitions anyways, but I might try Fdisk or parted alone. That's not the point though... I made an ext3 26 GB partition for storage, further shrinking the Ubuntu one to 25 GB. There is no separate /boot partition. There is one 20 GB ext3 for Gentoo and an extended Swap for both (which I will activate later.) The swap was in the extended partition by default, actually. When I first formatted the disk using Ubuntu's automatic partitioner, it made the swap under the extended. Odd, isn't it? I'm not gonna mess with that because I think I have a workable setup here.

What is left is to edit the /etc/fstab and grub.conf.
Here is my fstab;
Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=70752356-8a68-427d-bfe1-b45ba3ebf4c7 /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda5
UUID=95d353e6-20fe-4512-8d40-c55c351c76d8 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/scd1       /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

I'll be honest, I don't know the syntax (basically how) to list /dev/sda5 as swap...

I can't seem to find the grub.conf. A search of my Ubuntu partition revealed a grub.list and grub-menu.lst...
Back to top
View user's profile Send private message
1337455 10534
n00b
n00b


Joined: 10 Dec 2007
Posts: 12

PostPosted: Sun Dec 23, 2007 6:54 pm    Post subject: Reply with quote

I think I found my """"grub.conf"""". It's at the bottom of /boot/grub/menu.lst;
Code:

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default      0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=70752356-8a68-427d-bfe1-b45ba3ebf4c7 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##

title      Ubuntu 7.10, kernel 2.6.22-14-generic
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=70752356-8a68-427d-bfe1-b45ba3ebf4c7 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=70752356-8a68-427d-bfe1-b45ba3ebf4c7 ro single
initrd      /boot/initrd.img-2.6.22-14-generic

title      Ubuntu 7.10, memtest86+
root      (hd0,0)
kernel      /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54302
Location: 56N 3W

PostPosted: Sun Dec 23, 2007 7:25 pm    Post subject: Reply with quote

1337455 10534,

The /etc/fstab you posted is from your Ubuntu install, not from Gentoo. Swap is
Code:
UUID=95d353e6-20fe-4512-8d40-c55c351c76d8 none            swap    sw              0       0
you would put the device node /dev/sda5 in place of the UUID=95d353e6-20fe-4512-8d40-c55c351c76d8
While we are here, Ubuntu uses the volume UUIDs, not the /dev/ nodes. Thats nice as it works even if the drives are moved around.
Gentoo can do this too but its not the default behaviour.

You found your grub.conf On gentoo, grub.conf is the target of the menu.lst symbolic link.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
1337455 10534
n00b
n00b


Joined: 10 Dec 2007
Posts: 12

PostPosted: Sun Dec 23, 2007 7:39 pm    Post subject: Reply with quote

I have not even installed Gentoo yet..
So I replace UUID=hashhhhhhhhhhhhhhhhhh with /dev/sda5 (my swap)?
Will Ubuntu detect the swap (can its default behavior be changed so that it does not use UUID [since i dont plan on moving drivers anywhere])?


edit>> edited fstab and made backups. OK. Proceeding to boot back into Ubuntu. 8O :o :lol: :?
Back to top
View user's profile Send private message
1337455 10534
n00b
n00b


Joined: 10 Dec 2007
Posts: 12

PostPosted: Sun Dec 23, 2007 7:51 pm    Post subject: Reply with quote

OMG! I KISS THE GROUND AT ALL OF YOU PEOPLES FEET!!!!!

I am back in native Ubuntu, HDD was found, and all of the partitions I made to the HDD are still there! Nothing has crashed, and everything is fine!! yay!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54302
Location: 56N 3W

PostPosted: Sun Dec 23, 2007 8:50 pm    Post subject: Reply with quote

1337455 10534,

There is an old saying that after the nipple, everything else is learned.
Your helpers know more than you do (at the moment) because they started before you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Sun Dec 23, 2007 11:39 pm    Post subject: Reply with quote

^^ True that. Look at it this way: You started with windows. It took you up til now, let's say, to master it. Expect it to be similar with Linux. And thankfully, with Gentoo, we get to muck around with all the config files and such, so we spend a LOT of time with our system, and once we're done, we'll be all that more wiser with respect to Linux, and if we stick with Linux for as long as we did with Windows, we'll likely be as good with Linux as we were with windows. It just has to be learned, and it's not like you will pick up a new OS and be a wiz at it just because you've used a different type of OS.
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Mon Dec 24, 2007 2:32 am    Post subject: Reply with quote

GivePeaceAChance wrote:
^^ True that. Look at it this way: You started with windows. It took you up til now, let's say, to master it. Expect it to be similar with Linux. And thankfully, with Gentoo, we get to muck around with all the config files and such, so we spend a LOT of time with our system, and once we're done, we'll be all that more wiser with respect to Linux, and if we stick with Linux for as long as we did with Windows, we'll likely be as good with Linux as we were with windows. It just has to be learned, and it's not like you will pick up a new OS and be a wiz at it just because you've used a different type of OS.


And then....
_________________
Registered Linux User # 451058
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Mon Dec 24, 2007 3:52 am    Post subject: Reply with quote

I usually build Gentoo from scratch by booting another OS - generally Gentoo
on a "maintenance" partition, since that's quicker and easier than using a
Live CD. Obviously the first time around you have no option.

The essential parts of my fstab are:
/dev/hda8 /boot ext2 noauto,noatime 1 2
#/dev/hda9 /boot ext2 noauto,noatime 1 2
/dev/hda10 none swap sw 0 0
/dev/hda11 / ext3 noatime 0 1
/dev/hda12 /home ext3 noatime 0 2
/dev/hda13 /var/spool ext3 noatime 0 2
/dev/hda14 /usr/portage ext3 noatime 0 2
#/dev/hda15 / ext3 noatime 0 1
# DVD / CDR/W drive.
/dev/hdc /media/cdrw udf noauto,ro 0 0
/dev/hdc /media/dvd iso9660 noauto,ro 0 0
# USB flash drives.
#/dev/sda1 /mnt vfat noauto,noatime 0 0
#/dev/sda2 /mnt vfat noauto,noatime 0 0

(eek, proportional fonts...)

Boot is 64M, swap 1G (the machine has 512MB of RAM), root 6G, home 2G, spool
2G, portage 3G. Life's easier if filesystems are kept separate; every so
often I wipe portage, for instance, when I need a lot of space for something
else. boot is kept separate to make it quite difficult to hose the system
completely. spool is separate because builds, and news, can fill a filesystem
if not watched and it's easier if you can just wipe it and start over (however,
it doesn't need to be more than 1G; I use 2G just to add flexibility).
home doesn't just have my user home directory, but bulky documentation and
any large software packages I'm looking at. (Note that root's home directory
is /root, so that all other partitions can be unmounted for maintenance.)

On this system df gives:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda11 6198404 4383364 1500168 75% /
/dev/hda12 2068620 1748384 215156 90% /home
/dev/hda13 2068620 115336 1848204 6% /var/spool
/dev/hda14 3102940 2218372 726944 76% /usr/portage

/home is actually about 30% full, mostly with docs, if the temporary source
packages are deleted. /dev/hda15 is a 1G partition that contains an old
Gentoo build used for emergencies and new installs. I don't use /dev/hda9
unless I'm upgrading grub; it mirrors /dev/hda8. The boot manager I use
boots either Windows or Grub, from /dev/hda8, which then brings up Grub's
standard menu; grub.conf is, in part:

# By default, boot the first entry.
default 0

# Fallback to the third entry.
fallback 2

# For booting the current kernel.
title Gentoo Linux 2007.0 Current
root (hd0,7)
kernel /kernel-genkernel-x86-2.6.19-gentoo-r5-1 init=/linuxrc real_root=/dev/hda11
initrd /initramfs-genkernel-x86-2.6.19-gentoo-r5-1

# For booting the release kernel.
title Gentoo Linux 2007.0 Release
root (hd0,7)
kernel /kernel-genkernel-x86-2.6.19-gentoo-r5 init=/linuxrc real_root=/dev/hda11
initrd /initramfs-genkernel-x86-2.6.19-gentoo-r5

# For booting Windows NT or Windows95
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

So to build, or rebuild, Gentoo I boot off /dev/hda15 and reformat the root
and portage directories. I find that the filesystem for portage needs a lot
of inodes; "mkfs -t ext3 -T net /dev/hda14" generally works. I generally
copy the /etc tree across to /home/etc beforehand, since it's a useful
temporary reference for the initial configuration, though since the rebuild
is usually an upgrade I don't simply keep /etc unchanged.

Then I unpack the new stage 3 file onto /dev/hda11, and the new portage snapshot
onto /dev/hda14, and copy the new kernel into /dev/hda8 (mounting these where
convenient first, obviously). For a new install you'd have to put grub on the
boot partition as well. Depending on your hd drivers and the module set up the
new kernel may actually boot, though it will complain bitterly about missing
modules. You may find loading /lib/modules from the Live CD helps with this.
Alternatively use the original kernel to install the basics of civilized life
including the new kernel sources, and rebuild the default (release) kernel.
(I've forgotten where the Boot CD or DVD puts its kernel config file, but it's
somewhere about.) Once that's booting cleanly you're home free, and can start
on the detailed configuration.

The configuration files that really need to be set up first are (as far as I
can tell):

/etc/conf.d/clock
/etc/conf.d/domainname
/etc/conf.d/hostname
/etc/conf.d/keymaps
/etc/fstab
/etc/genkernel.conf
/etc/group
/etc/hosts
/etc/host.conf
/etc/locale.gen
/etc/localtime
/etc/make.conf
/etc/passwd # I just cancel the password, and install as root.
/etc/profile
/etc/rc.conf
/etc/resolv.conf
/root/.bashrc
/var/log/portage # Directory

Then check the USE flags, and if you need a network, set that up. After
that it's just a question of emerging stuff; I usually start with syslog-ng
and vixie-cron and a reboot, which gets me a nominally stand-alone system.

Then emerge genkernel, gentoolkit, portage-utils, linux-headers if they
aren't present, and gentoo-sources; that should give you enough to build
a kernel. After that miscellaneous utilities, X, Gnome, and the final set
of applications.

Hope this helps - Will
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Mon Dec 24, 2007 4:21 am    Post subject: Reply with quote

[quote="davascript"]
GivePeaceAChance wrote:
And then....


And then *what*? :P Sometimes I can't believe I'm smart enough to be using linux (well, given the amount of posts I make asking for help, perhaps not! :lol:
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Tue Dec 25, 2007 1:18 am    Post subject: Reply with quote

GivePeaceAChance wrote:
davascript wrote:
And then....


And then *what*? :P Sometimes I can't believe I'm smart enough to be using linux (well, given the amount of posts I make asking for help, perhaps not! :lol:


I was quoting the lady from MadTV. Asking for help is how we all learned. Sorry if it seemed critical.
_________________
Registered Linux User # 451058
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Tue Dec 25, 2007 2:25 am    Post subject: Reply with quote

Heh, not critical at all! The reference just went *right* over my head. ;)
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Tue Dec 25, 2007 2:28 am    Post subject: Reply with quote

GivePeaceAChance wrote:
Heh, not critical at all! The reference just went *right* over my head. ;)


and you used the word "and" 6 times in your post!!
_________________
Registered Linux User # 451058
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