I have just discovered that sysrescue is no longer listed in the grub
boot menu.
Did this happen since I installed dual boot MGA6??
Before I forget it, again, If you are sharing $HOME Desktop Environment
(DE) between installs,be prepared for the possibility of running mga6
and doing something that will clobber your mga7 DE.
Based on all the information needed for the analysis and not provided,
I will guess yes.
The entry in mga7 grub.cfg was created by the script you placed in mga7's /etc/grub.d
When you installed mga6, you used mga6's /etc/grub.d which did not have
the systemrescue grub entry generation script.
After you installed mga6, you should have booted mga7 an told mga7 grub
to generate a new grub.cfg, and install it as your "Production" boot loader.
Read the last 4 lines of this reply, I'll wait . . . . . . . . . . . . .
So, as root, on booted mga7,
update-grub
grub2-install /dev/XYZ At this point I will have to guess
that XYZ is nvme0n1
I see where you are going with this. But I have stumbled across another problem
**************
lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT
NAME SIZE FSTYPE LABEL MOUNTPOINT
sda 5.5T
└─sda1 5.5T ext4 video /video
sr0 1024M
nvme0n1 119.2G
├─nvme0n1p1 299M vfat
├─nvme0n1p2 22.3G ext4 mageia /
├─nvme0n1p3 10.6G swap swap [SWAP]
├─nvme0n1p4 12.2G ext4 tmp /tmp
├─nvme0n1p5 20.4G ext4 mageia_bu
├─nvme0n1p6 2G ext4 boot_iso
└─nvme0n1p7 24.9G ext4 mageia_6 /run/media/faeychild/mageia_6
GOOD GOD what have I done??
On Sat, 19 Oct 2019 09:38:37 +1100, faeychild wrote:Once again a severely interrupted Saturday and I am obviously cursed to
I see where you are going with this. But I have stumbled across another
problem
**************
lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT
NAME SIZE FSTYPE LABEL MOUNTPOINT
sda 5.5T
└─sda1 5.5T ext4 video /video
sr0 1024M
nvme0n1 119.2G
├─nvme0n1p1 299M vfat
├─nvme0n1p2 22.3G ext4 mageia /
├─nvme0n1p3 10.6G swap swap [SWAP]
├─nvme0n1p4 12.2G ext4 tmp /tmp
├─nvme0n1p5 20.4G ext4 mageia_bu
├─nvme0n1p6 2G ext4 boot_iso
└─nvme0n1p7 24.9G ext4 mageia_6 /run/media/faeychild/mageia_6
GOOD GOD what have I done??
You do come up with some interesting problems.
First thing I would do under mga7, as root,
umount /run/media/faeychild/mageia_6
then
mkdir /mageia_6
bring up your editor and add
LABEL=mageia_6 /mageia_6 ext4 noatime,users,noauto,acl 1 2
to /etc/fstab, save, exit editor
Now try
mount /mageia_6
If looking good, fix mageia 6 install to pickup mga7 the same way.
mkdir /mageia_6/mageia
edit /mageia_6/etc/fstab
and add
LABEL=mageia /mageia ext4 noatime,users,noauto,acl 1 2
save, exit the editor.
umount /mageia_6
Will this be a dual boot of two independent systems
I think I understand you are creating a mageia 6 mount point on mageia 7
root
and creating a mageia 7 mount point on mageia 6 root
Is this so?
What will this do as far as grub is concerned
I was originally trying for two independent systems selected from the
grub2 boot menu, which actually does work
although the complete Mga6
filesystem on Mga7 /run/media/*, has me wondering
I'll test it by booting Mga6. Salt the filesystem with something and
then boot Mga7 and see if it appears in the Mga6 file system in Mga7 /run/media/*
If so the recursion will do my head in.
This is a far cry from the Lilo days
On Sat, 19 Oct 2019 18:08:38 +1100, faeychild wrote:
Will this be a dual boot of two independent systems
Yes. But I suggest one "Production" boot loader is to be in charge
of booting whichever install is desired.
I think I understand you are creating a mageia 6 mount point on mageia 7
root
and creating a mageia 7 mount point on mageia 6 root
Is this so?
Yes. One to keep you out of this /run/media thing, and more importantly, allow a backup script to backup the other install.
I was originally trying for two independent systems selected from the
grub2 boot menu, which actually does work
Yep, mga7/grub had no knowledge of mga6 install.
mga6 grub install found mga7, and since it was installed last, it is
the boot loader in charge. After you do the grub work on mga7, it
will know/pickup mga6 and become the boot loader in charge.
After you installed mga6, you should have booted mga7 an told mga7 grub
to generate a new grub.cfg, and install it as your "Production" boot loader.
Read the last 4 lines of this reply, I'll wait . . . . . . . . . . . . .
So, as root, on booted mga7,
update-grub
grub2-install /dev/XYZ At this point I will have to guess
that XYZ is nvme0n1
On 18/10/19 2:39 pm, Bit Twister wrote:
After you installed mga6, you should have booted mga7 an told mga7 grub
to generate a new grub.cfg, and install it as your "Production" boot loader.
I didn't know this bit
Read the last 4 lines of this reply, I'll wait . . . . . . . . . . . . .
I did run this one
So, as root, on booted mga7,
update-grub
This second instruction is the one I DIDN'T run after the installation
of Mga6
grub2-install /dev/XYZ At this point I will have to guess
that XYZ is nvme0n1
It is also nearly 23:00 and far too late be doing this .
On Sat, 19 Oct 2019 22:42:36 +1100, faeychild wrote:
On 18/10/19 2:39 pm, Bit Twister wrote:
After you installed mga6, you should have booted mga7 an told mga7 grub
to generate a new grub.cfg, and install it as your "Production" boot loader.
I didn't know this bit
Normally it is not a problem because people usually install the
latest release last.
Do keep in mind, regardless whichever grub is in charge, the default
setup is that grub will remember whichever install was booted, and
will become the default install to boot.
Case in point, you boot mga7, do all your grub work, reboot to verify systemrescuecd is back for selection, and boot mga7. Then mga7 will be
the default booted selection upon next power up.
At anytime you boot mga6, mga6 will become the default install to boot
from that point forward until you boot mga7.
when I installed Mga6 "over" Mga7, I thought , This is not going to work
it's ass-about. I was surprised when it seemed to.
But after discovering that sysrescue had disappeared and Mga6 was
mounting Mga7's /run/media/etc.. I knew that it hadn't.
The current situation is a mess. Mga6 isn't important, it can go.
lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,PARTLABELmageia_bu
NAME SIZE FSTYPE LABEL MOUNTPOINT PARTLABEL sda 5.5T
└─sda1 5.5T ext4 video /video video sdb 29.7G
└─sdb1 29.7G vfat /run/media/faeychild/6632-3731
sr0 1024M
nvme0n1 119.2G
├─nvme0n1p1 299M vfat efi ├─nvme0n1p2 22.3G ext4 mageia / mageia ├─nvme0n1p3 10.6G swap swap [SWAP] swap ├─nvme0n1p4 12.2G ext4 tmp /tmp tmp ├─nvme0n1p5 20.4G ext4 mageia_bu
├─nvme0n1p6 2G ext4 boot_isoboot_iso
└─nvme0n1p7 24.9G ext4 mageia_6 /run/media/faeychild/mageia_6mageia_6
So I am dithering,should I implement your instructions
or run "grub2-install /dev/nvme0n1p2" from Mga7 as root
or abandon any attempt at rescue, remove mageia_6 and start again?
which is more effective/efficient??
On Sun, 20 Oct 2019 06:34:10 +1100, faeychild wrote:
when I installed Mga6 "over" Mga7, I thought , This is not going to work
it's ass-about. I was surprised when it seemed to.
Of course it worked. You can also install other Linux OSs the same way.
Just remember last installed OS installed its bootloader.
Environment.But after discovering that sysrescue had disappeared and Mga6 was
mounting Mga7's /run/media/etc.. I knew that it hadn't.
One more time. What you are seeing is a function of your Display
Get an entry into fstab and create the mountpoint, log out/in and
magically no /run/media/etc.. for the other install.
The current situation is a mess. Mga6 isn't important, it can go.
lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,PARTLABEL
NAME SIZE FSTYPE LABEL MOUNTPOINT PARTLABEL >> sda 5.5T
└─sda1 5.5T ext4 video /video video >> sdb 29.7G
└─sdb1 29.7G vfat /run/media/faeychild/6632-3731
sr0 1024M
nvme0n1 119.2G
├─nvme0n1p1 299M vfat efi
├─nvme0n1p2 22.3G ext4 mageia / mageia >> ├─nvme0n1p3 10.6G swap swap [SWAP] swap
├─nvme0n1p4 12.2G ext4 tmp /tmp tmp
├─nvme0n1p5 20.4G ext4 mageia_bu mageia_bu
├─nvme0n1p6 2G ext4 boot_iso boot_iso
└─nvme0n1p7 24.9G ext4 mageia_6 /run/media/faeychild/mageia_6 mageia_6
So I am dithering,should I implement your instructions
Either that, or re-install mga7. :-D
and find out that your DE will still be helping you out by mounting
the other install in /var/run :(
or run "grub2-install /dev/nvme0n1p2" from Mga7 as root
I did not give you that command and it should get you some experience
on trying to recover mga7. :-(
Based on your lack of regurgitating my instructions correctly for
mga7 boot loader install, I suggest creating the mount points,
updating /etc/fstab, installing the mga7 install media, boot it,
select rescue mode, select install boot loader, pick nvme0n1p2,
and let it re-install mga7 as the "Production" boot loader.
On 20/10/19 7:32 am, Bit Twister wrote:
On Sun, 20 Oct 2019 06:34:10 +1100, faeychild wrote:
when I installed Mga6 "over" Mga7, I thought , This is not going to work >>> it's ass-about. I was surprised when it seemed to.
Of course it worked. You can also install other Linux OSs the same way.
Just remember last installed OS installed its bootloader.
I can see that now. I mistakenly expected grub to be independent of
installed OS's with a self contained boot list something like Lilo.
or run "grub2-install /dev/nvme0n1p2" from Mga7 as root
I did not give you that command and it should get you some experience
on trying to recover mga7. :-(
You did say:
***********
After you installed mga6, you should have booted mga7 an told mga7 grub
to generate a new grub.cfg, and install it as your "Production" boot loader.
Read the last 4 lines of this reply, I'll wait . . . . . . . . . . . . .
So, as root, on booted mga7,
update-grub
grub2-install /dev/XYZ At this point I will have to guess
that XYZ is nvme0n1
************
Which I interpreted to mean
run "grub2-install /dev/nvme0n1p2" from Mga7 as root
Based on your lack of regurgitating my instructions correctly for
mga7 boot loader install, I suggest creating the mount points,
updating /etc/fstab, installing the mga7 install media, boot it,
select rescue mode, select install boot loader, pick nvme0n1p2,
and let it re-install mga7 as the "Production" boot loader.
OK understood
That "interpreted" is what will clobber something like the first 446
bytes of /dev/nvme0n1p2, which would probably be pointers to the start
of the list of files in that partition. :(
Read my lips, what is the difference between these two commands.
grub2-install /dev/nvme0n1p2 # hint :(
grub2-install /dev/nvme0n1 # hint :)
1 copies bytes into the start of partition nvme0n1p2 and
2 copies bytes into the start of drive nvme0n1
Those bytes tell the bios bootloader where to go to get the next
chunk of code to complete booting whatever is needed to continue what
is required to proceed with what to boot.
On 20/10/19 9:47 am, Bit Twister wrote:
That "interpreted" is what will clobber something like the first 446
bytes of /dev/nvme0n1p2, which would probably be pointers to the start
of the list of files in that partition. :(
Read my lips, what is the difference between these two commands.
grub2-install /dev/nvme0n1p2 # hint :(
grub2-install /dev/nvme0n1 # hint :)
1 copies bytes into the start of partition nvme0n1p2 and
2 copies bytes into the start of drive nvme0n1
Ignorance on my part Bits
Sorry
Those bytes tell the bios bootloader where to go to get the next
chunk of code to complete booting whatever is needed to continue what
is required to proceed with what to boot.
I was focused on partition and not the drive and not realizing how it
all worked
I am still rendering video so I can't do anything yet other than
assemble my plan of action and go over the printed directions
I am still rendering video so I can't do anything yet other than
assemble my plan of action and go over the printed directions
Plans are good. Procedural steps with check boxes are better.
On 20/10/19 3:25 pm, Bit Twister wrote:
I am still rendering video so I can't do anything yet other than
assemble my plan of action and go over the printed directions
Plans are good. Procedural steps with check boxes are better.
Not a bad idea. I have the time to implement it
It's better than jumping back and forth through notes
$ uname -r
5.3.6-desktop-2.mga7
On 20/10/19 4:17 pm, Bit Twister wrote:
$ uname -r
5.3.6-desktop-2.mga7
~]$ uname -r
5.2.13-desktop-2.mga7
There was an update about two days ago
Maybe my mirror is behind
On 21/10/19 8:53 am, faeychild wrote:
On 20/10/19 4:17 pm, Bit Twister wrote:
$ uname -r
5.3.6-desktop-2.mga7
~]$ uname -r
5.2.13-desktop-2.mga7
There was an update about two days ago
Maybe my mirror is behind
No
kernel-desktop-5.3.6-2 is installed. I am just not running it :-(
Yup, I can guess as a result of magaia_6 boot loader not being updated
after installing new mga7 kernel. :(
On 20/10/19 4:17 pm, Bit Twister wrote:
I found some free time today, Bits and almost made it
I reinstall of grub halted with
grub2-install error: cannot find EFI directory
There was no /boot/EFI directory in Mga7
There is an empty one in Mga6.
I created one in Mga7 but grub failed at the same point
Or is it looking for the EFI partition
What information do you require?
fstab Mga7
********************************************************************
#*
#* /etc/fstab Version 1.4
#* Created by ./fstab-label-3.sh Tue 17 Sep 06:41 2019
#*
#********************************************************************
LABEL=mageia / ext4 noatime,acl 1 1
LABEL=mageia_6 /mageia_6 ext4 noatime,users,noauto,acl 1 2
PARTLABEL=efi /efi vfat users,noauto,umask=000,iocharset=utf8 0 0
none /proc proc defaults 0 0
LABEL=tmp /tmp ext4 noatime,acl 1 2
LABEL=video /video ext4 noatime,acl 1 2
PARTLABEL=swap swap swap defaults 0 0
#****************** end /etc/fstab ******************
fstab Mga6
/dev/nvme0n1p7 / ext4 noatime,acl 1 1
LABEL=mageia /mageia ext4 noatime,users,noauto,acl 1 2
/dev/nvme0n1p1 /boot/EFI vfat umask=000,iocharset=utf8 0 0
none /proc proc defaults 0 0
/dev/nvme0n1p4 /tmp ext4 noatime,acl 1 2
# Entry for /dev/sda1 :
UUID=ddce96e5-77d9-45dd-b1c7-4bf10d42fff7 /video ext4 noatime,acl 1 2 /dev/nvme0n1p3 swap swap defaults 0 0
~]$ lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,PARTLABEL
NAME SIZE FSTYPE LABEL MOUNTPOINT PARTLABEL
sda 5.5T
└─sda1 5.5T ext4 video /video video
sr0 1024M
nvme0n1 119.2G
├─nvme0n1p1 299M vfat efi
├─nvme0n1p2 22.3G ext4 mageia / mageia
├─nvme0n1p3 10.6G swap swap [SWAP] swap
├─nvme0n1p4 12.2G ext4 tmp /tmp tmp
├─nvme0n1p5 20.4G ext4 mageia_bu mageia_bu
├─nvme0n1p6 2G ext4 boot_iso boot_iso
└─nvme0n1p7 24.9G ext4 mageia_6 mageia_6
regards
I reinstall of grub halted with
grub2-install error: cannot find EFI directory
change efi line in /etc/fstab on mga7, to look like mga6
after change it could look like
# PARTLABEL=efi /efi vfat users,noauto,umask=000,iocharset=utf8 0 0 /dev/nvme0n1p1 /boot/EFI vfat umask=000,iocharset=utf8 0 0
after saving change, try
mount /boot/EFI
and run the grub2-install command again.
On 22/10/19 3:49 pm, Bit Twister wrote:
I reinstall of grub halted with
grub2-install error: cannot find EFI directory
change efi line in /etc/fstab on mga7, to look like mga6
after change it could look like
# PARTLABEL=efi /efi vfat users,noauto,umask=000,iocharset=utf8 0 0
/dev/nvme0n1p1 /boot/EFI vfat umask=000,iocharset=utf8 0 0
after saving change, try
mount /boot/EFI
and run the grub2-install command again.
[root@unimatrix /]# mount /boot/EFI
[the first run failed to find "/boot/EFI"
I intended to log out but rebooted instead]
still!
mount: /boot/EFI: /dev/nvme0n1p1 already mounted on /boot/EFI.
[good now]
[root@unimatrix /]# grub2-install
Installing for x86_64-efi platform.
Installation finished. No error reported.
Systemrescue is back!!
and it works
Brilliant!,Bits
I couldn't pretend to follow what you did
You seemed to be mounting "A" on "B" and then mounting "B total" back
onto "A"
All right. You can now fix the fstab entry by removing the
# PARTLABEL=efi /efi vfat users,noauto,umask=000,iocharset=utf8 0 0
and change the /dev/nvme0n1p1 to PARTLABEL=efi Example:
PARTLABEL=efi /boot/EFI vfat umask=000,iocharset=utf8 0 0
Brilliant!,Bits
I couldn't pretend to follow what you did
Sorry for all the trouble with efi. I have no experience with it since
I set my bios to boot legacy OS.
your efi directory via the partition flags. :(
On 22/10/19 6:44 pm, Bit Twister wrote:
\
I was intending posting last night but somewhere DNS fell over and the
only stuff that worked were addresses in the hosts file
All right. You can now fix the fstab entry by removing the
# PARTLABEL=efi /efi vfat users,noauto,umask=000,iocharset=utf8 0 0
and change the /dev/nvme0n1p1 to PARTLABEL=efi Example:
PARTLABEL=efi /boot/EFI vfat umask=000,iocharset=utf8 0 0
#********************************************************************
#*
#* /etc/fstab Version 1.4
#* Created by ./fstab-label-3.sh Tue 17 Sep 06:41 2019
#*
#********************************************************************
LABEL=mageia / ext4 noatime,acl 1 1
LABEL=mageia_6 /mageia_6 ext4 noatime,users,noauto,acl 1 2
#PARTLABEL=efi /efi vfat users,noauto,umask=000,iocharset=utf8 0 0 PARTLABEL=efi /boot/EFI vfat umask=000,iocharset=utf8 0 0
none /proc proc defaults 0 0
LABEL=tmp /tmp ext4 noatime,acl 1 2
LABEL=video /video ext4 noatime,acl 1 2
PARTLABEL=swap swap swap defaults 0 0
#****************** end /etc/fstab ******************
Sorry for all the trouble with efi. I have no experience with it since
I set my bios to boot legacy OS.
Why is your preference for legacy OS?
I had it a while back with Mga5 or 6 because either Diskdrake or I
couldn't get our stuff together.
The problem with these activities is that are years apart and trying to remembering what you did last time
NOTES!!!!! :-) take notes!
Don't lose them
All my Kernels!! I don't know where they come from. It wasn't long ago I cleaned up last time.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:32:03 |
Calls: | 6,648 |
Files: | 12,197 |
Messages: | 5,329,704 |