LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-22-2023, 03:22 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591

When you first boot at the grub menu, press c for the grub command line
Code:
set pager=1
set
make a note and post the following lines:
cmdpath=
prefix=
root=

post the whole contents of /boot/grub/grub.cfg

Last edited by colorpurple21859; 11-22-2023 at 03:23 PM.
 
Old 11-22-2023, 06:54 PM   #17
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Ok, I figured it out.

I tried to add an MBR to the current partition, but I shrunk it too far and it refused to boot. So, I just did a complete reinstall, included an MBR, and it installed lilo and works fine now.

Thanks all - I learned a few things about virtual environments, and we fixed my current setup.
 
Old 11-23-2023, 04:56 AM   #18
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
I tried to add an MBR to the current partition
Do you mean a BIOS_boot partition referred to earlier? The MBR is at the beginning of a disk and outside any partition. A simple edit of the grub.cfg file suggested above would have resolved the problem. If you are familiar with Lilo or Elilo, best to stick with it unless you like adventures and frustrations. Good luck with it.
 
1 members found this post helpful.
Old 11-23-2023, 08:19 AM   #19
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by yancek View Post
Do you mean a BIOS_boot partition referred to earlier? The MBR is at the beginning of a disk and outside any partition. A simple edit of the grub.cfg file suggested above would have resolved the problem. If you are familiar with Lilo or Elilo, best to stick with it unless you like adventures and frustrations. Good luck with it.
I still don't quite get this, and I'm happy to keep talking if you want to keep explaining.

* Nothing I did to grub.cfg *ever* changed any my boot options. Defaults, skipping menus, etc.

* The MBR *can* be a partition - that's how I got lilo installed, is I created one by hand during the initial partition of the virtual disk. I don't usually have to do that on physical drives, but that's what worked here.

So do you have any thoughts about *why* edits to grub.cfg did nothing to my boot options?
 
Old 11-23-2023, 09:02 AM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,364

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
So do you have any thoughts about *why* edits to grub.cfg did nothing to my boot options?
No, I was hoping the set command at the grub prompt would give insight into what was happening, but I guess we will never know now, unless Yancek has some insight into what the problem may have been.

Quote:
* The MBR *can* be a partition - that's how I got lilo installed, is I created one by hand during the initial partition of the virtual disk.
If this is a gpt drive I think I know what your talking about, if this is a msdos drive not so much, will you post the layout of the disk indicating what you are calling the mbr partition.

Last edited by colorpurple21859; 11-23-2023 at 09:13 AM.
 
1 members found this post helpful.
Old 11-24-2023, 05:14 AM   #21
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
* The MBR *can* be a partition - that's how I got lilo installed

No, for more details read the information at the link below. The MBR is outside any partitions created and is in the first sector of the drive, sector 0. If you have a GPT drive then you need to create an unformatted 1MN partition labelled as bios_boot in order to do a Legacy install on that drive.

https://www.easeus.com/diskmanager/m...ot-record.html

Did you create an EFI partition on which you put elilo? An EFI install of Slackware will put EFI files on that partition as well as the kernel and initrd files. There is also a PBR (partition boot record) which is on the partition where an OS is installed and that OS can be chainloaded from another bootloader. If boot code is installed in the PBR, it will not boot unless there is another bootloader installed in either the MBR or an EFI partition.

Quote:
My concern with that is that /dev/nvmme0n1p6 is my physical disk, not the virtual one
That was only an example from my system and the /dev/nvmme0n1p6 should have been changed on your system to /dev/sda1.
At least one of the errors you reported "canonical path of cow" indicate you are trying to write to or make changes on a read only system, the iso file rather than the installed system. That would explain why changes did not take effect in grub.cfg. I believe the problem was that you tried to do what is called a Legacy install on a GPT drive before creating a bios-boot partition which is required for the grub core.img file. On a GPT drive, it is much better to install in EFI mode which should create an EFI partition for the proper boot files.

Quote:
the grub.cfg file is split into sections
No, it isn't. There are numerous Grub files which you can see in different locations by running "whereis grub" (without quotes) from a terminal. The grub.cfg file contents display what you see on screen when you boot. If you want permanent changes, you need to edit the various other Grub files and run grub-mkconfig.

Quote:
So do you have any thoughts about *why* edits to grub.cfg did nothing to my boot options?
Go back to post 7 and read the error reported. You did a Legacy/MBR type install with no bios_boot partition so it would not boot regardless of any changes you made.

If you got it working on the GPT drive, you would have had to either create a bios-boot or EFI partition.

Last edited by yancek; 11-24-2023 at 05:32 AM.
 
  


Reply

Tags
grub, slackware, virtual box



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Move Slackware guest from a Slackware hosted Virtualbox to Windows hosted Virtualbox? damgar Slackware 1 08-07-2012 11:28 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
GRUB GRUB GRUB GRUB "Whats Going on?" Gaweph Linux - Newbie 6 03-26-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration