Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User

Installation from within another OS

 

 

Gentoo user RSS feed   Index | Next | Previous | View Threaded


ajai at bway

Sep 5, 2004, 11:34 AM

Post #1 of 20 (159 views)
Permalink
Installation from within another OS

I remember reading posts from people installing Gentoo from within RedHat
- how is this done? Anyone installed Gentoo in 1and1.com's (Redhat 9)
servers?


--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list


BIrelan at gmail

Sep 5, 2004, 11:55 AM

Post #2 of 20 (159 views)
Permalink
Re: Installation from within another OS [In reply to]

Yah, you can install Gentoo the same way under any OS as you would
under the Gentoo LiveCDs.


On Sun, 5 Sep 2004 14:34:20 -0400 (EDT), Ajai Khattri <ajai [at] bway> wrote:
>
> I remember reading posts from people installing Gentoo from within RedHat
> - how is this done? Anyone installed Gentoo in 1and1.com's (Redhat 9)
> servers?
>
> --
> Aj.
> Sys. Admin / Developer
>
> --
> gentoo-user [at] gentoo mailing list
>
>

--
gentoo-user [at] gentoo mailing list


telegraph.road at gmail

Sep 5, 2004, 12:08 PM

Post #3 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

just follow the guide...
create a partition and mount it, download the stage that you want,
unpack the archive, chroot into your partiton, ...


On Sun, 5 Sep 2004 18:55:28 +0000, Brian Irelan <birelan [at] gmail> wrote:
> Yah, you can install Gentoo the same way under any OS as you would
> under the Gentoo LiveCDs.
>
>
>
>
> On Sun, 5 Sep 2004 14:34:20 -0400 (EDT), Ajai Khattri <ajai [at] bway> wrote:
> >
> > I remember reading posts from people installing Gentoo from within RedHat
> > - how is this done? Anyone installed Gentoo in 1and1.com's (Redhat 9)
> > servers?
> >
> > --
> > Aj.
> > Sys. Admin / Developer
> >
> > --
> > gentoo-user [at] gentoo mailing list
> >
> >
>
> --
> gentoo-user [at] gentoo mailing list
>
>



--
ciao, teo

--
gentoo-user [at] gentoo mailing list


emailgrant at gmail

Sep 5, 2004, 5:04 PM

Post #4 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004 21:08:01 +0200, Matteo Miraz
<telegraph.road [at] gmail> wrote:
> just follow the guide...
> create a partition and mount it, download the stage that you want,
> unpack the archive, chroot into your partiton, ...
>
>

My old laptop is currently running Mandrake from when I first
experimented with Linux. I'm ready to put Gentoo on it, but when I
try to boot from the LiveCD it always hangs right after I specify the
kernel to boot. I have tried specifying all kinds of different
options with the kernel, but it always hangs. I can read the CDRW
after booting to the hard drive without a problem. I've tried to get
parted set up on the system before, but failed. The mount command
shows hda1 and hda6, with hda6 being mounted on /home . I thought I
would set up hda6 as my Gentoo root partiition and then resize things
to eliminate Mandrake completely once I have Gentoo set up.

Since it's already running Mandrake I thought I would just use the
alternative installation guide and circumvent the LiveCD, but I'm not
sure how to proceed with this. I'd like to make the filesystem ext3,
but mke2fs is an unknown command. Can anyone give me a push-start if
this is even do-able?

- Grant

>
>
> On Sun, 5 Sep 2004 18:55:28 +0000, Brian Irelan <birelan [at] gmail> wrote:
> > Yah, you can install Gentoo the same way under any OS as you would
> > under the Gentoo LiveCDs.
> >
> >
> >
> >
> > On Sun, 5 Sep 2004 14:34:20 -0400 (EDT), Ajai Khattri <ajai [at] bway> wrote:
> > >
> > > I remember reading posts from people installing Gentoo from within RedHat
> > > - how is this done? Anyone installed Gentoo in 1and1.com's (Redhat 9)
> > > servers?
> > >
> > > --
> > > Aj.
> > > Sys. Admin / Developer
> > >
> > > --
> > > gentoo-user [at] gentoo mailing list
> > >
> > >
> >
> > --
> > gentoo-user [at] gentoo mailing list
> >
> >
>
>
> --
> ciao, teo
>
>
>
> --
> gentoo-user [at] gentoo mailing list
>
>

--
gentoo-user [at] gentoo mailing list


ajai at bway

Sep 5, 2004, 5:11 PM

Post #5 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004, Brian Irelan wrote:

> Yah, you can install Gentoo the same way under any OS as you would
> under the Gentoo LiveCDs.

Yeah but if the original OS is running and using the disk then how can you
fdisk and partition it?!

--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list


crichey at gmail

Sep 5, 2004, 5:59 PM

Post #6 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004 14:34:20 -0400 (EDT), Ajai Khattri <ajai [at] bway> wrote:
>
> I remember reading posts from people installing Gentoo from within RedHat
> - how is this done? Anyone installed Gentoo in 1and1.com's (Redhat 9)
> servers?
>

Installing Gentoo is driving system neutral. Any system that supports
chroot, is capable of creating partitions and file systems, and has
internet connectivity (unless you are intentionally doing this without
the internet) can be used to install Gentoo. I'm sure RedHat 9
qualifies. The instructions in the Handbook are pretty clear. Unless
1and1.com has really weird hardware, it should be a piece of cake.

Do you maybe have specific questions?



--
/\/\
(CR) Collins Richey
\/\/ 20 minutes is the average that a Windows based PC lasts
before it's compromised.
- according to the Internet Storm Center.

--
gentoo-user [at] gentoo mailing list


emailgrant at gmail

Sep 5, 2004, 6:06 PM

Post #7 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

> The instructions in the Handbook are pretty clear. Unless
> 1and1.com has really weird hardware, it should be a piece of cake.
>

I'm having trouble coming up with a non-vanilla kernel that boots on
my hosted remote machine. Could this be because of really weird
hardware? I know lspci has VIA written all over it.

- Grant

--
gentoo-user [at] gentoo mailing list


nick at rout

Sep 5, 2004, 6:08 PM

Post #8 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004 20:11:52 -0400 (EDT)
Ajai Khattri <ajai [at] bway> wrote:

> On Sun, 5 Sep 2004, Brian Irelan wrote:
>
> > Yah, you can install Gentoo the same way under any OS as you would
> > under the Gentoo LiveCDs.
>
> Yeah but if the original OS is running and using the disk then how can you
> fdisk and partition it?!

well if you want to resize the existing running os to make room for
gentoo you will have problems doing it. But you can certainly run fdisk
and partition those parts of the disk that re not mounted, than create
filesystems on those parttions. Then untar a stage file, chroot into it
and install in the normal way.


>
> --
> Aj.
> Sys. Admin / Developer
>
> --
> gentoo-user [at] gentoo mailing list

--
Nick Rout <nick [at] rout>


--
gentoo-user [at] gentoo mailing list


ajai at bway

Sep 5, 2004, 6:42 PM

Post #9 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004, Collins Richey wrote:

> Installing Gentoo is driving system neutral. Any system that supports
> chroot, is capable of creating partitions and file systems, and has
> internet connectivity (unless you are intentionally doing this without
> the internet) can be used to install Gentoo. I'm sure RedHat 9
> qualifies. The instructions in the Handbook are pretty clear. Unless
> 1and1.com has really weird hardware, it should be a piece of cake.

I understand this but looking at the server running RH9 I see:

Filesystem Size Used Avail Use% Mounted on
/dev/hda1 510M 131M 353M 28% /
/dev/hda5 4.9G 854M 4.1G 18% /usr
/dev/hda6 4.9G 196M 4.7G 4% /var
/dev/hda7 100G 3.0G 97G 3% /home
none 501M 168K 501M 1% /tmp

Obviously the whole disk is already partitioned and running RH9 right now.

I would have to persuade the 1and1 support people to boot off a LiveCD,
enable networking, set a root passwd and start ssh running. Just wondering
if anyone has managed to do this another way or in fact persuaded staff to
setup a Gentoo install?

> Do you maybe have specific questions?

I guess I would like to know if anyone has done this with 1and1's root
servers?


--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list


ajai at bway

Sep 5, 2004, 6:44 PM

Post #10 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004, Grant wrote:

> I'm having trouble coming up with a non-vanilla kernel that boots on
> my hosted remote machine. Could this be because of really weird
> hardware? I know lspci has VIA written all over it.

What kernel are you using?

What does lspci say?

--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list


mindstormmaster at gmail

Sep 5, 2004, 10:02 PM

Post #11 of 20 (161 views)
Permalink
Re: Installation from within another OS [In reply to]

I installed Gentoo on a ValueWeb server that was originally running
Fedora. I think the Red Hat/Fedora systems do something wierd to the
partition tables that only a 2.4 kernel can read. gentoo-dev-sources
will result in a kernel panic with VFS and mounting the root file
system, but gentoo-sources (2.4) doesn't have a single problem.

I took advantage of Red Hat's typical 2 gig swap partition to create a
temporary install of gentoo, then used that system to install Gentoo
onto the primary partition for real. It was all done via SSH, without
any intervention on the other end. I'll post a more detailed record
of what I did if you'd like.

-jeff


On Mon, 06 Sep 2004 13:08:11 +1200, Nick Rout <nick [at] rout> wrote:
>
> On Sun, 5 Sep 2004 20:11:52 -0400 (EDT)
> Ajai Khattri <ajai [at] bway> wrote:
>
> > On Sun, 5 Sep 2004, Brian Irelan wrote:
> >
> > > Yah, you can install Gentoo the same way under any OS as you would
> > > under the Gentoo LiveCDs.
> >
> > Yeah but if the original OS is running and using the disk then how can you
> > fdisk and partition it?!
>
> well if you want to resize the existing running os to make room for
> gentoo you will have problems doing it. But you can certainly run fdisk
> and partition those parts of the disk that re not mounted, than create
> filesystems on those parttions. Then untar a stage file, chroot into it
> and install in the normal way.
>
>
> >
> > --
> > Aj.
> > Sys. Admin / Developer
> >
> > --
> > gentoo-user [at] gentoo mailing list
>
> --
> Nick Rout <nick [at] rout>
>
>
>
>
> --
> gentoo-user [at] gentoo mailing list
>
>

--
gentoo-user [at] gentoo mailing list


ajai at bway

Sep 5, 2004, 10:32 PM

Post #12 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004, Jeffrey Wong wrote:

> I took advantage of Red Hat's typical 2 gig swap partition to create a
> temporary install of gentoo, then used that system to install Gentoo
> onto the primary partition for real. It was all done via SSH, without
> any intervention on the other end. I'll post a more detailed record
> of what I did if you'd like.

I was thinking about this today and realized the swap partition might be
key in all this. Yes, I would very much like to read the details.


--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list


mindstormmaster at gmail

Sep 5, 2004, 10:47 PM

Post #13 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

Quickly this is how it goes. (I'll post again with more complete
details when I get more time.)

Turn off swap. (swapoff -a)
Convert the swap partition to a useable ext3 partition. (use fdisk's
"t" command to change it from Linux Swap to Linux, then use mke2fs)
Mount the new "temporary" partition and run a stage 3 gentoo install
on this partition as normal. Stage 3 should only run you about 1.2 to
1.5 GB. Use gentoo-sources for the kernel (2.4).
Add sshd to the default runlevel (rc-update add sshd default). I also
used Lilo for my boot loader (replacing grub), because it has the
special -R option that will revert back to the default after one boot.
Good for times when you forget something in your new kernel.
Double check your network configuration. Triple check if you're not
sure. Also make sure Lilo (or grub if you wanted) is set to revert
back to Red Hat's kernel if you mess up.

Reboot and pray hard.

If all went well, you should be booted into your new temporary gentoo
system. Now re-create the main partition to whatever file system you
like (reiserfs in my case) and do a complete install on the main
partition. (I chose a stage 1 for the fun of it.) Also, emerge
screen if you don't want to have a ssh session open all the time.
You'll have to install Lilo again, but keep around the temporary
gentoo install for your potential mess up. Use the -R option to your
advantage.

Reboot again and pray.

With any luck, you'll be in your new Gentoo install (the real one).
Go ahead and change Lilo's config to boot only to this system. You
can also delete all the stray files from /boot. Redo your swap
(mkswap /dev/hda?, swapon /dev/hda?). Enjoy your new Gentoo system.


Good luck!
-jeff


On Mon, 6 Sep 2004 01:32:57 -0400 (EDT), Ajai Khattri <ajai [at] bway> wrote:
> On Sun, 5 Sep 2004, Jeffrey Wong wrote:
>
> > I took advantage of Red Hat's typical 2 gig swap partition to create a
> > temporary install of gentoo, then used that system to install Gentoo
> > onto the primary partition for real. It was all done via SSH, without
> > any intervention on the other end. I'll post a more detailed record
> > of what I did if you'd like.
>
> I was thinking about this today and realized the swap partition might be
> key in all this. Yes, I would very much like to read the details.
>
>
>
>
> --
> Aj.
> Sys. Admin / Developer
>
> --
> gentoo-user [at] gentoo mailing list
>
>

--
gentoo-user [at] gentoo mailing list


mindstormmaster at gmail

Sep 5, 2004, 11:40 PM

Post #14 of 20 (159 views)
Permalink
Re: Installation from within another OS [In reply to]

Just a note and disclaimer. I don't know what success you'll have
with your particular hardware configurations, but it's a good idea to
poke around for a while to make sure you know what you need. Also,
you might try running through the process on a spare computer to know
what to expect. I did it about three times until I didn't run into
any random problems along the way.

And another note, you might want to compile the network drivers into
the kernel instead of as modules. This guarantees it'll load up on
boot. I've lost the system a couple times because of bad network
settings or missing network modules.


On Sun, 5 Sep 2004 22:47:01 -0700, Jeffrey Wong
<mindstormmaster [at] gmail> wrote:
> Quickly this is how it goes. (I'll post again with more complete
> details when I get more time.)
>
> Turn off swap. (swapoff -a)
> Convert the swap partition to a useable ext3 partition. (use fdisk's
> "t" command to change it from Linux Swap to Linux, then use mke2fs)
> Mount the new "temporary" partition and run a stage 3 gentoo install
> on this partition as normal. Stage 3 should only run you about 1.2 to
> 1.5 GB. Use gentoo-sources for the kernel (2.4).
> Add sshd to the default runlevel (rc-update add sshd default). I also
> used Lilo for my boot loader (replacing grub), because it has the
> special -R option that will revert back to the default after one boot.
> Good for times when you forget something in your new kernel.
> Double check your network configuration. Triple check if you're not
> sure. Also make sure Lilo (or grub if you wanted) is set to revert
> back to Red Hat's kernel if you mess up.
>
> Reboot and pray hard.
>
> If all went well, you should be booted into your new temporary gentoo
> system. Now re-create the main partition to whatever file system you
> like (reiserfs in my case) and do a complete install on the main
> partition. (I chose a stage 1 for the fun of it.) Also, emerge
> screen if you don't want to have a ssh session open all the time.
> You'll have to install Lilo again, but keep around the temporary
> gentoo install for your potential mess up. Use the -R option to your
> advantage.
>
> Reboot again and pray.
>
> With any luck, you'll be in your new Gentoo install (the real one).
> Go ahead and change Lilo's config to boot only to this system. You
> can also delete all the stray files from /boot. Redo your swap
> (mkswap /dev/hda?, swapon /dev/hda?). Enjoy your new Gentoo system.
>
> Good luck!
> -jeff
>
>
>
>
> On Mon, 6 Sep 2004 01:32:57 -0400 (EDT), Ajai Khattri <ajai [at] bway> wrote:
> > On Sun, 5 Sep 2004, Jeffrey Wong wrote:
> >
> > > I took advantage of Red Hat's typical 2 gig swap partition to create a
> > > temporary install of gentoo, then used that system to install Gentoo
> > > onto the primary partition for real. It was all done via SSH, without
> > > any intervention on the other end. I'll post a more detailed record
> > > of what I did if you'd like.
> >
> > I was thinking about this today and realized the swap partition might be
> > key in all this. Yes, I would very much like to read the details.
> >
> >
> >
> >
> > --
> > Aj.
> > Sys. Admin / Developer
> >
> > --
> > gentoo-user [at] gentoo mailing list
> >
> >
>

--
gentoo-user [at] gentoo mailing list


neil at digimed

Sep 6, 2004, 12:58 AM

Post #15 of 20 (164 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004 21:42:28 -0400 (EDT), Ajai Khattri wrote:

> Filesystem Size Used Avail Use% Mounted on
> /dev/hda1 510M 131M 353M 28% /
> /dev/hda5 4.9G 854M 4.1G 18% /usr
> /dev/hda6 4.9G 196M 4.7G 4% /var
> /dev/hda7 100G 3.0G 97G 3% /home
> none 501M 168K 501M 1% /tmp
>
> Obviously the whole disk is already partitioned and running RH9 right
> now.
>
> I would have to persuade the 1and1 support people to boot off a
> LiveCD, enable networking, set a root passwd and start ssh running.

Unmount either /home or /var, resize it and reboot. That will give you
enough space to install Gentoo without needing a live CD.


--
Neil Bothwick

Why is there an expiration date on sour cream?


ajai at bway

Sep 7, 2004, 10:38 AM

Post #16 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Sun, 5 Sep 2004, Jeffrey Wong wrote:

> Turn off swap. (swapoff -a)
> Convert the swap partition to a useable ext3 partition. (use fdisk's
> "t" command to change it from Linux Swap to Linux, then use mke2fs)
> Mount the new "temporary" partition and run a stage 3 gentoo install
> on this partition as normal. Stage 3 should only run you about 1.2 to
> 1.5 GB. Use gentoo-sources for the kernel (2.4).
> Add sshd to the default runlevel (rc-update add sshd default). I also
> used Lilo for my boot loader (replacing grub), because it has the
> special -R option that will revert back to the default after one boot.

Care to share the lilo.conf for that sort of setup? (I dont use lilo
normally).

> Good for times when you forget something in your new kernel.
> Double check your network configuration. Triple check if you're not
> sure. Also make sure Lilo (or grub if you wanted) is set to revert
> back to Red Hat's kernel if you mess up.
>
> Reboot and pray hard.
>
> If all went well, you should be booted into your new temporary gentoo
> system. Now re-create the main partition to whatever file system you
> like (reiserfs in my case) and do a complete install on the main
> partition. (I chose a stage 1 for the fun of it.) Also, emerge
> screen if you don't want to have a ssh session open all the time.
> You'll have to install Lilo again, but keep around the temporary
> gentoo install for your potential mess up. Use the -R option to your
> advantage.
>
> Reboot again and pray.

The good thing is that since RH is running already it should be easier to
figure out what hardware there is and what drivers to use for everything.
This sounds like a great solution (even if you have to triple check every
detail to get past the first rebbot ;-)


--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list


mindstormmaster at gmail

Sep 7, 2004, 2:30 PM

Post #17 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

> Care to share the lilo.conf for that sort of setup? (I dont use lilo
> normally).

Assumptions: You're using /dev/hda, boot is hda1, swap is hda2, and
root is hda3.

boot=/dev/hda
prompt
timeout=3
default=gentoo

image=/boot/kernel-tmp
label=gentoo-tmp
read-only
root=/dev/hda2

image=/boot/kernel-2.4
label=gentoo
read-only
root=/dev/hda3

--
gentoo-user [at] gentoo mailing list


ajai at bway

Sep 7, 2004, 4:19 PM

Post #18 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Tue, 7 Sep 2004, Jeffrey Wong wrote:

> > Care to share the lilo.conf for that sort of setup? (I dont use lilo
> > normally).
>
> Assumptions: You're using /dev/hda, boot is hda1, swap is hda2, and
> root is hda3.
>
> boot=/dev/hda
> prompt
> timeout=3
> default=gentoo
>
> image=/boot/kernel-tmp
> label=gentoo-tmp
> read-only
> root=/dev/hda2
>
> image=/boot/kernel-2.4
> label=gentoo
> read-only
> root=/dev/hda3

I meant for the once-only (-R?) setup.

Im gonna be starting on this setup soon.


--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list


mindstormmaster at gmail

Sep 7, 2004, 4:25 PM

Post #19 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

Create your lilo.conf as follows:
boot=/dev/hda
prompt
timeout=3
default=gentoo-tmp
image=/boot/kernel-tmp
label=gentoo-tmp
read-only
root=/dev/hda2
image=/boot/kernel-2.4
label=gentoo
read-only
root=/dev/hda3

Run "lilo" to install the default settings.
Run "lilo -R gentoo" to create the run once setting for "gentoo".

Note: This is my 2nd half lilo.conf, so you should have redhat as your
default. The gentoo handbook stuff on lilo is pretty good, so use
that as a reference.



On Tue, 7 Sep 2004 19:19:09 -0400 (EDT), Ajai Khattri <ajai [at] bway> wrote:
>
>
> On Tue, 7 Sep 2004, Jeffrey Wong wrote:
>
> > > Care to share the lilo.conf for that sort of setup? (I dont use lilo
> > > normally).
> >
> > Assumptions: You're using /dev/hda, boot is hda1, swap is hda2, and
> > root is hda3.
> >
> > boot=/dev/hda
> > prompt
> > timeout=3
> > default=gentoo
> >
> > image=/boot/kernel-tmp
> > label=gentoo-tmp
> > read-only
> > root=/dev/hda2
> >
> > image=/boot/kernel-2.4
> > label=gentoo
> > read-only
> > root=/dev/hda3
>
> I meant for the once-only (-R?) setup.
>
> Im gonna be starting on this setup soon.
>
> --
> Aj.
> Sys. Admin / Developer
>

--
gentoo-user [at] gentoo mailing list


ajai at bway

Sep 9, 2004, 9:55 PM

Post #20 of 20 (160 views)
Permalink
Re: Installation from within another OS [In reply to]

On Tue, 7 Sep 2004, Jeffrey Wong wrote:

> > Care to share the lilo.conf for that sort of setup? (I dont use lilo
> > normally).
>
> Assumptions: You're using /dev/hda, boot is hda1, swap is hda2, and
> root is hda3.
>
> boot=/dev/hda
> prompt
> timeout=3
> default=gentoo
>
> image=/boot/kernel-tmp
> label=gentoo-tmp
> read-only
> root=/dev/hda2
>
> image=/boot/kernel-2.4
> label=gentoo
> read-only
> root=/dev/hda3

Your assumptions were correct.

The fdisk to change the partition type for /dev/hda2 required a reboot.

Now Ive just finished a stage3 install and Im working on the boot
loader...

--
Aj.
Sys. Admin / Developer

--
gentoo-user [at] gentoo mailing list

Gentoo user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.