Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Jun 2018, 07:41
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
My UEFI dual boot method
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
ozsouth

Joined: 01 Jan 2010
Posts: 333
Location: S.E Australia

PostPosted: Fri 20 Apr 2018, 03:29    Post subject:  My UEFI dual boot method  

USE AT OWN RISK.

This is how I set up my uefi machine to dual boot 64 bit puppy install on windows 10 pc with on gpt HDD with grub 2.0.

You need your puppy frugally installed to a usb stick.
Get bootx64.efix & copy to usb stick.
see http://s000.tinyupload.com/?file_id=41747518613557151049

in bios:
turn off secure boot
enable legacy
if TPM in security section, disable and clear.

then:
boot into windows (8 - 10) & go to settings

Select 'choose what power button does' & then extra settings

turn off fast boot and choose sleep wherever hibernate is.

Go to Administrative tools & then disk management

shrink c: drive (making unused space for linux, minimum 30Gb)

reboot - pressing F9 (usually) as booting up to get boot device menu

usb boot your linux distro

use gparted (system menu) to create ext4 partition(s) in unused space.

Mount a linux partition to use (possibly sda6).
Make a folder in it called puppy. Remember these details!

Mount usb drive you booted from. Copy vmlinuz, initrd.gz & all .sfs
files into puppy folder you made. Unmount linux partition.

Mount 32bit windows efi boot partition (usually sda1 or sda2)

rename EFI folder to EFI-w & create new EFI folder.
Inside it, create boot folder.
Copy bootx64.efix into boot folder & rename to bootx64.efi

Inside boot folder, create puppy folder.

Copy vmlinuz & initrd.gz from usb stick into puppy folder. Unmount usb stick.

Go back to root of efi boot partition & create grub.cfg

Edit grub.cfg to look like this (ASSUMES LINUX ON SDA6):

#

set default="0"

set timeout=5

menuentry "Puppy" {

linux /EFI/boot/puppy/vmlinuz psubdir=puppy pfix=fsck root=/dev/sda6 rootwait ro
initrd /EFI/boot/puppy/initrd.gz

}

menuentry "Windows" {
insmod part_gpt
insmod chain
chainloader /EFI-w/Microsoft/Boot/bootmgfw.efi
}

#


Should now be able to reboot into puppy. Remove usb stick after reboot starts.

VITAL NOTE: Every time you run windows update, it will break
the boot loader. Must boot via usb & fix.
Back to top
View user's profile Send private message 
foxpup


Joined: 29 Jul 2016
Posts: 461
Location: europa near northsea

PostPosted: Fri 20 Apr 2018, 04:31    Post subject: Re: My UEFI dual boot method  

ozsouth wrote:
VITAL NOTE: Every time you run windows update, it will break the boot loader. Must boot via usb & fix.
That is because you replaced the windows boot installation with the Puppy installation. You fool Windows into believing its boot installation is still there, so it maintains it. You can put the Puppy boot installation next to the windows installation under /EFI/ (I think, will have to look at home). Then you should look if you find it in the EFI bios: probably not , because it is not a complete installation of grub, just a binary. You can solve that by installing refind as well, next to it. That will be in bios and you can configure it to chainload windows or the grub for Puppy or even start Puppy directly. That is roughly how fatdog (first I think), slacko, quirky and other Puppies do it also.

Quote:
Mount 32bit windows efi boot partition (usually sda1 or sda2)
You probably mean vfat32 partition with esp boot flag.

Nice description of what you did!
I may try to write out what I have done also.
Back to top
View user's profile Send private message 
Limbomusic


Joined: 15 Apr 2016
Posts: 266
Location: Norway

PostPosted: Fri 20 Apr 2018, 07:39    Post subject: cool
Subject description: but also
 

Hope its okay to chime in with:
The excellent LICK by noryb009 may be the easiest way to dual boot a win10 machine with puppy linux. (uefi or not) especially for newcomers.
https://github.com/noryb009/lick
(Which I mirrored at http://helledussen.com/linux/files/LICK-1.2.0-win32.exe)

You just run lick. (for me, it took some time installing the boot-loader but just wait, it finishes eventually)
Then just drag any puppy-ISO over and it will get added to boot-menu.

If u get "partition hibernated by windows" - boot into windows - right click start button-> "Windows power-shell-Admin" and type in:
powercfg -h off
and reboot
Back to top
View user's profile Send private message Visit poster's website 
ozsouth

Joined: 01 Jan 2010
Posts: 333
Location: S.E Australia

PostPosted: Sat 21 Apr 2018, 02:26    Post subject:  

@Limbo - that's fine. I now remember I got the bootloader from one of your posts.
Didn't have much luck with earlier versions of LICK, but point n click sounds good.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0477s ][ Queries: 14 (0.0083s) ][ GZIP on ]