Results 1 to 10 of 10

Thread: Install Windows after openSUSE Linux (Encrypted)

  1. #1

    Default Install Windows after openSUSE Linux (Encrypted)

    Hi,
    I have a HP 630 notebook on which i have installed openSUSE Leap 15.0 on an encrypted EXT4 partition, along with Windows 7. So I have the following partitions:
    Boot partition for Win7
    NTFS partition with Win7
    EXT4 encrypted with openSUSE (root)
    /boot partition for openSUSE.

    So the /boot partition is required to boot the encrypted EXT4. YaST -> Boot Loader reports that openSUSE starts from partition and from Master Boot Record.

    Now, I need to re-install Windows 7 due to a bug in a driver that corrupted the system, can you please suggest me a procedure in order to restore GRUB after Windows will have overwritten the MBR?

    Thanks in advance,

    Bye
    hawake

  2. #2
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,681

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    What is the output from
    Code:
    parted -l
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  3. #3

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    Code:
    linux-mr0h:/home/hawake # parted -l
    Modello: ATA Hitachi HTS54755 (scsi)
    Disco /dev/sda: 500GB
    Dimensione del settore (logica/fisica): 512B/4096B
    Tabella delle partizioni: msdos
    Flag del disco: 
    
    Numero  Inizio  Fine   Dimensione  Tipo     File system     Flag
     1      1049kB  186GB  186GB       primary                  type=07
     2      186GB   497GB  311GB       primary                  avvio, type=83
     3      497GB   497GB  210MB       primary  ext4            type=83
     4      497GB   500GB  2976MB      primary  linux-swap(v1)  type=82
    
    
    linux-mr0h:/home/hawake #
    I forget to mention the SWAP space in the previous post, but the strange thing is that it see just one partition for Windows (the one of 186 GB).

    Thanks,

    Bye
    hawake

  4. #4
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,681

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    I have no idea whether encryption might affect this, but without encryption at least, using YaST, Grub could be put on the /boot partition on sda3 instead of the MBR, a boot flag set on sda3, and the MBR configured with generic boot code. Follow that with a test boot of openSUSE to be sure it was correctly done. Next install Windows. Once you have Windows the way you want it, any number of tools in Windows, or any bootable Linux media, could be used to move the boot flag back from sda1 (where Windows installation will put it) to sda3. Grub does not need to be on MBR to boot Linux: https://old-en.opensuse.org/Bugs/gru...orking_GRUB.3F
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  5. #5

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    What i do not understand is why YaST suggest to create a /boot partition during openSUSE installation process and parted -l see the / partition as the bootable one (in the previous code listing, the root partition is the one of 311 GB, the /boot is of 210 MB).

    BTW I will try the procedure you suggested.

    Thanks!

    Bye
    hawake

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,742

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    If encryption is used it is normal to suggest a separate boot to prevent need to enter passwords twice

  7. #7

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    Quote Originally Posted by gogalthorp View Post
    If encryption is used it is normal to suggest a separate boot to prevent need to enter passwords twice
    Ok, but why it setup as bootable the root partition instead the /boot one?

  8. #8

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    Quote Originally Posted by mrmazda View Post
    I have no idea whether encryption might affect this, but without encryption at least, using YaST, Grub could be put on the /boot partition on sda3 instead of the MBR, a boot flag set on sda3, and the MBR configured with generic boot code. Follow that with a test boot of openSUSE to be sure it was correctly done.
    So, from YaST -> Boot Loader, i uncheck "Boot from Master Boot Record" and leave checked "Boot from partition" (as it is right now, both are checked)?

    Thanks,

    Bye
    hawake

  9. #9
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,681

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    Quote Originally Posted by hawake View Post
    So, from YaST -> Boot Loader, i uncheck "Boot from Master Boot Record" and leave checked "Boot from partition" (as it is right now, both are checked)?
    Checks need to be only on:
    1-Boot from [Root] Partition
    2-Write generic Code to MBR
    3-Set active Flag in Partition Table for Boot Partition
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  10. #10

    Default Re: Install Windows after openSUSE Linux (Encrypted)

    Quote Originally Posted by mrmazda View Post
    Checks need to be only on:
    1-Boot from [Root] Partition
    2-Write generic Code to MBR
    3-Set active Flag in Partition Table for Boot Partition
    It worked! Thank you very much.

    Thanks to this procedure I was able to install Windows and encrypt it with Veracrypt, while maintaining dual-boot with encrypted openSUSE.

    Bye
    hawake

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •