LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-22-2009, 04:30 AM   #1
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
Copying root partition from Gentoo Live Disc to hard disk


The Gentoo LiveDVD doesn't come with an installer, but it has everything I need. The disc has image.squashfs, an image of the root file system of the Live Gentoo. I intend to copy this file system onto my hard disk and then install a bootloader so that I can dual boot my system with Windows. I'm not sure how to proceed.

Gentoo LiveUSB provides instructions for installing the disc to a USB drive, but I don't know how to do the same for a hard disk because I'll need to create a swap partition, and also configure the bootloader manually to boot both Gentoo and Windows.

Thank you.
 
Old 12-23-2009, 12:16 AM   #2
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
its debian, but check for a general idea (if you like):
http://forums.debian.net/viewtopic.php?f=16&t=18845
 
1 members found this post helpful.
Old 12-23-2009, 12:53 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,045

Rep: Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914
This doesn't sound like a very good idea at all - but I haven't looked at the (gento) liveDVD. Looking to short-cut gentoo is a sure route to disappointment.
Perhaps you should heed the warnings in this article - Neddy (the author) might even pass this way and avail you of the sensible thing to do.
 
1 members found this post helpful.
Old 12-23-2009, 05:25 AM   #4
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I wish I read you post earlier syg00, I got a lovely Kernel Panic when I tried to do it on my own. I'd rather install. But I really want to know what's the use of the Live DVD if I can't install from it.
 
Old 12-23-2009, 05:50 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,045

Rep: Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914
Good question - I don't know why people continue to make GUI installers/CD/DVDs in an attempt to attract new users. Presumably.
Go get the (full) handbook, and a minimal CD, and work your way through it. Very educational.

Last edited by syg00; 12-23-2009 at 05:55 AM.
 
Old 12-23-2009, 06:02 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Well, the installer is included. It's just not graphical.
Read this to learn how to install gentoo:
http://www.gentoo.org/doc/en/handbook/
Gentoo is a "Do It Yourself" distro. It doesn't provide a step by step installer. It provides the tools to do whatever you want the way you want. Create your partitions yourself with parted, format them, copy the stage3 file and compile it yourself. It takes longer than installing other binary distros but it allows you to do more things. If yuo don't want to go through that trouble, then install sabayon or use another gentoo derivative.
 
Old 12-23-2009, 06:19 AM   #7
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I've already installed Gentoo through the minimal discs. I was just frustrated that I waited for 5 days to complete the download of an image that could not be installed. I'm all in for the education part, but I would have never wasted my time with the live disc if I knew that you couldn't install from it. What do I do with the live disc?
 
Old 12-23-2009, 07:55 AM   #8
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,923

Rep: Reputation: 278Reputation: 278Reputation: 278
You just find the root mounted in memory, and do an rsync to the hdd. I've never done it with gentoo live. But I have with Knoppix. There is at least one directory with the root partition. You use ls -al to make sure the root you're using for rsync is not a bunch of symlinks.

So let's say you find the root filesystem in /GENTOO. You mount the hdd in the live cd environment (mount /dev/hda1 /mnt/hda1, and do:

rsync -avH /GENTOO/* /mnt/hda1/. That will copy the cd / to the hdd /. Then you:

chroot /mnt/hda1

and install the bootloader however that distro does it. Gentoo is a great distro. After the boot loader is installed, make a swap file:

dd if=/dev/zero of=/swapfile bs=1M count=2000
mkswap /swapfile

change /etc/fstab to reflect in the chroot environment the lines you will need for the hdd filesystem. Instead of what you copied from the live cd, you'll need fstab to mount / from /dev/hda1, using whatever file system is loaded on the partition. After you edit fstab, update grub. Remove syslinux from the chroot environment. Type 'exit' to exit the chroot. And reboot the machine.

It should boot up from the hdd.
 
1 members found this post helpful.
Old 12-23-2009, 07:58 AM   #9
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
You CAN install gentoo from the liveDVD!
 
Old 12-23-2009, 08:09 AM   #10
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I almost followed the same steps AwesomeMachine, but it didn't work out for me. I guess I made a mistake somewhere, but if you want to try it, I'll warn you that the copying process takes a very large amount of time. That 2.5 GB expands to 8 GB on the root file system you create.

Agrouf, do you have a method for installing the disc without copying the live disc's file system? I read the handbook to install gentoo but I haven't such a method.
 
Old 12-23-2009, 08:26 AM   #11
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
gregorian: just untar the stage3 file, configure your mirrors and make.conf, select the profile, create the kernel with genkernel, create your fstab, setup your network, configure your init with rc-update, configure grub, add a user and you have a gentoo install.
 
1 members found this post helpful.
Old 02-15-2010, 04:02 AM   #12
talalpro
Member
 
Registered: Nov 2009
Distribution: Gentoo (Sabayon)
Posts: 29

Rep: Reputation: 17
If this is the solution whats the use of the DVD???



Even you can't enable persistence mode on the flashdrive!!!
 
Old 02-15-2010, 05:22 AM   #13
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
The DVD is a host to install Gentoo. You need a host to install Gentoo. That can be any system, but the liveDVD has all the tools needed (compiler, partitioning, compression tools, etc)
It's not as easy as installing Debian or Slackware because it is a source based distro. Installing the distro with binary ready executables is not the point of Gentoo. If you want a binary Gentoo, Sabayon or one of the other binary derivative of Gentoo is the way to go.
 
  


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
[SOLVED] Minor clarification regarding installation of Gentoo from live disc gregorian Linux - Newbie 4 12-22-2009 01:47 AM
Copying one distro on a hard disk to another disk jimmy512 Linux - General 2 11-21-2006 02:19 PM
Running LIVE CD from hard disk, i.e. copying the iso on HD & then booting the same nitinatindore Linux - Newbie 13 03-12-2006 05:35 AM
How to install from hard disc partition? Al_Jones Fedora - Installation 2 03-28-2004 08:40 AM
dual boot hard disk copying manthram Linux - General 1 05-05-2002 11:08 AM


All times are GMT -5. The time now is 09:33 AM.

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