Dual Boot concern

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Dual Boot concern

Post by BewilderedBob » Tue Oct 22, 2019 3:17 pm

I am a recovering Windows user and definitely a newbie to Linux who in a triumph of superstition and intuition was able to install both Linux Mint 19.2 Cinnamon and Ubuntu 19.04 on the same SSD. But during boot there appear to be THREE choices instead of the expected TWO (Mint and Ubuntu). The 3 choices are -

(1) Linux Mint 19.2
(2) Ubuntu 19.04 on sda1
(3) Ubuntu 19.04 on sda5

There are 2 drives on my HP tower - (1) 250 GB SSD - sda1 ?? (2) 320 GB HD - sdb1 ?? (intended for filesystem use only)

QUESTIONS - (1) is "sda5" the same as PARTITION 5 (ext4 on dev/sda1) ? (2) why are there 2 entries for Ubuntu ? (3) shd one of them be ignored or deleted ?

Very Bewildered Bob

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: Dual Boot concern

Post by WharfRat » Tue Oct 22, 2019 4:57 pm

Hello Bewildered Bob Image

Welcome to Linux Mint and the Linux Mint forum :)

sda5 and sda1 are two separate partitions.

When you install another linux distro the last installed takes control of the initial boot with the grub menu.

Can you paste back the results of sudo blkid and mount|grep -w /
ImageImage

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Wed Oct 23, 2019 4:44 am

Hello Wharf Rat: Thanx for quick reply. I may not have worded the question abt SDA5 correctly. Is "SDA1" both a hardware disk drive (as in "dev/sda1") and a partition on dev/sda1 ?? You said that SDA5 apparently is only a partition (as is SDA1) if so both partitions are on SDA1 hardware drive I think. The properly worded question shd then be: in Linux jargon is "SDAx" a disk drive or only a partition on a drive or sometimes both ?

Bewildered Bob

User avatar
Pierre
Level 19
Level 19
Posts: 9171
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Dual Boot concern

Post by Pierre » Wed Oct 23, 2019 4:57 am

Hi Bob,

in Linux terms:
- - SDA5 would be the 4th partition on an physical drive No1 .. ( Linux counts from zero )
and thus "SDAx" would refer to an Partition, that is part of an Drive structure.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: Dual Boot concern

Post by WharfRat » Wed Oct 23, 2019 9:35 am

BewilderedBob wrote:
Wed Oct 23, 2019 4:44 am
Hello Wharf Rat: Thanx for quick reply. I may not have worded the question abt SDA5 correctly. Is "SDA1" both a hardware disk drive (as in "dev/sda1") and a partition on dev/sda1 ?? You said that SDA5 apparently is only a partition (as is SDA1) if so both partitions are on SDA1 hardware drive I think. The properly worded question shd then be: in Linux jargon is "SDAx" a disk drive or only a partition on a drive or sometimes both ?

Bewildered Bob
In the world of Linux, /dev/sda is the physical block device (HDD) and /dev/sda1 would be the first partition on the device.

Code: Select all

[bill@XPS] ~ $ ls -la /dev/sda?
brw-rw---- 1 root disk 8, 1 2019-10-23 08:22:05 /dev/sda1
brw-rw---- 1 root disk 8, 2 2019-10-23 08:22:04 /dev/sda2
brw-rw---- 1 root disk 8, 3 2019-10-23 08:22:04 /dev/sda3
brw-rw---- 1 root disk 8, 4 2019-10-23 08:22:05 /dev/sda4
brw-rw---- 1 root disk 8, 5 2019-10-23 08:22:04 /dev/sda5
brw-rw---- 1 root disk 8, 6 2019-10-23 08:22:03 /dev/sda6
brw-rw---- 1 root disk 8, 7 2019-10-23 08:22:04 /dev/sda7
brw-rw---- 1 root disk 8, 8 2019-10-23 08:22:05 /dev/sda8
brw-rw---- 1 root disk 8, 9 2019-10-23 08:22:05 /dev/sda9
[bill@XPS] ~ $ 
My system in installed on /dev/sda2 as shown with

Code: Select all

[bill@XPS] ~ $ mount|grep -w /
/dev/sda2 on / type ext4 (rw,noatime,errors=remount-ro,stripe=32752,data=ordered)
[bill@XPS] ~ $ 
The efi partition is the first one

Code: Select all

[bill@XPS] ~ $ mount|grep /boot/efi
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
[bill@XPS] ~ $ 
This can be a little confusing for new users, but it will make sense after time :wink:
ImageImage

Paul_Pedant
Level 1
Level 1
Posts: 33
Joined: Wed Sep 25, 2019 1:34 pm
Location: Bath, UK

Re: Dual Boot concern

Post by Paul_Pedant » Wed Oct 23, 2019 11:41 am

These outputs might be easier to understand. I set this all up with Gparted.

This lsblk shows all my block devices that are visible, with their mount points.
sda Internal HDD, sdc External USB drive, sr0 Internal DVD.

Code: Select all

Prompt --) lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0   100M  0 part
├─sda2   8:2    0   178G  0 part
├─sda3   8:3    0     1K  0 part
├─sda4   8:4    0  22.5G  0 part
├─sda5   8:5    0 128.4G  0 part
├─sda6   8:6    0     4G  0 part /boot
├─sda7   8:7    0    20G  0 part /
├─sda8   8:8    0    12G  0 part [SWAP]
└─sda9   8:9    0 100.7G  0 part /home
sdc      8:32   0 298.1G  0 disk
├─sdc1   8:33   0   4.9G  0 part /media/paul/BOOT
├─sdc2   8:34   0  78.1G  0 part /media/paul/DATA
├─sdc3   8:35   0     1K  0 part
├─sdc5   8:37   0  39.1G  0 part /media/paul/TIMESHIFT
└─sdc6   8:38   0   176G  0 part /media/paul/BACKUPS
sr0     11:0    1  96.5M  0 rom  /media/paul/CDROM
This is the output from: sudo cfdisk sda and sudo cfdisk sdc.
It is interactive -- you have to Tab to "Quit" and tap Enter.
It shows sda 1-4 are primary partitions.
sda3 is an extended partition, containing locical partitions 5-9.
Dual-boot: Windows can't see (or damage) the Linux partitions.
You can correlate the types with the mount points using the sizes.

Code: Select all

                                            Disk: /dev/sda
                        Size: 465.8 GiB, 500107862016 bytes, 976773168 sectors
                                  Label: dos, identifier: 0x26ac197a

    Device         Boot           Start          End      Sectors     Size   Id Type
>>  /dev/sda1      *               2048       206847       204800     100M    7 HPFS/NTFS/exFAT       
    /dev/sda2                    206848    373499903    373293056     178G    7 HPFS/NTFS/exFAT
    /dev/sda3                 373501950    929533951    556032002   265.1G    f W95 Ext'd (LBA)
    ├─/dev/sda5               373501952    642813951    269312000   128.4G    7 HPFS/NTFS/exFAT
    ├─/dev/sda6               642816000    651204607      8388608       4G   83 Linux
    ├─/dev/sda7               651206656    693149695     41943040      20G   83 Linux
    ├─/dev/sda8               693151744    718317567     25165824      12G   82 Linux swap / Solar
    └─/dev/sda9               718319616    929533951    211214336   100.7G   83 Linux
    /dev/sda4                 929533952    976773119     47239168    22.5G   27 Hidden NTFS WinRE

Code: Select all

                                            Disk: /dev/sdc
                        Size: 298.1 GiB, 320072933376 bytes, 625142448 sectors
                                  Label: dos, identifier: 0xcd413b52

    Device          Boot            Start          End      Sectors      Size    Id Type
>>  /dev/sdc1                          63     10249469     10249407      4.9G     7 HPFS/NTFS/exFAT   
    /dev/sdc2                    10249470    174096404    163846935     78.1G     7 HPFS/NTFS/exFAT
    /dev/sdc3                   174096405    625137344    451040940    215.1G     5 Extended
    ├─/dev/sdc5                 174096468    256011839     81915372     39.1G    83 Linux
    └─/dev/sdc6                 256011903    625137344    369125442      176G    83 Linux
    Free space                  625137664    625142447         4784      2.3M

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Thu Oct 24, 2019 4:38 pm

WharfRat wrote:
Tue Oct 22, 2019 4:57 pm
Hello Bewildered Bob Image

Welcome to Linux Mint and the Linux Mint forum :)

sda5 and sda1 are two separate partitions.

When you install another linux distro the last installed takes control of the initial boot with the grub menu.

Can you paste back the results of sudo blkid and mount|grep -w /
=================================== FIRST CMD ======================================
bobb@bobb-HP-505B-Microtower-PC:~$ sudo blkid
[sudo] password for bobb:
/dev/sda1: UUID="119d9e2e-8f19-4b94-b7ab-cfca053112f0" TYPE="ext4" PARTUUID="0486bf69-01"
/dev/sda5: UUID="82e1304b-35e8-421b-904e-b59a85c5e4d6" TYPE="ext4" PARTUUID="0486bf69-05"
/dev/sdb1: UUID="cee59b41-13ff-476a-9b78-f5d7550860e5" TYPE="ext4" PARTUUID="235a6125-76ad-4ffd-adab-103a20098eda"
/dev/sdb2: LABEL="Part 2" UUID="2fa2e854-0f5f-4ae3-a873-cb604f173b27" TYPE="xfs" PARTUUID="f2b7d360-0437-4d5c-b7a2-d7b98a9e0805"
======================================================================================================

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Thu Oct 24, 2019 4:48 pm

BewilderedBob wrote:
Thu Oct 24, 2019 4:38 pm
WharfRat wrote:
Tue Oct 22, 2019 4:57 pm
Hello Bewildered Bob Image

Welcome to Linux Mint and the Linux Mint forum :)

sda5 and sda1 are two separate partitions.

When you install another linux distro the last installed takes control of the initial boot with the grub menu.

Can you paste back the results of sudo blkid and mount|grep -w /
=================================== FIRST CMD ======================================

Code: Select all

 bobb@bobb-HP-505B-Microtower-PC:~$ sudo blkid
[sudo] password for bobb:       
/dev/sda1: UUID="119d9e2e-8f19-4b94-b7ab-cfca053112f0" TYPE="ext4" PARTUUID="0486bf69-01"
/dev/sda5: UUID="82e1304b-35e8-421b-904e-b59a85c5e4d6" TYPE="ext4" PARTUUID="0486bf69-05"
/dev/sdb1: UUID="cee59b41-13ff-476a-9b78-f5d7550860e5" TYPE="ext4" PARTUUID="235a6125-76ad-4ffd-adab-103a20098eda"
/dev/sdb2: LABEL="Part 2" UUID="2fa2e854-0f5f-4ae3-a873-cb604f173b27" TYPE="xfs" PARTUUID="f2b7d360-0437-4d5c-b7a2-d7b98a9e0805"
======================================================================================================


===================================== SECOND CMD ====================================

Code: Select all

 bobb@bobb-HP-505B-Microtower-PC:~$ mount | grep -w /
/dev/sdb1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: Dual Boot concern

Post by WharfRat » Thu Oct 24, 2019 5:03 pm

OK, so you're booted to the /dev/sdb1 installation - which should be Linux Mint 19.2 :?

According to your initial post
(2) Ubuntu 19.04 on sda1
(3) Ubuntu 19.04 on sda5

you have ubuntu installed twice since both partitions /dev/sda1 and /dev/sda5 show TYPE="ext4" for the file system,
/dev/sda1: UUID="119d9e2e-8f19-4b94-b7ab-cfca053112f0" TYPE="ext4" PARTUUID="0486bf69-01"
/dev/sda5: UUID="82e1304b-35e8-421b-904e-b59a85c5e4d6" TYPE="ext4" PARTUUID="0486bf69-05"

Are you under the impression that you only have two installations :?:

Paste back the results of sudo grub-mkconfig|grep ^menuentry
ImageImage

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Fri Oct 25, 2019 2:53 pm

Wharf Rat: apparently the tech gremlins got into my system unit because all I hoped to do initially was install both Ubuntu and LM on SSD dev/sda. But it did not work as intended. Is there an EZ way to update the currently installed config to what I had hoped for or must the drive be re-formatted before reloading the 2 OSes from DVD ? Thanx.

Bob

Code: Select all

bobb@bobb-HP-505B-Microtower-PC:~$ sudo grub-mkconfig|grep ^menuentry
[sudo] password for bobb:       
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-66-generic
Found initrd image: /boot/initrd.img-4.15.0-66-generic
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cee59b41-13ff-476a-9b78-f5d7550860e5' {
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.15.0-54-generic
Found initrd image: /boot/initrd.img-4.15.0-54-generic
Found memtest86+ image: /boot/memtest86+.elf
menuentry 'Memory test (memtest86+)' {
Found memtest86+ image: /boot/memtest86+.bin
menuentry 'Memory test (memtest86+, serial console 115200)' {
Found Ubuntu 19.04 (19.04) on /dev/sda1
menuentry 'Ubuntu 19.04 (19.04) (on /dev/sda1)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-119d9e2e-8f19-4b94-b7ab-cfca053112f0' {
Found Ubuntu 19.04 (19.04) on /dev/sda5
menuentry 'Ubuntu 19.04 (19.04) (on /dev/sda5)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-82e1304b-35e8-421b-904e-b59a85c5e4d6' {
done
 

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: Dual Boot concern

Post by WharfRat » Fri Oct 25, 2019 3:48 pm

Which distro did you install last and which Ubuntu do you want to preserve - the one on sda1 or sda5 :?:
ImageImage

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Sat Oct 26, 2019 3:07 pm

Wharf Rat: Ubuntu 19.04 was installed FIRST (before LM 19.2) on a newly formatted SSD. There were/are 3 partitions created on dev/sda1 -

(1) part # 1 (ext4) - 100 GB
(2) part # 2 (extended) - 150 GB
(3) part # 5 (ext4) - 150 GB

when "disks" are displayed parts 2 & 5 are shown together (over & under) for some unknown reason.

In my humble opinion it doesn't matter which part is used assuming that both Ubuntu & LM can "co-reside" on same disk drive. What do you recommend ? Thanx.

Bob

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: Dual Boot concern

Post by WharfRat » Sat Oct 26, 2019 5:53 pm

Now I'm bewildered :?

/dev/sda5 has menuentry 'Ubuntu 19.04 (19.04) (on /dev/sda5) - probably /dev/sda2 is the extended partition and /dev/sda5 is the logical.

I don't have an extended partition to check, but O thought it would show with blkid - but I could be wrong.

Can you provide a gparted or disks screenshot just to be sure :?:
ImageImage

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Mon Oct 28, 2019 2:58 am

Wharf Rat: you are probably correct abt partition properties. Both GPARTED and DISKS show that -

(1) SDA1 is "ext4" ('boot' appears under "flags" and is only appearance of 'boot' for either disk)
(2) SDA2 is "extended"
(3) SDA5 is same size as SDA2 and indented under SDA2 (does that mean logical ??) and also "ext4"
=============================================================================
(4) SDB1 is "ext4"
(5) SDB2 is "xfs"

Can I assume that both OSes reside somewhere on SDA leaving SDB avail for files ?

Thanx.
Bob

ps: If you request actual display of screen data what is easiest way (specific steps) to send it in Linux. I'm familiar with Win cmds but can use some help with Linux.

User avatar
Pierre
Level 19
Level 19
Posts: 9171
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Dual Boot concern

Post by Pierre » Mon Oct 28, 2019 3:13 am

can you use the program Disks, to grab an screen_shot,
- of both drives ? that is, two screen_shots ?. one of each drive ?.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: Dual Boot concern

Post by WharfRat » Mon Oct 28, 2019 10:59 am

BewilderedBob wrote:
Mon Oct 28, 2019 2:58 am
Wharf Rat: you are probably correct abt partition properties. Both GPARTED and DISKS show that -

(1) SDA1 is "ext4" ('boot' appears under "flags" and is only appearance of 'boot' for either disk)
(2) SDA2 is "extended"
(3) SDA5 is same size as SDA2 and indented under SDA2 (does that mean logical ??) and also "ext4"
=============================================================================
(4) SDB1 is "ext4"
(5) SDB2 is "xfs"

Can I assume that both OSes reside somewhere on SDA leaving SDB avail for files ?

Thanx.
Bob

ps: If you request actual display of screen data what is easiest way (specific steps) to send it in Linux. I'm familiar with Win cmds but can use some help with Linux.
What you're saying makes sense - that sda2 is the extended and sda5 is the logical partition.

Now, do you want to remove Mint from sdb1 and replace one of the Ubuntu installations with Mint :?:

That sounds like your original intent, but something went awry :?
ImageImage

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Mon Oct 28, 2019 1:59 pm

Wharf Rat: you wrote -
Now, do you want to remove Mint from SDB1 and replace one of the Ubuntu installations with Mint


During boot the following major options appear in this sequence -
* LM 19.2 Cinnamon (but no source partition shown)
* UBUNTU 19.04 on dev/SDA1
* UBUNTU 19.04 on dev/SDA5

=================================================================
My preference is -
(1) assuming that LM 19.2 is on SDB1 as you state can it be placed on SSD HDA instead for faster access ? If so must it be re-installed ?
(2) remove Ubuntu from either partition on SDA since it is not needed in 2 partitions when only one location shd work
====================================================================================================

Do you agree ?

Bob

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: Dual Boot concern

Post by WharfRat » Mon Oct 28, 2019 3:23 pm

BewilderedBob wrote:
Mon Oct 28, 2019 1:59 pm
Wharf Rat: you wrote -
Now, do you want to remove Mint from SDB1 and replace one of the Ubuntu installations with Mint


During boot the following major options appear in this sequence -
* LM 19.2 Cinnamon (but no source partition shown)
* UBUNTU 19.04 on dev/SDA1
* UBUNTU 19.04 on dev/SDA5

=================================================================
My preference is -
(1) assuming that LM 19.2 is on SDB1 as you state can it be placed on SSD HDA instead for faster access ? If so must it be re-installed ?
(2) remove Ubuntu from either partition on SDA since it is not needed in 2 partitions when only one location shd work
====================================================================================================

Do you agree ?

Bob
When installing Mint (or Ubuntu for that matter) you have the "Something Else" option or "other" (I forget what it's called) which allows you to choose the location for installation.

Therefore there's no need to remove Ubuntu as installing with the other option will yield the same result.

All you have to do is choose either sda1 or sda5 for the location, set the mountpoint for / and check the format box.

That will install Mint to whichever partition you choose then you can later deal with the sdb1 partition - reformat it to eliminate the Mint installation there.

When it's gone then update grub from the new Mint installation to get rid of the sdb1 Mint choice.

Initially you'll end up with two Mint options, but the latest installation will be the first choice.

I also notice you have an xfs partition. Is anything stored there :?:

Take this one step at a time and be careful :wink:
ImageImage

BewilderedBob
Level 1
Level 1
Posts: 12
Joined: Tue Oct 22, 2019 2:57 pm

Re: Dual Boot concern

Post by BewilderedBob » Thu Oct 31, 2019 11:54 am

Wharf Rat: despite the tech gremlins best effort some progress is being made trying to config dual boot capability as I want it to be. Using GPARTED the partition on /sdb1 has been removed so that it no longer appears as an option during boot. I'm trying to streamline the GRUB menu using "Grub Configurator" but after editing the menu options the next boot fails to include the changes made. I've also tried <sudo update-grub> without success. There must be an easier way - any ideas ? Thanx.

still Bewildered Bob

User avatar
pbear
Level 8
Level 8
Posts: 2443
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Dual Boot concern

Post by pbear » Thu Oct 31, 2019 12:09 pm

BewilderedBob wrote:
Thu Oct 31, 2019 11:54 am
I'm trying to streamline the GRUB menu using "Grub Configurator"
Is that another name for Grub Customizer? If so, I suspect your doctor will not approve.
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

Post Reply

Return to “Installation & Boot”