xenialpup64bit alongside lubuntu [Solved]

Booting, installing, newbie
Message
Author
User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

xenialpup64bit alongside lubuntu [Solved]

#1 Post by d_vineet »

Hi !
I have now got rid of Windows totally. I have installed Lubuntu only.
Now wish to install xenialpup64bit on internal hard drive alongside lubuntu. (I am aware that puppy can be run from flash drive and changes can be saved to .sfs file. But still wish to install to HDD in dual boot mode).

Using Puppy installer -- universal installer -- internal IDE/SATA/SCSI is selected.
As in screenshot, it detected the partitions sda1 (vfat) & sda2(ext4).
Although I do not have windows, it thinks sda1 to be 'windows boot'.

Can I safely install to sda2 or do I need to shrink the sda2 using gparted and then install to newly created fresh partition?

On reading reply of @bigpup here -- http://murga-linux.com/puppy/viewtopic.php?t=115148 , I am confused regarding --
After installation, whether the bootloader would work correctly out-of-box or any tweaking (copy-paste) needed to menu.lst file (or maybe using grub4dos bootloader config)?
Since half knowledge is very dangerous, request to pl. provide instructions on the above mentioned points.

Thanks.
Attachments
install-to-hdd.png
(145.18 KiB) Downloaded 44 times
Last edited by d_vineet on Mon 21 Jan 2019, 08:46, edited 2 times in total.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

General warning!
If you have anything on the hard drive you do not want to or can not loose. Back it up on some other storage device.


Can I safely install to sda2
Yes, if you choose to do a frugal install of Xenialpup64 7.5
Frugal is the best way to install Puppy. Some features only work on a frugal install. Frugal is about how little space it uses.
it is still the complete OS.

No need to make a new partition, unless you just want to.

I am assuming Lubuntu is installed on sda2.

You need to do all of this booted into Xenialpup64 7.5 from a live CD install or a USB flash drive install.

Xenialpup64 7.5, installed as a frugal install, will just put Xenialpup in a directory.
It will not do anything to Lubuntu. It will just use some free space on sda2. Everything that Xenialpup64 7.5 does will be inside the Xenialpup64 7.5 directory.

Using the Puppy Universal Installer.

After you get Xenialpup installed as a frugal install.

You will need to setup a boot loader to boot Lubuntu and Xenialpup.

The Puppy Universal installer is going to offer some options.
Read those carefully. May want to do what it suggests.

The problem with trying to setup a bootloader to boot Linux OS's other than Puppy. Those other OS's keep changing how they boot. So, Getting a boot loader to work with all OS's can be a problem.

THis should work, but because of unknown changes can not be 100% sure.
Grub4dos has one issue with latest versions of Linux OS's making ext4 64bit formats.
Here is info about it and how to work around it.
http://murga-linux.com/puppy/viewtopic.php?t=111376

The best boot loader to try and use is the Grub4dos boot loader that comes in Xenialpup.
Run Grub4dos Config.
Select the hard drive as device to install on.
Select search within only this device.
Other selections should be good as is.
OK.
OK.
OK.
done.
Now should have a boot loader setup to give option to boot Lubuntu or Xenialpup.

Shutdown the live CD or USB of Xenialpup.
Remove them from the computer so only thing to boot from is the hard drive.
Boot computer and should boot to a boot menu with entries to boot Lubuntu or Xenialpup.

Good luck.
Let us know how it goes.
If something goes wrong we are here to help!
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#3 Post by foxpup »

Bigpup

If this is a EFI machine with gpt hd, I don't think grub4dos will work.
Or am I mistaken?

With the sda1 of only 512M I think it is an EFI machine with UEFI boot.
Then there must be a grub2 with grub.cfg from lubuntu in sda1. I would use that to add an entry for xenialpup.

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#4 Post by d_vineet »

@bigpup, as mentioned in the url you gave,
The current Grub2 (aka simply, Grub) is compatible with this newer filesystem
Whether it would be wiser to use Grub2?
If yes, how?
Secondly, how do I find out whether my laptop is EFI or otherwise? I can post back the finding.
Last edited by d_vineet on Fri 18 Jan 2019, 10:32, edited 1 time in total.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#5 Post by foxpup »

Easiest, look in sda1.
There should be /EFI/
You may still find the boot 'installation' of windows with its BCD configuration register
and grub2 with its configuration file grub.cfg of lubuntu.

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#6 Post by d_vineet »

/mnt/sda1 is blank
(since I have booted xenialpup from usb flash right now, I need to access sda1 as /mnt/sda1 . Hope I am doing it correctly).

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#7 Post by foxpup »

... and you can boot into lubuntu from hd?

Do you find grub.cfg on sda2?

No other small fat partition?

You can use gParted to look also. I think it wil tell if it is gpt or not. not gpt should be msdos table.

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#8 Post by d_vineet »

Yes. I can boot into lubuntu.
grub.cfg is on sda2/boot/grub.
No other small fat partition.
I have attached a screenshot showing sda2 in ROX-filer and also gparted.
btw, gparted shows that it's efi.
And there is /efi location in /mnt/sda2/boot.

There is 'grub.efi' Inside /mnt/sda2/boot/grub/x86_64-efi folder
Attachments
partitions.png
(131.76 KiB) Downloaded 40 times
Last edited by d_vineet on Fri 18 Jan 2019, 11:09, edited 1 time in total.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#9 Post by foxpup »

I find it very strange that /efi is there.
I thought that it had to be on a vfat partition with the esp/boot flag, like your sda1.

Anyway, can you look what is in it?
Can you also look for grub.cfg. It may be in /grub or /efi or /efi/boot or ???
EDIT: just saw you already have it.

Proceed like this:
You can put the sfs files, initrd.gz and vmlinuz from xenialpup in sda2. Put them in a directory "/xenialpup64" (or as you wish, the directory should be on /mnt/sda2/ directly, so not /mnt/sda2/Puppy/xenialpup64 but /mnt/sda2/xenialpup64).

Then find the grub.cfg, open it as text and add something like this:

Code: Select all

menuentry 'Puppy xenialpup64 CE 7.5 [666philb]' --unrestricted  --hotkey='x' { 
   search --file --set root --no-floppy /xenialpup64/initrd.gz 
   linux /xenialpup64/vmlinuz pmedia=usbflash pfix=fsck psubdir=/xenialpup64/ 
   initrd /xenialpup64/initrd.gz 
}
Reboot, you should see the entry besides those from lubuntu. (I suppose you have seen entries for lubuntu in grub.cfg)

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#10 Post by d_vineet »

So you mean to say that universal installer isn't necessary. Just copy these files (initrd.img, init.img.old, swapfile, vmzlinuz, vmzlinuz.old) as you mentioned and modify grub.cfg.
Am I right? If yes, I will do it right away and revert.
Attachments
puppy files.png
(200.13 KiB) Downloaded 35 times

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#11 Post by foxpup »

I'm beginning to wonder if lubuntu maybe uses legacy boot. Maybe legacy boot support has been set in your firmware, and when the firmware does not find any efi (sda1 empty), but does find legacy, it may use that.

What is on sda2? I mean sda2 directly, /mnt/sda2.

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#12 Post by d_vineet »

you can have a look at screenshot viz puppy files.png in my previous reply.
It shows contents of /mnt/sda2

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#13 Post by foxpup »

No, not the ones from lubuntu! :)
The ones from Puppy. They are in the iso of xenialpup and also on the usb. Don't forget the sfs files.

On sda2 is the full install of lubuntu.
You put xenialpup next to it, in the mid of it, in a directory "xenialpup64" (or whatever). That is a frugal install.
Last edited by foxpup on Fri 18 Jan 2019, 11:38, edited 1 time in total.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#14 Post by foxpup »

d_vineet wrote:you can have a look at screenshot viz puppy files.png in my previous reply.
It shows contents of /mnt/sda2
I see nothing there that looks like a boot installation, no legacy boot.

Have you booted into lubuntu since you ran Puppy universal installer?

I am still wondering how you boot?

Another piece of information you could look at is the BIOS, the firmware interface. You can enter it when you reboot and hit a key e few times before any screen comes up. The key to hit depends on the machine.
Last edited by foxpup on Fri 18 Jan 2019, 11:43, edited 1 time in total.

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#15 Post by d_vineet »

UPDATE:
Just now opened sda1 again. And it shows 2 folders viz BOOT & ubuntu.
I wonder why it was shown blank earlier.
I am sorry for the trouble caused to you because of this.
Attached screenshot shows them all.
(I have not run universal installer yet).
Attachments
sda1.png
(140.61 KiB) Downloaded 42 times

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#16 Post by foxpup »

d_vineet wrote:UPDATE:
Just now opened sda1 again. And it shows 2 folders viz BOOT & ubuntu.
I wonder why it was shown blank earlier.
I am sorry for the trouble caused to you because of this.
Attached screenshot shows them all.
(I have not run universal installer yet).
Wonderful! All questions solved!!
The grub.cfg to add the entry for Xenialpup is the one in /mnt/sda1/EFI/ubuntu and not the one on sda2.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#17 Post by foxpup »

Is there no /mnt/sda1/grub? (so next to /mnt/sda1/EFI)
It is not essential though, unless it also has a grub.cfg. One grub.cfg can refer to another one.
You should find the final one with the entries.
(The name does not necessarily have to be grub.cfg.)

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#18 Post by d_vineet »

there is no /mnt/sda1/grub folder.
Secondly, the grub.cfg file has only 3 lines as under.

Code: Select all

search.fs_uuid 546599f4-5519-400b-80b8-94b38d9b6ab3 root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
Is this the entry for lubuntu?
If this is correct, I will add the entry as shown by you.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#19 Post by foxpup »

This is funny!
In the first line it sets sda2 as root.
In the second line says that all grub things are in sda2/boot/grub.
In the third line it says the configuration file is sda2/boot/grub/grub.cfg.
We are back where we started!!

You have to add the lines for Puppy to /mnt/sda2/boot/grub/grub.cfg anyway.

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#20 Post by d_vineet »

Added the lines to /mnt/sda2/boot/grub/grub.cfg at end of file.
Also copied files to /sda2/xenialpup64 folder.
Then removed usb flash drive and restarted.
But on restart, the system booted straight into Lubuntu. Boot options were not shown.
Imp note:- (in fact, before puppy also, no boot menu was shown). So maybe this grub.config is not being loaded and some different file is used?

I have attached the file (instead of reproducing the full code) to keep this post tidy.
Can you pl. have a look and suggest?
For ready reference, last few lines with added code at bottom look as under.

Code: Select all

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
menuentry 'Puppy xenialpup64 CE 7.5 [666philb]' --unrestricted  --hotkey='x' {
   search --file --set root --no-floppy /xenialpup64/initrd.gz
   linux /xenialpup64/vmlinuz pmedia=usbflash pfix=fsck psubdir=/xenialpup64/
   initrd /xenialpup64/initrd.gz
}
Maybe, the "pmedia=usbflash" option isn't correct?
Last edited by d_vineet on Fri 18 Jan 2019, 13:01, edited 1 time in total.

Post Reply