[SOLVED] Help with removing a bad HDD and getting GRUB2 menu to reflect the changes
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
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.
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?
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.
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'...
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!
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Rep:
Quote:
Originally Posted by Bill_L
...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.