| View previous topic :: View next topic |
| Author |
Message |
hd_lowrider n00b

Joined: 02 Apr 2012 Posts: 12
|
Posted: Mon Apr 02, 2012 6:53 pm Post subject: Triple boot (win 7,8 and Gentoo) |
|
|
I could use some help with the partition scheme for Triple boot (win 7,8 and Gentoo) This is what I have so far.
1) primary ntfs 40GB
2) primary ntfs 40GB
3) primary /boot linux 32MB (31MB)
4) logical /swap linux/swap 4GB
5) logical / linux 32GB
I am currently installing win 7 and I believe windows is is using "3" for boot but I am not sure. (after second thought maybe not)
Update: installing win 8 on partition (2)
Does This look right?
Any better suggestions?
Is 31MB big enough for /boot?
I am a Linux newbie (in case you can't tell) so please be gentle, it's my first time.
hp pavilion dv5139 |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Mon Apr 02, 2012 7:41 pm Post subject: Re: Triple boot (win 7,8 and Gentoo) |
|
|
Really?
| hd_lowrider wrote: | | Is 31MB big enough for /boot? |
norm |
|
| Back to top |
|
 |
hd_lowrider n00b

Joined: 02 Apr 2012 Posts: 12
|
Posted: Mon Apr 02, 2012 8:13 pm Post subject: Re: Triple boot (win 7,8 and Gentoo) |
|
|
| ultraincognito wrote: |
Really? |
Yea, I am a glutton for punishment, hence Gentoo as my first try at Linux .
but his is were I'm at
installed win 7 and 8 (took about an hour, at that rate I should have Gentoo installed in no time)
setting up my wireless looked a little complicated so skipped that just plugged in ethernet, took a few minutes but I am now on line.
This is what I have now
sda1 boot 7 ntfs
sda2 7 ntfs
sda3 83 Linux
sda4 5 extended
sda5 82 swap
sda6 83 Linux
Do I remove the boot from sda1 and add to sda 3
Can't have 2 boots ? can I? |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Mon Apr 02, 2012 8:21 pm Post subject: |
|
|
hd_lowrider,
| Quote: | | Do I remove the boot from sda1 and add to sda 3 |
Don't touch it! |
|
| Back to top |
|
 |
hd_lowrider n00b

Joined: 02 Apr 2012 Posts: 12
|
Posted: Mon Apr 02, 2012 8:27 pm Post subject: |
|
|
| BillWho wrote: | hd_lowrider,
| Quote: | | Do I remove the boot from sda1 and add to sda 3 |
Don't touch it! |
oops...... I guess when I ask a question I should wait for answer.
I am changing it back now. |
|
| Back to top |
|
 |
ultraincognito Guru


Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Tue Apr 03, 2012 8:26 am Post subject: |
|
|
| The Linux doesn't require that a partition is marked as "boot". The Windows does it itself during the installation. Then you shouldn't do it yourself. |
|
| Back to top |
|
 |
hd_lowrider n00b

Joined: 02 Apr 2012 Posts: 12
|
Posted: Wed Apr 04, 2012 1:33 am Post subject: |
|
|
WOW! I got this to work first try (well... sort of) I didn't bother with video, sound, ethernet and a few other things (I did not expect this to work first try). Thanks for the help.
Although I am able to boot into win 7,8 and Gentoo it does not work quite like I wanted.
what I have now is
Gentoo
windows
Then windows give me option to boot win7 or win8.
I would like to have 3 different bootable OS's
win7
win8
Gentoo
Can this be achieved? If so I could use a little help, Also I would like to make win7 my default OS. Can I just change the order of my grub.conf? I would just give it a try and see what happens but I just realized I made a slight mistake, I formatted my root partition to ext2 . Since I am not familiar with Linux partition formats I have no idea if there is any way to fix this (I think not) besides reinstalling Gentoo, Oh well guess I can use the practice.
Is ext4 preferred over ext3?
Once Again Thanks for your help and Patience |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Wed Apr 04, 2012 4:30 am Post subject: |
|
|
hd_lowrider,
| Quote: | | WOW! I got this to work first try |
Congratulation and welcome to gentoo. A first-time boot is a good sign.
To convert your / partition to ext3, burn a systemrescue cd, boot it and
| Code: | | tune2fs -c 0 -i 30 -j /dev/sda? |
Replace '?' with the appropriate partition number and don't forget to change it in fstab. Also, if you have rootfstype= in the menu.list, that will have to be changed too.
Although it's said to be safe to convert a partition even if it's mounted, I don't trust running tune2fs on a mounted partition.
Now as far as booting goes I'm not really that sure about this, but I think you should be able to chainload windows like this:
| Code: | title Windows 8
root (hd0,8)
chainloader +1
title Windows 7
root (hd0,7)
chainloader +1
|
Naturally, you're going to use the correct 'root' parameters.
Good luck  |
|
| Back to top |
|
 |
hd_lowrider n00b

Joined: 02 Apr 2012 Posts: 12
|
Posted: Wed Apr 04, 2012 6:43 pm Post subject: |
|
|
Thanks, Bill for the info on the rescue cd this will certainly come in handy in the near future (as soon as I learn how to use it) although at this point t seems like every answer just leads to more questions .
| BillWho wrote: |
Now as far as booting goes I'm not really that sure about this, but I think you should be able to chainload windows like this:
| Code: | title Windows 8
root (hd0,2)
chainloader +1
title Windows 7
root (hd0,1)
chainloader +1
|
|
yea that's what I had/have, well close, the second chainloader I marked as +2 (no idea why just seemed liked the thing to do) I changed it to +1 still no luck.
I should have been accurate in my post. This is what I actually have:
Gentoo
Gentoo (rescue)
win7
win8
The win7 boots to win7 or 8 option and the win8 does not work.
Thanks again |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Wed Apr 04, 2012 7:30 pm Post subject: |
|
|
hd_lowrider,
If you used the partitioning scheme from your previous post
sda1 boot 7 ntfs
sda2 7 ntfs
sda3 83 Linux
sda4 5 extended
sda5 82 swap
sda6 83 Linux
then try
| Code: | title Windows 8 on sda2
root (hd0,1)
hide (hd0,0)
unhide (hd0,1)
makeactive
chainloader +1
title Windows 7 on sda1
root (hd0,0)
hide (hd0,1)
unhide (hd0,0)
makeactive
chainloader +1 |
I've never tried to boot two windows installations, nor do I even have a desire to boot one. And to complicate matters further, grub confuses me too
Good luck  |
|
| Back to top |
|
 |
hd_lowrider n00b

Joined: 02 Apr 2012 Posts: 12
|
Posted: Wed Apr 04, 2012 10:31 pm Post subject: |
|
|
| BillWho wrote: |
| Code: | title Windows 8 on sda2
root (hd0,1)
hide (hd0,0)
unhide (hd0,1)
makeactive
chainloader +1
title Windows 7 on sda1
root (hd0,0)
hide (hd0,1)
unhide (hd0,0)
makeactive
chainloader +1 |
|
That did not work too well, I believe the win 8 partition was hidden but would not unhide at which point windows 8 offered me a plethora of repair and recovery option, I could not resist playing with these new features...... and how did that go you ask..... NOT TO GOOD! . The windows 7 partition was wiped clean, this is when I realized win 8 partition was hidden. After reinstalling win 7 I found out grub no longer worked, to make a long story short one pass with kill disk wiped away all my problems.
I use acronis true image to copy windows drives, I assume this will work for Linux as well.I already know how to use this and always like learning something new. Any recommendations on disk imaging software? |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Wed Apr 04, 2012 10:54 pm Post subject: |
|
|
hd_lowrider,
| Quote: | | After reinstalling win 7 I found out grub no longer worked |
Yep, that's a given. The windows installer doesn't play at all with grub. You can chroot into gentoo and follow the grub installation and all will be fine again
If you burn that rescue cd I mentioned in a prior post, you'll find that very useful. Just choose option 5 to boot to the graphical environment and it will drop you right into a gui terminal so you can be on your way to repair. You can also launch firefox to get to the gentoo handbook.
| Quote: | | I use acronis true image to copy windows drives |
There's no need for acronis or any other disk imaging software. Linux has a core utility called "dd". I use it quite frequently especially before making major modifications.
This is how I save my / partition:
| Code: | | dd if=/dev/sdb14 | gzip -c > /media/linuxshared/gentoo/gentooroot.img.gz |
If I need to restore it (which I have on a few occassions):
| Code: | | gunzip -c /media/linuxshared/gentoo/gentooroot.img.gz | dd of=/dev/sdb14 |
| Quote: | | I already know how to use this and always like learning something new |
You're going to be a genius by the time you finish this gentoo project
Good luck  |
|
| Back to top |
|
 |
hd_lowrider n00b

Joined: 02 Apr 2012 Posts: 12
|
Posted: Fri Apr 06, 2012 7:32 am Post subject: |
|
|
Thanks again for all the help, I must admit there is a slight learning curve to all this and it is a much bigger undertaking than I had planned on. I now have have the video and sound working and installed xorg (or should I say emerged?) but the default position of the terminals are off. I still have my bcm 4318 wireless card,network and printer setup deal with and then maybe I can start to learn a little something about Linux/Gentoo.  |
|
| Back to top |
|
 |
Helpless n00b

Joined: 15 Apr 2012 Posts: 9
|
Posted: Wed Apr 18, 2012 5:58 pm Post subject: Triple boot (win 7,8 and Gentoo) |
|
|
Hi hd_lowrider
This is first time I'm trying Gentoo.and I still prefer grub to grub2 because of the problems I had.
Regarding your need, I suggest you get another drive because of my bitter experience.
1. Partition disk into half.
2. Install Windows8 to first partition.
3. "Ghost" or image the partition to the 2nd drive and burn it to dvd.
4. Shift Windows8 to the second partition.
5. Install Windows7 into the first partition, image the partition to the second drive and burn to dvd.
6. This will make it is easier to re-image the OS later.
7. Change the bios to boot from the 2nd drive
8. Install gentoo or any other flavour linux on the second drive
9. Install grub to the the second drive and keep the bios unchange
10 I also suggest you unhide and hide whichever Windows you want to boot into before set "root (hdx,x)"
Here is a sample of my grub.conf file. My install is WindowsXP in 2nd partition and WindowsNT on the first and Puppy Linux in the 2nd drive
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Mon Aug 22 12:01:58 2011
#
# The backup copy of the MBR for drive '/dev/sdb' is
# here '/boot/grub/mbr.sdb.4392'. You can restore it like this.
# dd if=/boot/grub/mbr.sdb.4392 of=/dev/sdb bs=512 count=1
#
# Start GRUB global section
timeout 10
default 0
color light-gray/blue black/light-gray
# End GRUB global section
# Other bootable partition config begins
title Windows NT Workstation (on /dev/sda4)
map (hd0,0) (hd1,3)
map (hd1,3) (hd0,0)
unhide (hd1,3)
hide (hd1,0)
rootnoverify (hd1,3)
makeactive
chainloader +1
# Other bootable partition config ends
# Other bootable partition config begins
title Windows XP Professional (on /dev/sda1)
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
unhide (hd1,0)
hide (hd1,3)
rootnoverify (hd1,0)
makeactive
chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
title Puppy Linux (on /dev/sdb2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sdb3 ro vga=normal
I hope this helps
Cheers
Helpless |
|
| Back to top |
|
 |
|