Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Installing Gentoo without disturbing Windows

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
Jenk
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Mon Sep 18, 2006 7:59 am

Installing Gentoo without disturbing Windows

  • Quote

Post by Jenk » Mon Mar 12, 2007 12:04 am

Hi!

I have one disk (/dev/sda - 500gb samsung), which has winXp on. I wish to install Gentoo without disturbing the WinXp install, at all if possible - with the exception of the bootloader, which I wish to be Grub.

I seem to remember from a few years ago that RedHat or Ubuntu (I forget which) was able to automatically install Grub +linuxiso without touching my windows install - how do I achieve this with Gentoo?

TIA.

EDIT: Forgot to add there is loads of empty space, it is merely the the case the C: is from the first sector, which is what I am unsure about for placing grub.
Top
Acron_0248
n00b
n00b
User avatar
Posts: 50
Joined: Wed Sep 06, 2006 2:05 pm

  • Quote

Post by Acron_0248 » Mon Mar 12, 2007 1:57 am

Hi there....


Maybe it's just me, but the question need more details.


As far I understand, do you only have one partition of 500gb?

In that case, and you want to install gentoo without touching windows, you'll need other partition where will be gentoo installed, to do that, you'll have to use gparted or partition magick to change the partition table.

Where to put the grub is something that you can decide regarding your needs, for instance, you could just use the MBR of the disk, that won't damage windows in anyway, in any case, you'll be changing the NT bootloader for grub, nothing more.


I don't know if this is helpful, if not, give me more details about what exactly you want to know




Regards
Linux User Registered #399288
Top
likewhoa
l33t
l33t
Posts: 778
Joined: Wed Oct 04, 2006 12:28 pm
Location: Brooklyn, New York
Contact:
Contact likewhoa
Website

  • Quote

Post by likewhoa » Mon Mar 12, 2007 5:21 am

If you wish to install gentoo along side windows but still keep the windows bootloader intact, you can install gentoo like normal as shown on the Official Guide, but instead of setting up your bootloader "grub/lilo" you can install a bootloader inside a usb stick using extlinux which is part of the sysutils package.
You will first need to create a custom initramfs image that will mount your linux partition then switch to it from the usb device. more info on this can be found in the forums or online.. good luck.
Top
Jenk
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Mon Sep 18, 2006 7:59 am

  • Quote

Post by Jenk » Mon Mar 12, 2007 3:39 pm

sorry, the missing details are:

/dev/sda1 = 15gb ntfs (C: )
/dev/sda2 = 50gb ntfs (D: - general storage)

that's all that is used on the entire disk, so plenty of space.

do I not need to create /boot on /dev/sda1 then?
Top
likewhoa
l33t
l33t
Posts: 778
Joined: Wed Oct 04, 2006 12:28 pm
Location: Brooklyn, New York
Contact:
Contact likewhoa
Website

  • Quote

Post by likewhoa » Mon Mar 12, 2007 4:46 pm

now just create 2 partitions for linux,..

/dev/sda3 = 50gb reiserfs ( / root partition )
/dev/sda4 = 4gb linux/swap ( swap partition, make it 2gb if you only have 1GB of RAM )

then skip the grub/lilo part and setup extlinux so that you can keep your nt bootloader intact.
but since grub/lilo can boot a windows partition I don't see why you just can't use it.
Top
Jenk
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Mon Sep 18, 2006 7:59 am

  • Quote

Post by Jenk » Mon Mar 12, 2007 7:37 pm

I want to use grub, that's not a problem. My concern was that because windows is installed at the first sector of the disk, it would require "moving"
Nor do I want extlinux.
Top
adekoba
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Fri Oct 06, 2006 10:57 pm
Contact:
Contact adekoba
Website

  • Quote

Post by adekoba » Mon Mar 12, 2007 7:44 pm

if you're looking for compatibility between the two installations, don't use nfts on your linux. the drivers are still very experimental and not stable. i'd recommend fat if you must have compatibility.
website
Top
Jenk
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Mon Sep 18, 2006 7:59 am

  • Quote

Post by Jenk » Mon Mar 12, 2007 7:56 pm

I'm not.
Top
likewhoa
l33t
l33t
Posts: 778
Joined: Wed Oct 04, 2006 12:28 pm
Location: Brooklyn, New York
Contact:
Contact likewhoa
Website

  • Quote

Post by likewhoa » Mon Mar 12, 2007 8:07 pm

don't about linux messing with your primary windows partition, all grub will do is overwrite the mbr. you will use grub to load both windows and linux on reboot. grub will not interfear with your window's installation it will just replace the NT bootloader with it's own.
Top
Jenk
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Mon Sep 18, 2006 7:59 am

  • Quote

Post by Jenk » Mon Mar 12, 2007 8:12 pm

Ok, sounds good. Thanks.
Top
Jenk
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Mon Sep 18, 2006 7:59 am

  • Quote

Post by Jenk » Tue Mar 13, 2007 11:32 am

ok.. the disk can have a max of 4 primary partitions.. I've already got two, and need 3 more. Which, if any, course of action can I take?
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Tue Mar 13, 2007 11:43 am

1) there is another method to the bootloader... using Windows NTLDR (I use this at work due to IT restrictions). Write GRUB to the /boot partition instead of the MBR then rip off the first 512 bytes with dd to a file, copy the file to c:\ and reference that file via boot.ini

Then NTLDR will chainload grub (as opose to GRUB chainloading NTLDR).


2) just because windows is first (in fact it has to be, be it physically first of GRUB voodoo to trick it).
Use gparted to shrink the partition (after a defrag) to free up the needed room

3) only 4 PRIMARY partitions can be created (legacy). However, you can make an extended partition out of one of them. This extended partition can the have as many (logical?) partitions within it as it wants
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
dmartinsca
Guru
Guru
Posts: 303
Joined: Fri Dec 09, 2005 2:01 pm
Location: Ontario, Canada

  • Quote

Post by dmartinsca » Tue Mar 13, 2007 3:28 pm

You seem to be concerned that /boot needs to be first? This is a limitation of older computer's BIOS. Basically, the BIOS couldn't access anything past the first 1024 cylinders of the hard drive so while /boot didn't need to be first, it had to be close to the start of the drive.

As long as you're not using an ancient PC you shouldn't run into this problem. That your BIOS can deal with a 500GB drive is a good indication the PC isn't too old.
Top
Jenk
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Mon Sep 18, 2006 7:59 am

  • Quote

Post by Jenk » Wed Mar 14, 2007 1:24 am

That's sorted now.. but I have another hurdle, what I would like to have, is this:

MBR: Grub
/dev/sda1: ntfs (C: )
/dev/sda2: ntfs (D: ) # these two cannot be touched.
/dev/sda3: /boot
/dev/sda2: swap
/dev/sda3: /


but that's not possible due the 4 primary partition limit.
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Wed Mar 14, 2007 1:37 am

MBR: Grub
/dev/sda1: ntfs (C: )
/dev/sda2: ntfs (D: ) # these two cannot be touched.
/dev/sda3: /boot
/dev/sda4: EXTENDED PARTITION DECLARATION
/dev/sda5:swap
/dev/sda6: /
/dev/sda7: ...
...
/dev/sda99: ...


there is only a limit on the number of primary partitions. Extended partition's were created to get around it. Its a kind of software controlled partition table and thus there really isn't a limit on the number of logical partitions that can be placed within an Extended partition

THAT or create an LVM for /dev/sda3 and within that create /boot SWAP and /<root>
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
Acron_0248
n00b
n00b
User avatar
Posts: 50
Joined: Wed Sep 06, 2006 2:05 pm

  • Quote

Post by Acron_0248 » Wed Mar 14, 2007 1:39 am

If you don't want to, don't create the /boot partition.....just create root and swap partition, the grub will be replacing the nt loader without disturbing your windows installation and that's all




Regards
Linux User Registered #399288
Top
Post Reply

16 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic