LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 07-23-2020, 03:47 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,350

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034

boot the snapshot, select "switch to grub bootloader">boot resue menus>find grub menus>load grub menu
If it finds your grub menu boot the installed system, run the following as root
Code:
grub-install /dev/sda
update-grub
assuming there is only one drive and it is /dev/sda.

Last edited by colorpurple21859; 07-23-2020 at 03:49 PM.
 
Old 07-24-2020, 05:07 AM   #17
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Alright, here's the output that you requested. It looks to me as though something is being requested or looked for by the system. For each item found there's a "Y" to signify that "YES" it's been found or it's there. Well, that's my meager no little to nothing interpretation anyway.

.
Attached Thumbnails
Click image for larger version

Name:	pager1_is_set.jpg
Views:	15
Size:	42.6 KB
ID:	33704  
 
Old 07-24-2020, 06:25 AM   #18
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,350

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
The grub bootloader is looking for a /boot/grub/grub.cfg on /dev/sda2. Either the grub.cfg isn't there or there is something wrong with the grub.cfg file. syntax errors will cause a grub.cfg to not display.

Last edited by colorpurple21859; 07-24-2020 at 06:26 AM.
 
Old 07-24-2020, 07:05 AM   #19
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Hmmm, but that is actually the correct location. There's nothing else on the disk. Due to partitioning the disk is recognized as SDA. The disk has two partitions, one tiny one for swap and the larger partition for the data. That Ext4 data partition is recognized as SDA2.

I've installed MX Linux dozens of times and the installer always recognized the availability for grub, and defaults to them. So far I've only encountered problems three times, this here being one of those times. Aside from those incidents the defaults have always worked for me.

When I boot into the live session, followed by using mx boot repair tool, that tool also recognizes the sda disk and defaults the grub location to sda2. If that's incorrect, where else would I install grub? This particular laptop has a second hard disk as opposed to a dvd / rw optical drive. Is it possible that the problem has something to do with that? That second drive was formatted as NTFS though, so I can't imagine that that would confuse the mx snapshot installer? Perhaps I should try to just remove the second hard disk and try the installation again from scratch?

.
 
Old 07-24-2020, 07:36 AM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,350

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
Quote:
This particular laptop has a second hard disk
This is most likley the problem. At the grub prompt
Code:
configfile (hd1,2)/boot/grub/grub.cfg
If you get a grub menu and it boots rerun grub-install. If you get a file does not exist message the change it to
Code:
configfile (hd0,2)/boot/grub/grub.cfg
if it is some other error message post it here.
 
Old 07-24-2020, 08:27 AM   #21
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Bummer, tried both commands and only got an empty screen with >Grub flashing at the top.
I then powered off the system and removed the second hard disk, followed by powering on again.
Tried both commands once more with identical results ... flashing >Grub at top of the screen.

When I type ... boot ... I receive an error message that there's no kernel.

When I type exit ... I receive a selection of devices on the screen which could be bootable. I say could be bootable because each possible device has a descriptive word to show what it is, enabled or not, etc. The 500 GB drive shows up as the first bootable device on the screen (it's not a bios setup screen, just a black screen). However, that first 500 GB drive also shows up as not having a bootable Operating System present. I don't have any time for this right now, but later on today I'm going to reinstall the usb snapshot, this time without the second drive being present.
Will report back on how that went.

.
 
Old 07-24-2020, 10:59 AM   #22
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Wow, that's just totally insane. I left the second hard disk totally out of the laptop ... it's an old Lenovo T400 Thinkpad. Old, but definitely not too old for MX Linux. This time around I allowed the snapshot installer to take over the entire hard disk, to do whatever the installer required automatically. Went through the process of formatting the drive and all steps completed perfectly as before, no errors anywhere. And same as before, once the system was rebooted I was back to the >Grub on the black screen. There was some other explanetory text as well, but nothing that had anything to do with the grub boot menu. The earlier installation had the same text, it's just some generic advisary stuff.

Utilizing the above (earlier posts) commands made no difference and when I typed exit at the prompt, once again the hard disk showed up as hd0 in the devices that were listed on the screen. And yes, once again the disk is being displayed on the screen as a device with no valid Operating System on it.
This is absolutey nuts.

Now, just to make sure that it's not the disk after all, I'm going to use the boot repair disk to see if that will work. Will report back when I'm done.

.
 
Old 07-24-2020, 11:25 AM   #23
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Back again ...
Well, either it has something to do with the disk, or with the Lenovo T400 mainboard ... ???
The live boot repair stick did exactly what it was supposed to do. It recognized the kernel & memtest settings, completed, and prompted the removal of the öive usb stick in order to complete a reboot. This time I got 2 error beeps, followed by the screen display of the menu that lists all available, potentially bootable devices. And as before, the hd0 hard disk showed up as not bootable due to a missing operating system.

The boot repair scanned the system and found everything that it needed. It went through all of the steps and promps that I expected to receive, completed without a hitch. I can also access the system data from the live usb snapshot, so I can see that everything is there. This definitely has me stumped. Tomorrow I'll try another hard disk.
 
Old 07-24-2020, 11:40 AM   #24
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,350

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
Check your bios settings, I suspect something needs to be changed to allow booting linux. This wouldn’t happen to be a uefi system?
Maybe the boot flag needs to be set on the root partition.

Last edited by colorpurple21859; 07-24-2020 at 07:29 PM.
 
Old 07-25-2020, 04:55 AM   #25
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Thanks, but it has nothing to do with the bios settings. I've been working with computers for almost 30 years and the T400 only has legacy settings anyway.

Here's something that's really interesting. Instead of using the snapshot, today I went to the system where I was trying to install the snapshot and instead deleted the disk, assigned a new partition table, then reformatted the drive. Got my prior usb snapshot (not the one that I've been having problems with) and installed that one. As expected, zero problems and zero errors. Booting up works just fine, restart etc. all working as they should.
Replaced the background image, tinkered a little more, then another restart ... no problem.

I then went head and installed the latest 4,19 kernel. Towards the beginning of the installation process some of the text read along the lines that something couldn't be found, will attempt to continue by utilizing blah blah blah at which point I could no longer follow as the kernel installation kept on running up the screen. Anyway, the process continued for quite a while, completed successfully, and then automatically shut the window. I watched it the entire time.

Another restart ...
Beep beep ... device not able to boot, hit esc.
Message there listed all potentially bootable devices and hdd0 showed up as having errors.
That's it, just a single short line by hdd0. Errors found.

I then powered off the laptop completely. But when I powered on the next time, everything was fine again. Cold starts appear to work, reboots do not. Could be the latest kernel causing a glitch? Don't know, don't have time to finish following it up anymore today. I'll be back tomorrow, to report on changes once I switch back to kernel 4,15 instead.
Have a great Saturday, and stay healthy!

.
 
Old 07-25-2020, 05:42 AM   #26
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,073
Blog Entries: 10

Rep: Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126Reputation: 5126
Hard drive shot?
In other words, that sounds like hardware fatigue.

All in all I have to say your posts contain a lot of narrative & paraphrasing & interpretation, but little actual technical data that we could work with. It is difficult to keep up with the actual problem among all that.
 
Old 07-25-2020, 09:33 AM   #27
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Hard drive shot?
In other words, that sounds like hardware fatigue.

All in all I have to say your posts contain a lot of narrative & paraphrasing & interpretation, but little actual technical data that we could work with. It is difficult to keep up with the actual problem among all that.
It's not hardware fatigue. The disks are fairly new, name brand, and get tested before I use them. In 29 years, dealing with literally hundreds of desktop and laptop computers, I have literally only seen about half a dozen hard disks (two of them scsi drives) go bad. It's a far more rare occurence than people believe. One of them went bad instantly after my friends's kids threw a football ... right at the pc.

I apologize for the long-windedness. Writing comes naturally to me. But in all fairness, I think that I've described issues as detailed as possible as well as the steps that got me there ... I provided results to requests made of me ... I provided a copy of the grub.cfg as well as the other grub file, so I really have no idea why you're griping about my output? I'm not a Linux Guru and I'm certainly not a Terminal Guru, so I can only provide all the details possible which more often than not don't involve the terminal. Just about any 10+ year old 64bit laptop shouldn't require any additional details for grub boot issues. Hard disk & Operating System installation should be sufficient (methinks).

I believe the problem is finally solved ....

I'll have to play around a couple of more days to be certain, but right now, after about 5 reboots without problems, I believe the problem has been solved. In recent weeks I ran into some problems with another considerably newer Lenovo laptop. No matter what I tried, pretty much the same thing happened. Grub refused to boot into the system. After tons and tons of reading throughout various forums and posts which were pretty much identical to what I was experiencing, one of the suggestions was to insert the boot flag on the partition to be booted. After I did that, that other laptop worked just as expected. Well, earlier today I tried the same thing with the current "problem laptop" and wouldn't you know it, now that laptop also boots up just fine, both from a cold start as well as from a reboot.
.
.
EDIT: I was actually referring to another Grub post with the grub files posted. Sorry ...
.

Last edited by LinWinux; 07-25-2020 at 09:36 AM.
 
Old 07-25-2020, 09:36 AM   #28
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,350

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
I had added that suggestion to my post 24, but you may have read it before I edited it. I have a bad habit of editing a post with additional information a while after the initial post, instead of making a new post.
Anyways congrats on solving it.

Last edited by colorpurple21859; 07-25-2020 at 09:40 AM.
 
Old 07-27-2020, 03:13 AM   #29
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
Thanks.

Well, the problem is about 99% solved and I don't think that I'll get that final 1% resolved on this particular Lenovo T400.

The reboots works about 3 out of 4 attempts. If I power off completely and then power on again, that works each and every time. I've done that about 12 times so far, always spaced out anywhere from 1 - 2 hours. First I'll try the reboot, then I'll resort to power off / power on when the reboot doesn't work. Once I was otherwise satisfied with everything else, I went ahead and created another new snapshot from the T400 which doesn't like to reboot consistently. Then I installed that snapshot into an older Windows 8 Asus and that worked flawlessly. No problems with reboots or shut-downs. I have one more item that I'm going to check on the T400 and will report back one final time tomorrow.
 
Old 11-26-2020, 04:56 AM   #30
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 149

Original Poster
Rep: Reputation: Disabled
According to post #7 in this thread, and anticapitalista's answer in this thread ...
https://www.linuxquestions.org/quest...198/page3.html
... those are really the best answers, if you prefer not to use the boot disk.

What I didn't understand with my limited Boot / Grub knowledge at the time, was that the editing had to occur on the installed system after booting up with a live stick again. Once you're running the live stick again, simply locate the system/boot/grub.cfg of the installed system which wasn't booting up correctly and edit them as root user.

If you see a reference to some kind of 10proxy, go ahead and remove that as well. Make sure that there are no spaces between the lines, double end tags, etc. In other words, be very careful. Also, if you do have the 10proxy inclusion, then you'll want to go to system/etc/grub_d and delete just that one file, the one that has 10proxy in it. All of that as root user (right click on the appropriate folder within Thunar, then select "Open as Root" for editing.
Immediately after you're done, use the terminal to run: sudo grub-update
Then reboot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Arch Linux's February 2019 Snapshot Is Now Available with Linux Kernel 4.20.6 LXer Syndicated Linux News 0 02-06-2019 04:11 AM
LXer: Arch Linux Kicks Off 2019 with First Snapshot Powered by Linux Kernel 4.20 LXer Syndicated Linux News 0 01-10-2019 02:00 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
Guide to Best Linux [Ubuntu (GNOME)] Applications - Latest Sep 17, 2007 cyneuron Linux - Software 5 09-28-2007 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 09:15 PM.

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