LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2023, 01:45 AM   #1
w7zdx
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 38, Debian 12
Posts: 8

Rep: Reputation: 0
Damaged Hard Drive? GRUB:


Hi

I do consider myself a newbie only because In know enough to get myself into trouble.

On my desktop I have/had Fedora 38 and Ubuntu 24 as a dual boot. For my needs Ubuntu isn't working so I tried changing partitions so I could increase the size of Fedora. Perhaps later installing another distribution to replace Ubuntu. I used Gpart and made a mess I fear.

When I reboot I get only "GRUB:". The keyboard doesn't seem to work and I am really stuck.

I am on my laptop now running Debian 12.

Hope someone can help?


Bog
 
Old 09-27-2023, 02:45 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by w7zdx View Post
For my needs Ubuntu isn't working so I tried changing partitions so I could increase the size of Fedora.
Exceeding vague, and you expect a specific response ?. Hmmmm.

Did you only change partitions, or did you delete some ?.Did you expand the Fedora partition(s) to utilise the space freed by the above action(s).
Do you still have the Fedora USB you installed from ?. If so your best bet is to go here and follow the appropriate commands. Saves us having to guess if you're btrfs/ext4, LVM, LUKS, ...
 
Old 09-27-2023, 03:56 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,496

Rep: Reputation: Disabled
Sounds like a re install will be quickest way to get back up & running, make sure to back up any important data to an external drive, via a 'live' pendrive, if necessary, before doing the re installation.
 
Old 09-27-2023, 05:24 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Go here https://sourceforge.net/projects/boot-repair-cd/files/ download the iso put on usb, create a boot-info file and post.
 
Old 09-27-2023, 09:54 AM   #5
w7zdx
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 38, Debian 12
Posts: 8

Original Poster
Rep: Reputation: 0
OOPS!

I am sorry to be too vague. Normally I am to long winded.

The desktop originally had Windows 11 Pro. I dual booted with Fedora and Ubuntu. Ubuntu was the first distro I put on followed by Fedora. I tried moving partitions around and when that didn't work I formatted the Ubuntu partition. This was the wrong thing to do.

I was trying to get rid of Ubuntu because for my needs it didn't work well while Fedora does all that I need. Nothing against Ubuntu. I would much prefer the entire drive formatted with Fedora.

I am not sure what I did but when I sat up the dual boot I could still boot from a USB drive. Once everything was installed that went away, mostly because I had no reason to have the USB drive boot. I really don't think I changed the BIOS but it is possible.

I know I must seem the complete idiot, but I really a have a few brain cells left. I am 71 years old and while I was in the army I wrote routines in COBALT, FORTRAN, compiled EXE files from dBASE III Plus, PASCAL and MS-DOS basic. The first computer I ever saw was a 64kb machine which was a 2 stories building and only had punch cards. So please cut the old man a little slack. LOL!
 
Old 09-27-2023, 10:01 AM   #6
w7zdx
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 38, Debian 12
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colorpurple21859 View Post
Go here https://sourceforge.net/projects/boot-repair-cd/files/ download the iso put on usb, create a boot-info file and post.
Downloading it now. Thank you!


Bog
 
Old 09-27-2023, 01:02 PM   #7
only-connect
LQ Newbie
 
Registered: Sep 2023
Location: UK
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by w7zdx View Post
The desktop originally had Windows 11 Pro. I dual booted with Fedora and Ubuntu. Ubuntu was the first distro I put on followed by Fedora. I tried moving partitions around
I think the normal thing to do is to boot Fedora.
Open Gparted and delete the Ubuntu OS on it's partition.
But while still in your Fedora OS - I think we're then supposed to use os-prober and:
Code:
update-grub
on the terminal.

You see after you remove your Ubuntu OS (in Gparted) - you need to stay in Fedora.
Then you need to tell GRUB that Ubuntu isn't there anymore - while still being your in Fedora OS!
That's the thing.

1. So after deleting Ubuntu in Gparted - you need to close Gparted.
2. Then you need to open a terminal as root and input 'update-grub'.
Only after that can you re-boot. [/QUOTE]
 
Old 09-27-2023, 01:42 PM   #8
w7zdx
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 38, Debian 12
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by only-connect View Post
I think the normal thing to do is to boot Fedora.
Open Gparted and delete the Ubuntu OS on it's partition.
But while still in your Fedora OS - I think we're then supposed to use os-prober and:
Code:
update-grub
on the terminal.

You see after you remove your Ubuntu OS (in Gparted) - you need to stay in Fedora.
Then you need to tell GRUB that Ubuntu isn't there anymore - while still being your in Fedora OS!
That's the thing.

1. So after deleting Ubuntu in Gparted - you need to close Gparted.
2. Then you need to open a terminal as root and input 'update-grub'.
Only after that can you re-boot.
[/QUOTE]

Sounds like an excellent plan, however, I can not boot off of the USB drive. I made a boot disk on my Debian machine and when that didn't work I used my wife's Windows machine with Rufus to make a second boot disk. Still not booting off the USB drive. I tried holding ESC which use to take me to BIOS. That isn't working either. I don't suppose there is anything I can do, I am looking at GRUB on the screen.

I forgot to add. When I turn the power on the first thing I come to is a Security Password which I have always had there. I can enter the password from the keyboard, press ENTER, then GRUB. No more keyboard action accept CTR-ALT-DEL will reboot.


Bog

Last edited by w7zdx; 09-27-2023 at 01:59 PM.
 
Old 09-27-2023, 01:49 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Did you download the 64bit or 32bit iso? If this is a uefi system you may need to disable secure boot
 
Old 09-27-2023, 01:49 PM   #10
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu
Posts: 189

Rep: Reputation: 21
My older ubuntu was showing, though not my newer installed version... adding to my issues, BTW was my failing to recall that Ubuntu had blocked os-prober...


So for others:

https://askubuntu.com/questions/1410...s-isnt-showing


My thanks to ArrayBolt3 on askubuntu for his notation
which is here:


https://www.linuxquestions.org/quest...0/#post6455357





,
 
Old 09-27-2023, 02:03 PM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
If you want to attempt to recover from the grub prompt there are several good tutorials on the web
“How to recover from grub prompt”
Fedora grub files are in /boot/grub2 whereas ubuntu are in /boot/grub
 
Old 09-27-2023, 09:17 PM   #12
w7zdx
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 38, Debian 12
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colorpurple21859 View Post
Did you download the 64bit or 32bit iso? If this is a uefi system you may need to disable secure boot
Yes I did. I made 2 copies of a USB drive from 2 different machines. I can't get the desktop to boot any USB or so it seems.


Bog
 
Old 09-27-2023, 09:19 PM   #13
w7zdx
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 38, Debian 12
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colorpurple21859 View Post
If you want to attempt to recover from the grub prompt there are several good tutorials on the web
“How to recover from grub prompt”
Fedora grub files are in /boot/grub2 whereas ubuntu are in /boot/grub
My wife has been researching but I will help her. Thanks to all of you for your very kind advice!

OK, I pressed CTR-ALT-DEL followed by pressing F12. This brought up the USB boot recovery disk. Trying to figure out how to connect to the Internet.



Bog

Last edited by w7zdx; 09-27-2023 at 09:27 PM.
 
Old 09-27-2023, 10:00 PM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Something you can try at the grub prompt
Code:
chainloader /EFI/ubuntu/grubx64.efi
boot
or
Code:
chainloader /EFI/fedora/grubx64.efi
boot

Last edited by colorpurple21859; 09-27-2023 at 10:06 PM.
 
Old 09-28-2023, 12:26 AM   #15
w7zdx
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 38, Debian 12
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colorpurple21859 View Post
Something you can try at the grub prompt
Code:
chainloader /EFI/ubuntu/grubx64.efi
boot
or
Code:
chainloader /EFI/fedora/grubx64.efi
boot

The GRUB error is gone. The way I did it was with the boot repair iso. After trial and error I went to the very bottom selection which was "Enter SetUp". This took me to bios and I checked to insure I could boot from a USB drive, saved my work and then boot repair kicked in. The software claimed success. When I rebooted I got a different error. The computer is looking for a OS. That must be because Fedora wasn't originally bootable? I am really leary of using Gpart again as this got me into trouble before. I'm going to try and install Kali with as little space as possible. If that doesn't work then I am off to the races with Gpart. Perhaps someone would be kind enough to educate me???


Bog
 
  


Reply



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
Disk Partition damaged - how can I rescue damaged partition ray98 Linux - General 7 10-24-2014 08:05 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
how to tell if hard drive is damaged ? pleasehelpme Linux - Hardware 1 12-05-2007 01:43 AM
Damaged Mac Hard Drive SickNick Linux - Hardware 2 10-03-2007 06:07 PM
Cannot mount ext3 filesystem on damaged hard drive Mathieu_G Linux - Hardware 3 04-01-2005 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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