LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2021, 02:42 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588

I think
Code:
grub-install /dev/sda
will fix the problem, however on the side of caution, before doing anything, as root post the output of
Code:
parted -l
 
Old 12-01-2021, 03:38 PM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
another option, copy debian /boot/grub/grub.cfg to ubuntu /boot/grub/grub.cfg. This may allow you to boot into ubuntu and rerun update-grub from ubuntu.
run the following and post before doing anything
Code:
parted -l
lsblk -f

Last edited by colorpurple21859; 12-01-2021 at 06:36 PM.
 
Old 12-06-2021, 12:12 PM   #18
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thanks colorpurple21859. Strangely your last two posts do not appear on my web browser when browsing linuxquestions. I have only just found them in my email!

Here is the output of parted -l and lsblk -f before I copy /boot/grub/grub.cfg onto ubuntu or reinstalling grub.

Code:
# parted -l
Model: ATA INTEL SSDSA2BW16 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  2098MB  2097MB  primary   ext4            boot
 3      2098MB  12.6GB  10.5GB  primary   linux-swap(v1)
 2      12.6GB  160GB   147GB   extended
 6      12.6GB  44.7GB  32.1GB  logical   ext4
 7      44.7GB  110GB   65.3GB  logical   ext4
 5      110GB   160GB   50.0GB  logical   ext4
Code:
# lsblk -f
NAME   FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda                                                                           
├─sda1 ext4   1.0         5f5ecbcd-0217-4257-a90b-a049424fc575                
├─sda2                                                                        
├─sda3 swap   1           94c2a579-24b4-4245-93f9-507e947a9436                [SWAP]
├─sda5 ext4   1.0         73d853bc-5a6f-4336-ab39-7316eabb5096                
├─sda6 ext4   1.0         8531969f-2a54-46d3-b30f-eb5205078211   19.4G    29% /
└─sda7 ext4   1.0         a4889646-6db0-41f4-b69d-1a0bf5d64b36      8G    81% /home
sr0
 
Old 12-06-2021, 12:58 PM   #19
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
colorpurple21859, it turns out that copying Debian's grub.cfg file onto Ubuntu and gave me a different GRUB menu just after booting the BIOS. Then the system automatically booted into Debian before I could choose any OS. Debian is now running kernel 5.10. So my understanding is that I was booting with the version of GRUB installed on Ubuntu. The problem appears to be solved. Thanks a lot.

I wonder if I am now booting from the version of GRUB installed on Debian or from Ubuntu's version. Debian is my main OS and I almost never use Ubuntu. How can I check this and how shall I switch to Debian's GRUB in case I am still booting from Ubuntu's GRUB?
 
Old 12-06-2021, 01:07 PM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Ubuntu grub is still in control, using the config file you copied over from debian. To let Debian grub take over boot into debian and run grub-install as per post 16 as root.

Last edited by colorpurple21859; 12-06-2021 at 01:08 PM.
 
Old 12-06-2021, 01:51 PM   #21
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
colorpurple21859. All done. Hopefully booting from Debian now. Thanks again.
 
  


Reply

Tags
kernel, upgrade


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic trying to boot Slackware-current on an external SSD (/ on /dev/sdc5) with kernel-huge (5.15.3 and 5.15.4) Didier Spaier Slackware 9 11-22-2021 12:30 AM
cannot restart, cannot boot grub, cannot download live CD bkelly Linux - Newbie 14 04-29-2018 04:31 PM
[SOLVED] Slackware 14.2 glibc-2.23 vs Slackware Current glibc-2.24 and the Current 4.4.17 Kernel kjhambrick Slackware 10 08-13-2016 01:00 AM
Cannot boot -current ... have done something stupid chexmix Slackware 26 06-02-2011 10:09 PM
/boot/boot/boot/boot/boot/ muddywaters SUSE / openSUSE 1 09-10-2005 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:00 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