You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Remove 2.8 and dual boot 3.4 with Ubuntu

Author (Read 10845 times)

0 Members and 1 Guest are viewing this topic.

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #18 on: July 02, 2017, 04:00:22 PM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
All three items returned positive comment as you stated.
I booted ll-3.4 and now was getting to update and use synaptic
But I no longer have a valid password
Looked in help session and found a program for resetting password
This program written by Jerry for ll-3.0
Can i use to reset the password in ll3.4
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #17 on: July 01, 2017, 10:03:52 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
You didn't say, but I'm assuming you ran the chmod command on os-prober script and can now boot into LL3.4.  Correct?


Now you just need to get rid of old entry for LL2.8.  To do that you'll need to open the 40_custom script with a text editor as root/admin and delete the custom menu entry.  I don't know what text editor you have on Ubuntu, but I think it might be gedit.  So, I'll use gedit in commands below.  If that's not the text editor you have on Ubuntu, substitute the correct one in place of gedit in the command.  (If you're not sure, just open the text editor and go to Help->About and it should say what name of editor is.)


To open the file as root in the text editor use this command in a terminal:
Code: [Select]
gksu gedit /etc/grub.d/40_custom

In the opened file, delete everything after the line:  # the 'exec tail' line above.  You should then only have this in the file:
Code: [Select]
#!/bin/sh
exec tail -n +3 $0
# 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.


Save the file, then close the text editor.


Back in the terminal, now update grub one more time.
Code: [Select]
sudo update-grub

Now you should only have Ubuntu and LL3.4 choices for booting in grub menu and Ubuntu will be first (default) choice.
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #16 on: July 01, 2017, 08:30:47 PM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
ray@Ray-Kudu-Pro:~$ sudo cat /etc/grub.d/40_custom
[sudo] password for ray:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry 'Linux Lite 2.8 (14.04) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-2c94c91e-503b-40c8-99a1-7fbf06d54273' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos3'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  2c94c91e-503b-40c8-99a1-7fbf06d54273
    else
      search --no-floppy --fs-uuid --set=root 2c94c91e-503b-40c8-99a1-7fbf06d54273
    fi
    linux /boot/vmlinuz-3.13.0-24-generic root=UUID=2c94c91e-503b-40c8-99a1-7fbf06d54273 ro quiet splash $vt_handoff --
    initrd /boot/initrd.img-3.13.0-24-generic
}
ray@Ray-Kudu-Pro:~$
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #15 on: July 01, 2017, 04:45:38 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
As suspected, the os-prober script has been de-activated in Ubuntu so it doesn't run when doing an update to grub, therefore doesn't add entry for new LL3.4.  You'll need to re-activate it by running this command from a terminal in Ubuntu:
Code: [Select]
sudo chmod 755 /etc/grub.d/30_os-prober

Now run command to update grub:
Code: [Select]
sudo update-grub


Reboot and you should see an entry for LL3.4 and be able to boot into it.


In all likelihood you'll still see an old (non-working) entry for LL2.8 as one of the choices.  I suspect that 40_custom script in Ubuntu's /etc/grub.d folder may have been used for that.  Post back output of this command from a terminal in Ubuntu:
Code: [Select]
cat /etc/grub.d/40_custom
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #14 on: July 01, 2017, 03:54:19 PM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
ray@Ray-Kudu-Pro:~$ ls -la /etc/grub.d
total 96
drwxr-xr-x   2 root root  4096 Jun 16 20:53 .
drwxr-xr-x 146 root root 12288 Jul  1 09:29 ..
-rwxr-xr-x   1 root root  9791 Dec 19  2015 00_header
-rwxr-xr-x   1 root root  6258 Mar 15  2016 05_debian_theme
-rwxr-xr-x   1 root root 12512 Mar  1 14:52 10_linux
-rwxr-xr-x   1 root root 11082 Jun 17  2016 20_linux_xen
-rwxr-xr-x   1 root root  1992 Mar 12  2014 20_memtest86+
-rw-r--r--   1 root root 11692 Apr 11  2014 30_os-prober
-rwxr-xr-x   1 root root  1418 Jun 17  2016 30_uefi-firmware
-rwxr-xr-x   1 root root   905 Mar  5 20:09 40_custom
-rwxr-xr-x   1 root root   216 Apr 11  2014 41_custom
-rw-r--r--   1 root root   483 Apr 11  2014 README
ray@Ray-Kudu-Pro:~$
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #13 on: July 01, 2017, 01:17:11 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Output confirms LL3.4 installed, os-prober command sees it, but update-grub command does not.  Ubuntu's grub.cfg file still has old LL2.8 entry.


If memory serves me, LL2.8 is a version that did not play well with others if its grub was not the one in control of booting.  (I believe that is no longer the case with newer versions of LL.)  So my best guess is that you must have had to manually do something special in Ubuntu to make an entry that would boot LL2.8 and to de-activate the os-prober script from running when performing an update to grub (eg. for new Ubuntu kernels) so that grub updates would not break ability to boot LL2.8.


Boot into Ubuntu and post back with output from this command please:
Code: [Select]
ls -la /etc/grub.d
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #12 on: July 01, 2017, 09:41:42 AM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Code: [Select]
Ray-Kudu-Pro:~$ sudo mount /dev/sda3 /mnt
[sudo] password for ray:
Ray-Kudu-Pro:~$ cat /mnt/etc/issue
Linux Lite 3.4 LTS \n \l
Ray-Kudu-Pro:~$ sudo umount /dev/sda3
Ray-Kudu-Pro:~$
Ray-Kudu-Pro:~$ sudo update-grub
[sudo] password for ray:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-83-generic
Found initrd image: /boot/initrd.img-4.4.0-83-generic
Found linux image: /boot/vmlinuz-4.4.0-81-generic
Found initrd image: /boot/initrd.img-4.4.0-81-generic
Found linux image: /boot/vmlinuz-4.4.0-79-generic
Found initrd image: /boot/initrd.img-4.4.0-79-generic
Found linux image: /boot/vmlinuz-4.4.0-78-generic
Found initrd image: /boot/initrd.img-4.4.0-78-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
« Last Edit: July 01, 2017, 01:23:10 PM by gold_finger »
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #11 on: July 01, 2017, 09:38:10 AM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Code: [Select]
Ray-Kudu-Pro:~$ sudo os-prober
[sudo] password for ray:
/dev/sda3:Linux Lite 3.4 (16.04):Ubuntu:linux
Ray-Kudu-Pro:~$ cat /boot/grub/grub.cfg | grep "menuentry '"
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-83-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-83-generic-advanced-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-83-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-83-generic-init-upstart-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-83-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-83-generic-recovery-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-81-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-81-generic-advanced-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-81-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-81-generic-init-upstart-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-81-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-81-generic-recovery-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-79-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-79-generic-advanced-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-79-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-79-generic-init-upstart-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-79-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-79-generic-recovery-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-78-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-78-generic-advanced-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-78-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-78-generic-init-upstart-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
    menuentry 'Ubuntu, with Linux 4.4.0-78-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-78-generic-recovery-5dbc3e00-edb2-4b6c-a2b8-bc024e5000e1' {
menuentry 'Memory test (memtest86+)' {
menuentry 'Memory test (memtest86+, serial console 115200)' {
menuentry 'Linux Lite 2.8 (14.04) (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-2c94c91e-503b-40c8-99a1-7fbf06d54273' {
« Last Edit: July 01, 2017, 01:20:53 PM by gold_finger »
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #10 on: July 01, 2017, 05:18:29 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
That's strange -- don't know why it would be showing LL as 2.8 still.  When you installed LL3.4 did you remember to check the box to format the root partition (/dev/sda3) that you installed to?  If not, do the installation again and format the partition.


Otherwise, ...


Boot into Ubuntu, open a terminal and post back here with output from following commands.  (See this post for instructions on how to post terminal output to forum using code blocks.)
Code: [Select]
sudo os-prober
cat /boot/grub/grub.cfg | grep "menuentry '"
(NOTE:  "menuentry '" part of command is typed as double-quote, menuentry, space, single-quote, double-quote.)


Now, going to have you mount the LL root partition in terminal, run a command to confirm the version installed, then unmount it.  Post back with output of these commands also:
Code: [Select]
sudo mount /dev/sda3 /mnt
cat /mnt/etc/issue
sudo umount /dev/sda3




P.s.
I edited your prior posts with terminal output to put them in code blocks.  For some reason (unknown to me) lines with the "@" character between "Ray" and "Ray-Kudu-Pro" seem to automatically trigger the forum software to convert the line into something referring to a member with username "Ray".  Just ignore that -- it's a glitch in forum software design ... a very annoying glitch (to me at least).
« Last Edit: July 01, 2017, 06:08:41 AM by gold_finger »
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #9 on: June 30, 2017, 05:18:46 PM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Well something went wrong..When I try to boot Linux-lite nothing happens for thr first and second try On the third try it boots Ubuntu.
I insralled grub boot to the sda3 parimeter
I ran update-grub and showed a bunch of kernels and also it stated a configutation file
When booting linux Linux a message came on screen to small and too fast to read or copy
Grub menu continues to show 2.8 on sda3
Any thing I can show you to help
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #8 on: June 28, 2017, 08:02:30 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
You do use the ISO file you downloaded, but you need to burn that to a DVD or USB in order to boot computer with it and install.  In your LL2.8 installation you can use the xfburn program to burn the ISO as an "image" to a DVD; or you can use the dd command in a terminal to make a live USB from the ISO file.  (See the Help Manual for dd command instructions.)


Quote from: phil66
Is parted more accurate than gparted or is it only preference
You can look at partitions in GParted if you prefer that to entering terminal command.  It will show same info as parted command -- eg.  what is shown as /dev/sda3 with parted will also show as /dev/sda3 in GParted.  (I just happen to prefer terminal commands myself.)
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #7 on: June 28, 2017, 11:05:58 AM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Thanks for the install procedure,question why does ll-3.4 require a usb/dvd to install rather than using the iso which I downloaded and ran md5 to verify
Is parted more accurate than gparted or is it only preference
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #6 on: June 28, 2017, 02:39:44 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Okay, fairly simple process.  If you have anything on LL2.8 that you want saved, copy it off to USB stick or external drive first.


Boot with live LL3.4 USB/DVD.  Before starting install, open a terminal and run the sudo parted --list command to confirm that partitions are still called the same thing as shown in your post above.  (Partition numbering is a bit strange -- starts with sda2 instead of sda1 -- but sometimes that happens.  So you'll want to confirm that current LL2.8 root partition is still called sda3.  If the numbering is different, you'll know the LL2.8 partition by its "Type" -- it's the only "primary" partition.)


Start the installer and choose the "Something Else" install method.  That will bring you to a partition selection page.  Highlight the old LL2.8 root partition, click the "Change" button and in the pop-up box do:
  • Use as = Ext4 file system
  • Size = leave as it already is -- no change
  • Mount point = / (for root)
  • Check the box to Format the partition
  • Done  (If installer complains that you changed size of partition, even though you did not, ignore message and hit the "Go back" button.  All will be fine.)
No need to do anything with Swap partition.  Installer will automatically see and use that.


IMPORTANT:  Near bottom, set "Device for boot loader installation" = the LL3.4 root partition (eg. /dev/sda3) instead of the default of /dev/sda.  (Assuming Ubuntu was installed after LL2.8 and you did not manually divert boot loader installation for it, Ubuntu's grub is currently controlling boot process because its grub is set in the MBR --  /dev/sda.  So, to keep things as they are don't install LL3.4's grub to /dev/sda.)


Finish install once all of above is set.


When done shutdown/reboot without live USB/DVD.


Boot first into Ubuntu, not LL.  (The grub listing for LL will not work yet because it will still be looking for LL2.8.)  Open a terminal in Ubuntu and run this command to update grub so it finds the new LL3.4 and adjusts the menu accordingly:
Code: [Select]
sudo update-grub

Close terminal, reboot computer and listing for LL should now boot you into the new LL3.4 installation.
« Last Edit: June 28, 2017, 02:41:25 AM by gold_finger »
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #5 on: June 26, 2017, 09:13:36 PM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Code: [Select]
ray[member=5018]Ray[/member]-Kudu-Pro:~$ sudo parted --list
[sudo] password for ray:
Model: ATA HGST HTS725050A7 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 3      41.9GB  83.8GB  41.9GB  primary   ext4            boot
 2      83.8GB  500GB   416GB   extended
 6      83.8GB  125GB   40.8GB  logical   ext4
 5      492GB   500GB   8466MB  logical   linux-swap(v1)


ray[member=5018]Ray[/member]-Kudu-Pro:~$
« Last Edit: July 01, 2017, 05:30:17 AM by gold_finger »
 

Re: Remove 2.8 and dual boot 3.4 with Ubuntu
« Reply #4 on: June 26, 2017, 09:10:34 PM »
 

phil66

  • Occasional Poster
  • **
  • 63
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
I want to keep Ubuntu in the first position
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section