Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dual-boot confusion
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
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Wed Dec 18, 2013 2:09 am    Post subject: dual-boot confusion Reply with quote

Hi all o/

So I'm trying to board this crazy Gentoo train but I'm having some difficulties. I want to dual-boot with Win for gaming as it'll take me who knows how long to be able to do it natively in Gentoo, I can't figure out how to mount properly though.

I can't figure out where to mount boot basically. Win creates it's own little faux boot partition... do i mount /boot there or create a second partition? Do I mark it as bootable? Where do I put grub? ahh!
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Wed Dec 18, 2013 3:49 am    Post subject: Reply with quote

Hi...
Separate boot partition is not mandatory condition.
The only partition you need unconditionally is root (/). If you do not want to get additional headache on first install, do not separate boot. Just unpack stage3 tarball at root partition mount point, it already has a boot directory. Do not care about grub. Your boot directory will be found automatically. Regarding handbook, you can just miss a chapter about mounting boot partition.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Wed Dec 18, 2013 9:32 am    Post subject: Reply with quote

Just to make sure you don't screw up your windows boot install grub on your partition rather than in MBR or windows partitions. Handbook explains the details, just make sure device name is {hdN,N) rather than (hdN) - it's your job to find out what the value of N is :)
Back to top
View user's profile Send private message
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Wed Dec 18, 2013 11:54 pm    Post subject: Reply with quote

Thanks for the answers :)

I'm going to have to just trial-and-error my way through it a bit I think. I'll try using this scheme:

sda1 - winbootthing
sda2 - win
sda3 - swap / tmp (I saw somewhere that compiling is done in tmp)
sda4 - lin

I'm at work so I can't check right now, but iirc fdisk shows one of the win partitions as bootable, and that's really where my confusion is; do I unmark the win partition ... mark the lin as bootable ... then sort it out in grub? Do I mark them both? I'm fairly certain you can't do that.
Back to top
View user's profile Send private message
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Thu Dec 19, 2013 12:48 am    Post subject: Reply with quote

Nvm, found this in the sticky

"2. The installation instructions say that when using fdisk you should set the bootable flag for the boot partition. In this configuration, should both the NTFS partition and Linux bootable partition be marked as bootable?

No. It is better that only one partition is flagged as bootable (for M$Windoze's sake, which gets confused with two flags). If you have a FAT16 as your first partition, have that flagged as bootable because WinXP would install there its boot loader (NTLDR). "


So I'll give that a shot.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Dec 19, 2013 8:22 am    Post subject: Reply with quote

If you want to add Gentoo without disturbing the Windows install, which is often useful
for laptops, you can edit the Windows boot manager with BCD and then boot through
Windows on a short timeout to a Grub boot menu. That way the MBR and everything
else Windows sees remains unchanged.

Will
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Sat Dec 21, 2013 3:20 am    Post subject: Reply with quote

The following applies to Win NT thru XP. I don't know about anything higher.

You want to edit C:\boot.ini, either by changing the read only flag and using notepad (that's what I do) or on XP, go to Settings->Control Panel->System->Advanced->Startup and Recovery->Settings->Edit. Now add the line
Quote:
C:\BOOTSECT.LNX="Gentoo Linux"
Leave the other stuff alone.

example:
    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /usepmtimer /NoExecute=OptIn /pae
    C:\BOOTSECT.LNX="Gentoo Linux"



Now you have to create bootsect.lnx. So boot into your Linux using CD/USB stick and chroot into your installation. Now the following applies to grub legacy and LILO (IIRC), I don't know about grub2:
Assume Windows on first partition of first drive(/dev/sda1) and the grub/LILO boot on the third partition of the same drive (/dev/sda3), adjust the device names as required, do the following:
Code:

mkdir /cdrive
mount /dev/sda1 /cdrive  (you may or may not have to 'mount -t ntfs /dev/sda1 /cdrive')
dd if=/dev/sda3 of=bootsect.lnx bs=512 count=1
mv bootsect.lnx /cdrive


Now reboot and Windows will give you the choice of "Gentoo Linux" when it comes up.

Of course, "Gentoo Linux" could be any phrase i.e. "Crazy OS" and the name bootsect.lnx is not significant either and Windows doesn't care about the case. You could do the dd directly into /cdrive but if you type wrong you could write all over your windows drive. I did that once by forgetting the "count=1" and it made a 40GB file that was a partition duplicate.


Last edited by Tony0945 on Sat Dec 21, 2013 2:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Dec 21, 2013 8:40 am    Post subject: Reply with quote

Windows 7 works the same way, except that the menu format is binary, so you need a special editor to handle it.
(I think one may come with Windows).

Will
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