LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-24-2022, 10:34 PM   #1
Bill_L
LQ Newbie
 
Registered: May 2019
Location: Southeast Iowa, United States
Distribution: openSuSe Leap 15
Posts: 8

Rep: Reputation: Disabled
Help with removing a bad HDD and getting GRUB2 menu to reflect the changes


I am still a newbie, so I may have not worded or included things needed to answer the following question(s).

I have three HDD's in my old HP Compaq DC7700 CMT desktop(A SATA only unit).
Code:
/dev/sdb has Windows 10 and windows 7, and a large unformatted space.
/dev/sda has opensuse,  this drive is a PATA drive connected via a PCI card.
/dev/sdc also has opensuse on it. I put that drive in not knowing there are some bad sectors that can't be 'fixed'.
I tried removing the /dev/sdc from the machine, but on boot it still showed up in GRUB2 boot menu.
SO, I put that 'bad' drive back in.

Can I remove it AGAIN and run 'GRUB2-mkconfig' to get the GRUB2 menu back in order?
 
Old 01-25-2022, 12:40 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Bill_L View Post
I am still a newbie, so I may have not worded or included things needed to answer the following question(s).

I have three HDD's in my old HP Compaq DC7700 CMT desktop(A SATA only unit).
Code:
/dev/sdb has Windows 10 and windows 7, and a large unformatted space.
/dev/sda has opensuse,  this drive is a PATA drive connected via a PCI card.
/dev/sdc also has opensuse on it. I put that drive in not knowing there are some bad sectors that can't be 'fixed'.
I tried removing the /dev/sdc from the machine, but on boot it still showed up in GRUB2 boot menu.
SO, I put that 'bad' drive back in.

Can I remove it AGAIN and run 'GRUB2-mkconfig' to get the GRUB2 menu back in order?
In a word: yes.
Although the actual command might differ slightly from what you wrote.
Linux command are case sensitive.
 
Old 01-25-2022, 01:12 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,151

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by Bill_L View Post
I tried removing the /dev/sdc from the machine, but on boot it still showed up in GRUB2 boot menu.
Why do you care ?.
It's just a text entry - no problem unless you happen to select it. As suggested a quick mkconfig will fix it (with the bad disk removed), although I can't believe yast won't have an option to clean it up. Been a while since I looked at opensuse tho'...
 
Old 01-25-2022, 01:59 PM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
There are two things.

1. Your /dev/sdc{x,y,z} might be "mentioned" in /etc/fstab

You should remove it there, i.e. put a # in front of the pertinent line.

2. "grub2mkconfig -o /boot/grub2/grub.cfg" should achieve what you intend.

HTH.
 
Old 01-25-2022, 05:54 PM   #5
Bill_L
LQ Newbie
 
Registered: May 2019
Location: Southeast Iowa, United States
Distribution: openSuSe Leap 15
Posts: 8

Original Poster
Rep: Reputation: Disabled
Resolved help-with-removing-a-bad-hdd-and-getting-grub2-menu-to-reflect-the-change

OK, thanks. Got the /dev/sdc out of my way with the grub2-mkconfig -o /boot/grub2/grub.cfg

I will look to see if it is still in /etc/fstab.

So now I can proceed putting Leap 15.3 on the large empty space on the Windows HDD.

BTW, I tried everything I know to get those bad sectors moved, repaired, or fixed. It is a Seagate drive and the SeaTools won’t let get past a generic or SMART test. Three sectors & a once good drive is trash.

Thanks again for the responses.
How do I mark this one RESOLVED

Last edited by Bill_L; 01-25-2022 at 05:56 PM. Reason: OF forgetfulness!
 
Old 01-26-2022, 06:37 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Quote:
Originally Posted by Bill_L View Post
...
How do I mark this one RESOLVED
You click on "Tread Tools" on top of the thread. You'll get a menu with one entry reading "Tread solved" or some such. If need be you can un-solve it later on there, too.
 
  


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
LXer: Technology Changes Us, Changes Society, and Changes Governments LXer Syndicated Linux News 0 10-10-2016 02:00 PM
GRUB2 - FreeBSD-8.0 does not show up in triple boot menu, dual boot menu it does.. wiliweld *BSD 7 05-03-2010 01:05 PM
AD password changes not reflect on RHEL ldap clients koenigjm Linux - General 0 01-25-2008 10:56 AM
Changes to webalizer.conf don't reflect on output koobi Linux - Software 4 10-19-2007 12:44 AM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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