Triple booting Windows 7, OpenSUSE and Mint (Ubuntu)

Yes, I’ve read a bunch of threads on dual- and triple booting, but I think I have to be walked through this.

I have Windows 7 installed (+ some sort of recovery and HP partition, this is on a HP G72 laptop). I installed Mint (based on Ubuntu) alongside it, then OpenSUSE, whose boot loader didn’t see Mint. Installing OpenSUSE before Mint solves that problem, but I’d rather have OpenSUSE’s pretty boot loader than Mint’s. So how would I get that to work?

OpenSUSE and Mint creates their own separate swap partitions, I’d like them to share one, and also one “data” partition to share between all three OS’s.

The HD is 350 GB.
OpenSUSE 11.4
Mint 11rc

It’s unusual that a distro installer would create another swap if one already exists.
Are you planning to re-do both Mint and SUSE or do you want to try and reconfigure?

If so we would need to see
fdisk -l
from either one of the running OS’s or a Live CD

I’m going to reinstall SUSE and Mint, this setup is just to see how it works with the hardware.

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x696d6a5d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048      409599      203776    7  HPFS/NTFS/exFAT
/dev/sda2          409600    60349053    29969727    7  HPFS/NTFS/exFAT
/dev/sda3       624928768   625140399      105816    c  W95 FAT32 (LBA)
/dev/sda4   *    60350462   624928767   282289153    f  W95 Ext'd (LBA)
/dev/sda5       118947840   123154431     2103296   82  Linux swap / Solaris
/dev/sda6       123156480   165099519    20971520   83  Linux
/dev/sda7       165101568   396317794   115608113+  83  Linux
/dev/sda8       396318720   615548927   109615104   83  Linux
/dev/sda9       615550976   624928767     4688896   82  Linux swap / Solaris
/dev/sda10       60350464   112939007    26294272   83  Linux
/dev/sda11      112941056   118945791     3002368   82  Linux swap / Solaris

Partition table entries are not in disk order

I think I didn’t make any changes to the suggested partitioning when installing the linuxes.

Which one is the data partition? Does it already contain stuff?

I didn’t make one. But in any case I’ll overwrite all but the Windows partitions when I reinstall.

Then it is very simple.
[ul]
[li]Boot with a live system like PartedMagic and delete all your linux and swap partitions except sda5 (the first swap partition)[/li][li]Create the following partitions and format them as ext4: [/li][LIST]
[li]sda6 ( Mint / )[/li][li]sda7 ( Mint /home )[/li][li]sda8 ( openSUSE / )[/li][li]sda9 (openSUSE /home)[/li][li]sda10 (/data)[/li][/ul]
[li] Install Mint. I don’t know Mint but if it is like Ubuntu you must have an option “Custom partitioning” or something like that. In any case, choose the option which sounds the most complicated and is in fact the only decent one (this is true for all setups). In this installation mode, you would select the partitions you want to use one by one, choose (or assign) a mount point and (optionally) format them. Give the partitions the following mount points and format them all in ext4: [/li][ul]
[li]sda6 /[/li][li]sda7 /home[/li][li]sda8 /suse[/li][li]sda9 /suse/home[/li][li]sda10 /data[/li][/ul]
and choose sda5 as your swap partition
[li] Let Mint install Grub in MBR (we’ll overwrite it later)[/li][li] Install openSUSE and choose Create Partition Setup, followed by Custom Partitioning (for experts) [/li][li] Same thing, select the partitions one by one but DO NOT FORMAT sda6 and sda7 ; also select sda5 as swap but do not format it (or its UUID will change). Choose the following mountpoints: [/li][ul]
[li]sda6 /mint[/li][li]sda7 /mint/home[/li][li]sda8 /[/li][li]sda9 /home[/li][li]sda10 /data[/li][/ul]
[li] By default openSUSE should write a generic bootcode in the MBR (one of the rare occasion where this debatable feature would be useful to anyone!) , install Grub in sda8 and set the extended partition active. In doubt you can check by clicking on Booting in the Installation Settings[/li][li]Where you’re done reboot. You might see Windows in Boot Menu (or not). You won’t see Mint. But I’m sure you’ll come back and we’ll tell you how to add it. [/li][/LIST]

Of course, there are many ways to do it. I just tried to make it as simple and efficient as possible.

  • I suggested this order because you mentionned that you wanted openSUSE’s Grub as your default bootloader.

please_try_again, your method of each distro having their own home partition seems messy to me, but it does make things easier on distro upgrades. I would install each distro into their own OS, not having a separate home partition. Then create symlinks for Documents, Downloads, Music, etc to the data partition. This allows each distro to have their own settings folders, but prevents an additional two partitions that eat up disk space.
Just my opinion.

Then it can not be that ‘messy’.

Yes, you can do that do. It basically doesn’t change the method. You would just create two fewer partitions.

Yes.

This allows each distro to have their own settings folders, but prevents an additional two partitions that eat up disk space.

Agreed.

I’m actually more worried about that:

I don’t know why people (or setups) insist of creating the extended partition in the middle. In theory, it should not matter. But in fact, it does (although I’m not sure why). If you want to call something ‘messy’, that would apply to this partitioning rather than to separate /home partitions.

@funky_uncle
Actually, before installing any Linux, I would recommand defragmenting your FAT32 partition in Windows, then moving it up against the second partition with a partitoning tool (like partition magic under Windows or PartedMagic), finally creating all partitions you need for both Linux, including swap, data and either one or two for each distro, whether you decide to go with separate /home or not (neither big deal nor big difference). We’ve seen cases where openSUSE’s Grub would not boot from a logical partition if the partition table entries are not in disk order (which is the case here) or/and if the extended partition is in the middle. You would have to install openSUSE’s Grub in MBR in order to boot, which is uncomplicated, but maybe not the best option while multibooting with Windows.

Please be aware and keep in mind that it is advisable to backup your data before moving a partition.

  • there are other ways to fix this partition table entries order I did not mention because it would probably sound more complicated.

Then it can not be that ‘messy’.

So taking up extra disc space is not messy just to keep things easy for an install in the future, which may need settings in the /home partition to be removed anyway.

You would just create two fewer partitions.
So two fewer partitions, thus simplicity is not messy?

I don’t know why people (or setups) insist of creating the extended partition in the middle. In theory, it should not matter. But in fact, it does (although I’m not sure why). If you want to call something ‘messy’, that would apply to this partitioning rather than to separate /home partitions.

Nice catch, I didn’t even bother to look at the heads, I just trusted the table.
How did the partition end up in the middle? If HP did a recovery, where is the 100MB “System Reserved” Boot partition?

I wouldn’t call two fewer partitions ‘simplicity’, but I might not be a good judge.

I don’t know. I guess one of the Linux automatic partitioning setups must have done that. There are a couple other posts describing a more or less similar situation.

I’m neither a Windows specialist nor a Windows user (for many years) … but sda1 and sda3 both look pretty small.

Thanks for the tips and the help so far.

I’m keeping Windows only to play Monkey Island I & II, and for the rare occasions when something won’t work in Wine. I don’t plan to install much there, and I guess I don’t really need more than one partition for it. I won’t use the HP bloatware anyway. This PC is brand new and I don’t have any important data to lose, so if and install goes awry I’ll just try again.

Go for it
I like @please_try_again’s approach
I actually formatted my Lenovo’s, both came with windows. I then installed windows in a single partition (But I have access to proper installation media for windows)

I’ve deleted the partitions as suggested, but I don’t know how big the new partitions should be.

I guess the /data partition must be formatted as ntfs to allow Windows to access it. This is how it looks now:

http://img827.imageshack.us/img827/263/gparted.png](http://img827.imageshack.us/i/gparted.png/)

Uploaded with ImageShack.us

next delete sda5, then delete the extended one, then move sda3 up against sda2, create the extended partition (sda4) that will fill the entire unallocated space, and finally create the following logical partitions:

  • sda5 (swap) : 2 GB
  • sda6 (mint / ) : 40 GB
  • sda7 (mint /home) : 10 GB
  • sad8 (openSUSE /): 40 GB
  • sda9 (openSUSE /home) : 10 GB
  • sda10 (/data) : the rest

or you don’t use a separate /home and in this case:

  • sda5 (swap) : 2 GB
  • sda6 (mint / ) : 50 GB
  • sad7 (openSUSE /): 50 GB
  • sda8 (/data) : the rest

Just two possibilities out of many.

Right on, I’ll try this now. Another question though - if I figure out later I’m not going to use one of the OS’s, is it as simple as deleting those partitions and resizing /data?

Are you planning to share /data with Windows? In this case you should format it as ntfs, not ext4 and maybe make the /home partitions bigger (like 20 GiB). And it would be a little bit better to create it as the first logical partition (sda5) - that way you wouldn’t have to move it before resizing. Resizing an ext4 partition is possible but, as I never do it, I can not recommand it.

I made the /data partition ntfs. I don’t see why /home should be bigger because of that?

In any case, I’ve got MInt and SUSE installed but only SUSE and Windows show up in grub, as you said.

It should not. Forget it! There is no clear answer about the size of /home partitions.

In any case, I’ve got MInt and SUSE installed but only SUSE and Windows show up in grub, as you said.

That’s great. Now have a look at this howto: updategrub for openSUSE Legacy Grub (not update-grub!) and install updategrub, as described in the installation section. You can then run this script to add Mint entries to your Grub menu.

That was easy, thanks!

Now if I can only get this problem sorted out I’ll probably be using SUSE as my main OS: Touchpad tapping suddenly disabled for no apparent reason (and a few other things)

You should run updategrub again after a Mint kernel update.

I suggest starting a new thread for that.