LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems setting up a MultiOS boot with two harddrives (https://www.linuxquestions.org/questions/linux-newbie-8/problems-setting-up-a-multios-boot-with-two-harddrives-4175515799/)

Motte 08-21-2014 09:56 AM

Problems setting up a MultiOS boot with two harddrives
 
Hi everyone,

I hope this is the right forum for this question.

I want to set up a MultiOS boot with two harddrives:
- sda for windows, there are 6 partitions on this harddrive:
- sda1, primary for windows installation
- sda2, extended partition containing sda5 to sda8 for various purposes
- sdb for linux, right now there are 6 partitions on this one:
- sdb1, system reserved from windows (i'm really not sure what this is for :()
- sdba2, primary for ubuntu root
- sdba4, primary for debian root
- sdba3, extended partition containing:
- sdb5, Mageia root
- sdb6, swap
- sdb7, /home (for all linuxes)
At first I didn't want to set up a MultiOs system at all which is why I didn't pay attention on how to do this right from scratch. So now I have various problems:

1. Installed Ubuntu at first, grub is located on sdb. From this grub menu I can boot into Windows, Ubuntu and Debian. But Debian installed it's own grub on sda, which only can boot Ubuntu and Debian but NOT Windows. Normally this doesn't cause any trouble because I have set sdb as the primary boot option in bios. But now I want to configure my MultiOS system properly so I want to remove grub from sda.

2. After installing Mageia the grub menu on sdb started behaving weirdly. I use Grub Customizer to edit the grub menu to my needs. Since installing Mageia, there appearing too many items for booting Mageia. I'm not speaking of one main item and a sub-directory containg additional options like recovery mode or older kernel versions. The grub menu now looks like this:

- Mageia 4
- Mageia 4
- Mageia 4
- <... following round about 6 other mageia entries>
- Windows 8.1 ( starting with this entry the list is mostly like I want it to be)
- Mageia 4
> Additional options for Megeia
- Mageia 4 (NO recovery, older kernel versions or something else was added ...)
- Ubuntu 14.04
> Additional options for Ubuntu (everything ok in here)
- Debian 7.5 Wheezy
> Additional options for Debian (everything ok in here)
- Memory Test (memtest86+)
- Memory Test (memtest86+, serial console)

I have tried using Grub Customizer to remove the redundant Mageia entries, but they keep reappearing.
How can I get rid of this?
Additionally, I can't boot into Mageia. Instead, an error message occurs concerning driver issues. I don't think this has to do anything with grub problems, but I will check the exact message and post it here, too.

I hope my description was comprehensible :redface: and there is a solution to my problem.

Regards :)

Ztcoracat 08-21-2014 08:10 PM

You have a lot going on and you may just have to re-install. I'm not sure if you will be able to re-partition what you have.

What size HDD's are you refering to? (128 GB, 500 GB or 1 or 2 TB)

(if you have 2TB HDD's I am not good with GPT partitioning, sorry)

Quote:

- sdb1, system reserved from windows (i'm really not sure what this is for
-:-It might be the Windows Recovery Partition-:-

Quote:

I can't boot into Mageia. Instead, an error message occurs concerning driver issues
Please post that exact error-

Did you change/modify the Mageia partitions?

Run the fdisk -l as 'root' and post the output so we can read through what partitions you have.
(post and put in code tags) Click on the (#) sign and right click in between the the code tags to do so-

EDDY1 08-21-2014 08:26 PM

I don't understand how System Reserved got put on sdb. Did you install Windows with both drives connected?

Ztcoracat 08-21-2014 08:32 PM

I don't know with certainty but I am suspicious that if a Raid Array may have been to blame for System Reserve to be bumped to sdb:-?

Motte 08-22-2014 04:46 AM

Oh dang I hope I didn't fubar my system :(

First things first:

1.
sda is 2TB, sdb is 250GB large.
2.
Display Driver Issue
==============
The display driver currently configured requires you to use the nokmsboot boot option to prevent the KMS driver from being loaded in the boot process.
(I had to look it up because I have it displayed in german but I didn't want to bother you with translation errors. Source: https://forums.mageia.org/en/viewtopic.php?f=23&t=1971
"Original" message:
http://www.directupload.net/file/d/3...7nedzh_jpg.htm
3.
Code:

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Festplattenidentifikation: 0x7083b668

  Gerät  boot.    Anfang        Ende    Blöcke  Id  System
/dev/sda1  *        2048  204802047  102400000    7  HPFS/NTFS/exFAT
/dev/sda2      204802048  3907026943  1851112448    f  W95 Erw. (LBA)
/dev/sda5      204804096  409604095  102400000    7  HPFS/NTFS/exFAT
/dev/sda6      409606144  1638406143  614400000    7  HPFS/NTFS/exFAT
/dev/sda7      1638408192  3276808191  819200000    7  HPFS/NTFS/exFAT
/dev/sda8      3276810240  3907026943  315108352    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 Köpfe, 63 Sektoren/Spur, 30401 Zylinder, zusammen 488397168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Festplattenidentifikation: 0x39153914

  Gerät  boot.    Anfang        Ende    Blöcke  Id  System
/dev/sdb1  *        2048      718847      358400    7  HPFS/NTFS/exFAT
/dev/sdb2          718848    42661887    20971520  83  Linux
/dev/sdb3        84606921  206241791    60817435+  5  Erweiterte
/dev/sdb4        42661888    84604927    20971520  83  Linux
/dev/sdb5        84606976  126544004    20968514+  83  Linux
/dev/sdb6      126550016  143327231    8388608  82  Linux Swap / Solaris
/dev/sdb7      143329280  206241791    31456256  83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge


4. Yes I installed Windows with both hard drives connected. sdb is my old hard drive, I hade Windows XP installed on it before installing Windows 7 on sda. I guess Win 7 just left the reserved space on sdb. This would explain why I can't use sda to boot into Windows. (I can't tell if had Win XP installed while installing Win 7 or if I deleted it beforehand. I am completely sure I had all my data on sdb, then installed Win 7 on sda and then migrated all data to sda. After this I completely whiped sdb.)

5. No sda and sdb are connected via sata separately and I didn't set up a raid mode.

yancek 08-22-2014 08:54 AM

It would help if you posted more detailed information. The bootinfoscript, which you can download from the site below, when run will output a results.txt file which will have information on drives/partition and boot files which should point in the right direction.

http://sourceforge.net/projects/bootinfoscript/

EDDY1 08-22-2014 09:04 AM

That explains it, windows will only create a new SystemReserved if it doesn't detect it other than that it will overwrite the existing. The only problem I can see is if sdb goes bad your Windows recovery tools will be gone too. Or if you remove sdb windows is no longer bootable. If I used 2 drives the wins drive would have it's own bootloader & sdb would be grub. In fact I would've just kept windows on 250Gig drive as sda with MBR untouched, then put linx on the other drive along with grub. sda appears to be all windows how much of the drive is it taking?

Motte 08-24-2014 11:18 AM

1 Attachment(s)
Ok I ran bootinfoscript. See attachments for results.txt.

sda is 2TB big and the paritions are taking up the whole space (but there is free space in those partitions). I installed Win7 on sda because I wanted to have one hdd for linux and one for windows. If I had known about the reserved space I would have disconnected sdb before installing Win7 on sda ... Is there a way to migrate the recovery space to sda?

EDDY1 08-24-2014 02:50 PM

I believe that it is possible but it's not like linux, you would have to remap the drive.

Ztcoracat 08-25-2014 01:39 PM

Quote:

Originally Posted by Motte (Post 5226412)
Ok I ran bootinfoscript. See attachments for results.txt.

sda is 2TB big and the paritions are taking up the whole space (but there is free space in those partitions). I installed Win7 on sda because I wanted to have one hdd for linux and one for windows. If I had known about the reserved space I would have disconnected sdb before installing Win7 on sda ... Is there a way to migrate the recovery space to sda?

If you don't mind me asking; where did the Boot Info Summary 'default to' after you ran the bootinfoscript?

yancek 08-25-2014 02:55 PM

Quote:

If you don't mind me asking; where did the Boot Info Summary 'default to' after you ran the bootinfoscript?
The instructions link in the Description box takes you to a new page which indicates it will be in the same directory from which the script was run.

http://bootinfoscript.sourceforge.net/

Ztcoracat 08-25-2014 03:29 PM

Quote:

Originally Posted by yancek (Post 5227079)
The instructions link in the Description box takes you to a new page which indicates it will be in the same directory from which the script was run.

http://bootinfoscript.sourceforge.net/

Thanks!

Motte 08-25-2014 04:17 PM

The results.txt was "defaulted" (what a nice verb :D) into my root directory.

I'm not 100% sure why this happened. I placed the script file into my root directory
using nautilus I ran using sudo. After this I closed nautilus and ran the script using sudo.

Using sudo grants temporarily root acces so the script was able to place the file into the root directory right?

EDDY1 08-25-2014 04:39 PM

Yes but you can still read it with
Quote:

sudo cat results.txt

Motte 08-25-2014 05:07 PM

Oh I had no problems reading it. I was just wondering if I understood what happened :D

So, is there a solution to my problem?


All times are GMT -5. The time now is 01:25 AM.