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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-01-2021, 02:42 PM
|
#16
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,842
|
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
|
|
|
12-01-2021, 03:38 PM
|
#17
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,842
|
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
Last edited by colorpurple21859; 12-01-2021 at 06:36 PM.
|
|
|
12-06-2021, 12:12 PM
|
#18
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
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
|
|
|
12-06-2021, 12:58 PM
|
#19
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
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?
|
|
|
12-06-2021, 01:07 PM
|
#20
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,842
|
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.
|
|
|
12-06-2021, 01:51 PM
|
#21
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
colorpurple21859. All done. Hopefully booting from Debian now. Thanks again.
|
|
|
All times are GMT -5. The time now is 04:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|